Search
lxdream.org :: lxdream/android/build.xml :: diff
lxdream 0.9.1
released Jun 29
Download Now
filename android/build.xml
changeset 1245:01e0020adf88
prev1239:be3121267597
author nkeynes
date Sat Mar 03 15:52:59 2012 +1000 (12 years ago)
permissions -rw-r--r--
last change Swap between run + pause icons when pressed
file annotate diff log raw
1.1 --- a/android/build.xml Sat Feb 25 21:30:49 2012 +1000
1.2 +++ b/android/build.xml Sat Mar 03 15:52:59 2012 +1000
1.3 @@ -1,15 +1,14 @@
1.4 <?xml version="1.0" encoding="UTF-8"?>
1.5 <project name="Lxdream" default="help">
1.6
1.7 -<!-- The local.properties file is created and updated by the 'android'
1.8 - tool.
1.9 - It contains the path to the SDK. It should *NOT* be checked into
1.10 - Version Control Systems. -->
1.11 + <!-- The local.properties file is created and updated by the 'android' tool.
1.12 + It contains the path to the SDK. It should *NOT* be checked into
1.13 + Version Control Systems. -->
1.14 <property file="local.properties" />
1.15
1.16 - <!-- The build.properties file can be created by you and is never touched
1.17 - by the 'android' tool. This is the place to change some of the
1.18 - default property values used by the Ant rules.
1.19 + <!-- The ant.properties file can be created by you. It is only edited by the
1.20 + 'android' tool to add properties to it.
1.21 + This is the place to change some Ant specific build properties.
1.22 Here are some properties you may want to change/update:
1.23
1.24 source.dir
1.25 @@ -17,6 +16,9 @@
1.26 out.dir
1.27 The name of the output directory. Default is 'bin'.
1.28
1.29 + For other overridable properties, look at the beginning of the rules
1.30 + files in the SDK, at tools/ant/build.xml
1.31 +
1.32 Properties related to the SDK location or the project target should
1.33 be updated using the 'android' tool with the 'update' action.
1.34
1.35 @@ -24,17 +26,24 @@
1.36 application and should be checked into Version Control Systems.
1.37
1.38 -->
1.39 - <property file="build.properties" />
1.40 + <property file="ant.properties" />
1.41
1.42 - <!-- The default.properties file is created and updated by the 'android'
1.43 + <!-- The project.properties file is created and updated by the 'android'
1.44 tool, as well as ADT.
1.45 +
1.46 + This contains project specific properties such as project target, and library
1.47 + dependencies. Lower level build properties are stored in ant.properties
1.48 + (or in .classpath for Eclipse projects).
1.49 +
1.50 This file is an integral part of the build system for your
1.51 application and should be checked into Version Control Systems. -->
1.52 - <property file="default.properties" />
1.53 + <loadproperties srcFile="project.properties" />
1.54
1.55 -
1.56 - <!-- Required pre-setup import -->
1.57 - <import file="${sdk.dir}/tools/ant/pre_setup.xml" />
1.58 + <!-- quick check on sdk.dir -->
1.59 + <fail
1.60 + message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through an env var"
1.61 + unless="sdk.dir"
1.62 + />
1.63
1.64
1.65 <!-- extension targets. Uncomment the ones where you want to do custom work
1.66 @@ -45,35 +54,32 @@
1.67 <target name="-pre-compile">
1.68 </target>
1.69
1.70 - [This is typically used for code obfuscation.
1.71 - Compiled code location: ${out.classes.absolute.dir}
1.72 - If this is not done in place, override ${out.dex.input.absolute.dir}]
1.73 + /* This is typically used for code obfuscation.
1.74 + Compiled code location: ${out.classes.absolute.dir}
1.75 + If this is not done in place, override ${out.dex.input.absolute.dir} */
1.76 <target name="-post-compile">
1.77 </target>
1.78 -->
1.79
1.80 - <!-- Execute the Android Setup task that will setup some properties
1.81 - specific to the target, and import the build rules files.
1.82 -
1.83 - The rules file is imported from
1.84 - <SDK>/tools/ant/
1.85 - Depending on the project type it can be either:
1.86 - - main_rules.xml
1.87 - - lib_rules.xml
1.88 - - test_rules.xml
1.89 + <!-- Import the actual build file.
1.90
1.91 To customize existing targets, there are two options:
1.92 - Customize only one target:
1.93 - copy/paste the target into this file, *before* the
1.94 - <setup> task.
1.95 + <import> task.
1.96 - customize it to your needs.
1.97 - - Customize the whole script.
1.98 + - Customize the whole content of build.xml
1.99 - copy/paste the content of the rules files (minus the top node)
1.100 - into this file, *after* the <setup> task
1.101 - - disable the import of the rules by changing the setup task
1.102 - below to <setup import="false" />.
1.103 + into this file, replacing the <import> task.
1.104 - customize to your needs.
1.105 +
1.106 + ***********************
1.107 + ****** IMPORTANT ******
1.108 + ***********************
1.109 + In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
1.110 + in order to avoid having your file be overridden by tools such as "android update project"
1.111 -->
1.112 - <setup />
1.113 + <!-- version-tag: 1 -->
1.114 + <import file="${sdk.dir}/tools/ant/build.xml" />
1.115
1.116 </project>
.