android-project/build.xml
changeset 4965 91d0085b7560
child 6631 47ab7ba21530
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/android-project/build.xml	Thu Jan 06 17:12:31 2011 -0800
     1.3 @@ -0,0 +1,67 @@
     1.4 +<?xml version="1.0" encoding="UTF-8"?>
     1.5 +<project name="SDLApp" default="help">
     1.6 +
     1.7 +    <!-- The local.properties file is created and updated by the 'android' tool.
     1.8 +         It contains the path to the SDK. It should *NOT* be checked in in Version
     1.9 +         Control Systems. -->
    1.10 +    <property file="local.properties" />
    1.11 +
    1.12 +    <!-- The build.properties file can be created by you and is never touched
    1.13 +         by the 'android' tool. This is the place to change some of the default property values
    1.14 +         used by the Ant rules.
    1.15 +         Here are some properties you may want to change/update:
    1.16 +
    1.17 +         application.package
    1.18 +             the name of your application package as defined in the manifest. Used by the
    1.19 +             'uninstall' rule.
    1.20 +         source.dir
    1.21 +             the name of the source directory. Default is 'src'.
    1.22 +         out.dir
    1.23 +             the name of the output directory. Default is 'bin'.
    1.24 +
    1.25 +         Properties related to the SDK location or the project target should be updated
    1.26 +          using the 'android' tool with the 'update' action.
    1.27 +
    1.28 +         This file is an integral part of the build system for your application and
    1.29 +         should be checked in in Version Control Systems.
    1.30 +
    1.31 +         -->
    1.32 +    <property file="build.properties" />
    1.33 +
    1.34 +    <!-- The default.properties file is created and updated by the 'android' tool, as well
    1.35 +         as ADT.
    1.36 +         This file is an integral part of the build system for your application and
    1.37 +         should be checked in in Version Control Systems. -->
    1.38 +    <property file="default.properties" />
    1.39 +
    1.40 +    <!-- Custom Android task to deal with the project target, and import the proper rules.
    1.41 +         This requires ant 1.6.0 or above. -->
    1.42 +    <path id="android.antlibs">
    1.43 +        <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
    1.44 +        <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
    1.45 +        <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
    1.46 +        <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
    1.47 +        <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
    1.48 +    </path>
    1.49 +
    1.50 +    <taskdef name="setup"
    1.51 +        classname="com.android.ant.SetupTask"
    1.52 +        classpathref="android.antlibs" />
    1.53 +
    1.54 +    <!-- Execute the Android Setup task that will setup some properties specific to the target,
    1.55 +         and import the build rules files.
    1.56 +
    1.57 +         The rules file is imported from
    1.58 +            <SDK>/platforms/<target_platform>/templates/android_rules.xml
    1.59 +
    1.60 +         To customize some build steps for your project:
    1.61 +         - copy the content of the main node <project> from android_rules.xml
    1.62 +         - paste it in this build.xml below the <setup /> task.
    1.63 +         - disable the import by changing the setup task below to <setup import="false" />
    1.64 +
    1.65 +         This will ensure that the properties are setup correctly but that your customized
    1.66 +         build steps are used.
    1.67 +    -->
    1.68 +    <setup />
    1.69 +
    1.70 +</project>