project_files/Android-build/SDL-android-project/build.xml
branchhedgeroid
changeset 15518 f0bf14ead75c
parent 6429 40a61d915ebe
equal deleted inserted replaced
15517:45d6806548e9 15518:f0bf14ead75c
     1 <?xml version="1.0" encoding="UTF-8"?>
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <project name="MainActivity" default="help">
     2 <project name="Hedgewars" default="help">
     3 
     3 
     4     <!-- The local.properties file is created and updated by the 'android' tool.
     4     <!-- The local.properties file is created and updated by the 'android' tool.
     5          It contains the path to the SDK. It should *NOT* be checked into
     5          It contains the path to the SDK. It should *NOT* be checked into
     6          Version Control Systems. -->
     6          Version Control Systems. -->
     7     <loadproperties srcFile="local.properties" />
     7     <loadproperties srcFile="local.properties" />
    77          ****** IMPORTANT ******
    77          ****** IMPORTANT ******
    78          ***********************
    78          ***********************
    79          In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
    79          In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
    80          in order to avoid having your file be overridden by tools such as "android update project"
    80          in order to avoid having your file be overridden by tools such as "android update project"
    81     -->
    81     -->
       
    82     <property name="java.target" value="1.8" />
       
    83     <property name="java.source" value="1.8" />
       
    84 
       
    85     <property name="sdk.buildxml.file" value="${sdk.dir}/tools/ant/build.xml" />
       
    86     <available file="${sdk.buildxml.file}"  property="sdk.buildxml.found" />
       
    87 
       
    88     <fail message="Import of sdk's build.xml failed!
       
    89 ${line.separator}!    Failed to import '${sdk.buildxml.file}'!
       
    90 ${line.separator}!
       
    91 ${line.separator}!    If the path to the sdk's folder is correct but doesn't contain any build.xml,
       
    92 ${line.separator}!    then you probably have to downgrade the 'tools' folder to an older version:
       
    93 ${line.separator}!        [linux]   https://dl.google.com/android/repository/tools_r25.2.5-linux.zip
       
    94 ${line.separator}!        [maxosx]  https://dl.google.com/android/repository/tools_r25.2.5-macosx.zip
       
    95 ${line.separator}!        [windows] https://dl.google.com/android/repository/tools_r25.2.5-windows.zip
       
    96         "
       
    97         unless="sdk.buildxml.found"
       
    98     />
       
    99 
    82     <!-- version-tag: 1 -->
   100     <!-- version-tag: 1 -->
    83     <import file="${sdk.dir}/tools/ant/build.xml" />
   101     <import file="${sdk.buildxml.file}" />
    84 
   102 
    85 </project>
   103 </project>