1 <?xml version="1.0" encoding="UTF-8"?> |
1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="Hedgewars" default="help"> |
2 <project name="MainActivity" 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 in in Version |
5 It contains the path to the SDK. It should *NOT* be checked into |
6 Control Systems. --> |
6 Version Control Systems. --> |
7 <property file="local.properties" /> |
7 <loadproperties srcFile="local.properties" /> |
8 |
8 |
9 <!-- The build.properties file can be created by you and is never touched |
9 <!-- The ant.properties file can be created by you. It is only edited by the |
10 by the 'android' tool. This is the place to change some of the default property values |
10 'android' tool to add properties to it. |
11 used by the Ant rules. |
11 This is the place to change some Ant specific build properties. |
12 Here are some properties you may want to change/update: |
12 Here are some properties you may want to change/update: |
13 |
13 |
14 application.package |
|
15 the name of your application package as defined in the manifest. Used by the |
|
16 'uninstall' rule. |
|
17 source.dir |
14 source.dir |
18 the name of the source directory. Default is 'src'. |
15 The name of the source directory. Default is 'src'. |
19 out.dir |
16 out.dir |
20 the name of the output directory. Default is 'bin'. |
17 The name of the output directory. Default is 'bin'. |
21 |
18 |
22 Properties related to the SDK location or the project target should be updated |
19 For other overridable properties, look at the beginning of the rules |
23 using the 'android' tool with the 'update' action. |
20 files in the SDK, at tools/ant/build.xml |
24 |
21 |
25 This file is an integral part of the build system for your application and |
22 Properties related to the SDK location or the project target should |
26 should be checked in in Version Control Systems. |
23 be updated using the 'android' tool with the 'update' action. |
|
24 |
|
25 This file is an integral part of the build system for your |
|
26 application and should be checked into Version Control Systems. |
27 |
27 |
28 --> |
28 --> |
29 <property file="build.properties" /> |
29 <property file="ant.properties" /> |
30 |
30 |
31 <!-- The default.properties file is created and updated by the 'android' tool, as well |
31 <!-- The project.properties file is created and updated by the 'android' |
32 as ADT. |
32 tool, as well as ADT. |
33 This file is an integral part of the build system for your application and |
|
34 should be checked in in Version Control Systems. --> |
|
35 <property file="default.properties" /> |
|
36 |
33 |
37 <!-- Custom Android task to deal with the project target, and import the proper rules. |
34 This contains project specific properties such as project target, and library |
38 This requires ant 1.6.0 or above. --> |
35 dependencies. Lower level build properties are stored in ant.properties |
39 <path id="android.antlibs"> |
36 (or in .classpath for Eclipse projects). |
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" /> |
|
45 </path> |
|
46 |
37 |
47 <taskdef name="setup" |
38 This file is an integral part of the build system for your |
48 classname="com.android.ant.SetupTask" |
39 application and should be checked into Version Control Systems. --> |
49 classpathref="android.antlibs" /> |
40 <loadproperties srcFile="project.properties" /> |
50 |
41 |
51 <!-- Execute the Android Setup task that will setup some properties specific to the target, |
42 <!-- quick check on sdk.dir --> |
52 and import the build rules files. |
43 <fail |
|
44 message="sdk.dir is missing. Make sure to generate local.properties using 'android update project'" |
|
45 unless="sdk.dir" |
|
46 /> |
53 |
47 |
54 The rules file is imported from |
|
55 <SDK>/platforms/<target_platform>/templates/android_rules.xml |
|
56 |
48 |
57 To customize some build steps for your project: |
49 <!-- extension targets. Uncomment the ones where you want to do custom work |
58 - copy the content of the main node <project> from android_rules.xml |
50 in between standard targets --> |
59 - paste it in this build.xml below the <setup /> task. |
51 <!-- |
60 - disable the import by changing the setup task below to <setup import="false" /> |
52 <target name="-pre-build"> |
|
53 </target> |
|
54 <target name="-pre-compile"> |
|
55 </target> |
61 |
56 |
62 This will ensure that the properties are setup correctly but that your customized |
57 /* This is typically used for code obfuscation. |
63 build steps are used. |
58 Compiled code location: ${out.classes.absolute.dir} |
|
59 If this is not done in place, override ${out.dex.input.absolute.dir} */ |
|
60 <target name="-post-compile"> |
|
61 </target> |
|
62 --> |
|
63 |
|
64 <!-- Import the actual build file. |
|
65 |
|
66 To customize existing targets, there are two options: |
|
67 - Customize only one target: |
|
68 - copy/paste the target into this file, *before* the |
|
69 <import> task. |
|
70 - customize it to your needs. |
|
71 - Customize the whole content of build.xml |
|
72 - copy/paste the content of the rules files (minus the top node) |
|
73 into this file, replacing the <import> task. |
|
74 - customize to your needs. |
|
75 |
|
76 *********************** |
|
77 ****** IMPORTANT ****** |
|
78 *********************** |
|
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" |
64 --> |
81 --> |
65 <setup /> |
82 <!-- version-tag: 1 --> |
|
83 <import file="${sdk.dir}/tools/ant/build.xml" /> |
66 |
84 |
67 </project> |
85 </project> |