filename | android/build.xml |
changeset | 1239:be3121267597 |
next | 1245:01e0020adf88 |
author | nkeynes |
date | Sat Feb 25 21:30:49 2012 +1000 (11 years ago) |
permissions | -rw-r--r-- |
last change | Android support WIP |
file | annotate | diff | log | raw |
nkeynes@1239 | 1 | <?xml version="1.0" encoding="UTF-8"?> |
nkeynes@1239 | 2 | <project name="Lxdream" default="help"> |
nkeynes@1239 | 3 | |
nkeynes@1239 | 4 | <!-- The local.properties file is created and updated by the 'android' |
nkeynes@1239 | 5 | tool. |
nkeynes@1239 | 6 | It contains the path to the SDK. It should *NOT* be checked into |
nkeynes@1239 | 7 | Version Control Systems. --> |
nkeynes@1239 | 8 | <property file="local.properties" /> |
nkeynes@1239 | 9 | |
nkeynes@1239 | 10 | <!-- The build.properties file can be created by you and is never touched |
nkeynes@1239 | 11 | by the 'android' tool. This is the place to change some of the |
nkeynes@1239 | 12 | default property values used by the Ant rules. |
nkeynes@1239 | 13 | Here are some properties you may want to change/update: |
nkeynes@1239 | 14 | |
nkeynes@1239 | 15 | source.dir |
nkeynes@1239 | 16 | The name of the source directory. Default is 'src'. |
nkeynes@1239 | 17 | out.dir |
nkeynes@1239 | 18 | The name of the output directory. Default is 'bin'. |
nkeynes@1239 | 19 | |
nkeynes@1239 | 20 | Properties related to the SDK location or the project target should |
nkeynes@1239 | 21 | be updated using the 'android' tool with the 'update' action. |
nkeynes@1239 | 22 | |
nkeynes@1239 | 23 | This file is an integral part of the build system for your |
nkeynes@1239 | 24 | application and should be checked into Version Control Systems. |
nkeynes@1239 | 25 | |
nkeynes@1239 | 26 | --> |
nkeynes@1239 | 27 | <property file="build.properties" /> |
nkeynes@1239 | 28 | |
nkeynes@1239 | 29 | <!-- The default.properties file is created and updated by the 'android' |
nkeynes@1239 | 30 | tool, as well as ADT. |
nkeynes@1239 | 31 | This file is an integral part of the build system for your |
nkeynes@1239 | 32 | application and should be checked into Version Control Systems. --> |
nkeynes@1239 | 33 | <property file="default.properties" /> |
nkeynes@1239 | 34 | |
nkeynes@1239 | 35 | |
nkeynes@1239 | 36 | <!-- Required pre-setup import --> |
nkeynes@1239 | 37 | <import file="${sdk.dir}/tools/ant/pre_setup.xml" /> |
nkeynes@1239 | 38 | |
nkeynes@1239 | 39 | |
nkeynes@1239 | 40 | <!-- extension targets. Uncomment the ones where you want to do custom work |
nkeynes@1239 | 41 | in between standard targets --> |
nkeynes@1239 | 42 | <!-- |
nkeynes@1239 | 43 | <target name="-pre-build"> |
nkeynes@1239 | 44 | </target> |
nkeynes@1239 | 45 | <target name="-pre-compile"> |
nkeynes@1239 | 46 | </target> |
nkeynes@1239 | 47 | |
nkeynes@1239 | 48 | [This is typically used for code obfuscation. |
nkeynes@1239 | 49 | Compiled code location: ${out.classes.absolute.dir} |
nkeynes@1239 | 50 | If this is not done in place, override ${out.dex.input.absolute.dir}] |
nkeynes@1239 | 51 | <target name="-post-compile"> |
nkeynes@1239 | 52 | </target> |
nkeynes@1239 | 53 | --> |
nkeynes@1239 | 54 | |
nkeynes@1239 | 55 | <!-- Execute the Android Setup task that will setup some properties |
nkeynes@1239 | 56 | specific to the target, and import the build rules files. |
nkeynes@1239 | 57 | |
nkeynes@1239 | 58 | The rules file is imported from |
nkeynes@1239 | 59 | <SDK>/tools/ant/ |
nkeynes@1239 | 60 | Depending on the project type it can be either: |
nkeynes@1239 | 61 | - main_rules.xml |
nkeynes@1239 | 62 | - lib_rules.xml |
nkeynes@1239 | 63 | - test_rules.xml |
nkeynes@1239 | 64 | |
nkeynes@1239 | 65 | To customize existing targets, there are two options: |
nkeynes@1239 | 66 | - Customize only one target: |
nkeynes@1239 | 67 | - copy/paste the target into this file, *before* the |
nkeynes@1239 | 68 | <setup> task. |
nkeynes@1239 | 69 | - customize it to your needs. |
nkeynes@1239 | 70 | - Customize the whole script. |
nkeynes@1239 | 71 | - copy/paste the content of the rules files (minus the top node) |
nkeynes@1239 | 72 | into this file, *after* the <setup> task |
nkeynes@1239 | 73 | - disable the import of the rules by changing the setup task |
nkeynes@1239 | 74 | below to <setup import="false" />. |
nkeynes@1239 | 75 | - customize to your needs. |
nkeynes@1239 | 76 | --> |
nkeynes@1239 | 77 | <setup /> |
nkeynes@1239 | 78 | |
nkeynes@1239 | 79 | </project> |
.