| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <project name="PROJECT_NAME" default="help"> |
| 3 | |
| 4 | <!-- The local.properties file is created and updated by the 'android' tool. |
| Piotr Gurgul | 4e8d9f1 | 2009-08-22 14:45:00 -0700 | [diff] [blame] | 5 | It contains the path to the SDK. It should *NOT* be checked in in Version |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 6 | Control Systems. --> |
| Piotr Gurgul | 4e8d9f1 | 2009-08-22 14:45:00 -0700 | [diff] [blame] | 7 | <property file="local.properties" /> |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 8 | |
| 9 | <!-- The build.properties file can be created by you and is never touched |
| 10 | by the 'android' tool. This is the place to change some of the default property values |
| 11 | used by the Ant rules. |
| 12 | Here are some properties you may want to change/update: |
| 13 | |
| Piotr Gurgul | 3f1f33d | 2009-08-24 23:06:56 -0700 | [diff] [blame] | 14 | application.package |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 15 | the name of your application package as defined in the manifest. Used by the |
| 16 | 'uninstall' rule. |
| Piotr Gurgul | 4e8d9f1 | 2009-08-22 14:45:00 -0700 | [diff] [blame] | 17 | source.dir |
| 18 | the name of the source directory. Default is 'src'. |
| 19 | out.dir |
| 20 | the name of the output directory. Default is 'bin'. |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 21 | |
| 22 | Properties related to the SDK location or the project target should be updated |
| 23 | using the 'android' tool with the 'update' action. |
| 24 | |
| 25 | This file is an integral part of the build system for your application and |
| 26 | should be checked in in Version Control Systems. |
| 27 | |
| 28 | --> |
| Piotr Gurgul | 4e8d9f1 | 2009-08-22 14:45:00 -0700 | [diff] [blame] | 29 | <property file="build.properties" /> |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 30 | |
| 31 | <!-- The default.properties file is created and updated by the 'android' tool, as well |
| Piotr Gurgul | 3f1f33d | 2009-08-24 23:06:56 -0700 | [diff] [blame] | 32 | as ADT. |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 33 | This file is an integral part of the build system for your application and |
| 34 | should be checked in in Version Control Systems. --> |
| Piotr Gurgul | 4e8d9f1 | 2009-08-22 14:45:00 -0700 | [diff] [blame] | 35 | <property file="default.properties" /> |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 36 | |
| 37 | <!-- Custom Android task to deal with the project target, and import the proper rules. |
| 38 | This requires ant 1.6.0 or above. --> |
| 39 | <path id="android.antlibs"> |
| Piotr Gurgul | 3f1f33d | 2009-08-24 23:06:56 -0700 | [diff] [blame] | 40 | <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" /> |
| 41 | <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" /> |
| 42 | <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" /> |
| 43 | <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" /> |
| 44 | <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" /> |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 45 | </path> |
| 46 | |
| 47 | <taskdef name="setup" |
| 48 | classname="com.android.ant.SetupTask" |
| Piotr Gurgul | 4e8d9f1 | 2009-08-22 14:45:00 -0700 | [diff] [blame] | 49 | classpathref="android.antlibs" /> |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 50 | |
| 51 | <!-- Execute the Android Setup task that will setup some properties specific to the target, |
| Xavier Ducrohet | 271701c | 2009-08-07 10:40:24 -0700 | [diff] [blame] | 52 | and import the build rules files. |
| 53 | |
| 54 | The rules file is imported from |
| 55 | <SDK>/platforms/<target_platform>/templates/android_rules.xml |
| 56 | |
| 57 | To customize some build steps for your project: |
| 58 | - copy the content of the main node <project> from android_rules.xml |
| 59 | - paste it in this build.xml below the <setup /> task. |
| 60 | - disable the import by changing the setup task below to <setup import="false" /> |
| Piotr Gurgul | 3f1f33d | 2009-08-24 23:06:56 -0700 | [diff] [blame] | 61 | |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 62 | This will ensure that the properties are setup correctly but that your customized |
| Xavier Ducrohet | 271701c | 2009-08-07 10:40:24 -0700 | [diff] [blame] | 63 | build steps are used. |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 64 | --> |
| 65 | <setup /> |
| Piotr Gurgul | b0b6726 | 2009-09-01 21:58:52 -0700 | [diff] [blame] | 66 | |
| The Android Open Source Project | 55a2c71 | 2009-03-03 19:29:09 -0800 | [diff] [blame] | 67 | </project> |