annotate android/testproject/build.xml @ 4717:191f4693d0c1

OK, /actually/ fixed the nativeQuit() crash this time
author Paul Hunkin <paul@bieh.net>
date Tue, 27 Jul 2010 11:02:07 +0200
parents 611d39792201
children
rev   line source
4704
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
1 <?xml version="1.0" encoding="UTF-8"?>
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
2 <project name="Test" default="help">
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
3
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
4 <!-- The local.properties file is created and updated by the 'android' tool.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
5 It contains the path to the SDK. It should *NOT* be checked in in Version
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
6 Control Systems. -->
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
7 <property file="local.properties" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
8
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
9 <!-- The build.properties file can be created by you and is never touched
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
10 by the 'android' tool. This is the place to change some of the default property values
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
11 used by the Ant rules.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
12 Here are some properties you may want to change/update:
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
13
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
14 application.package
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
15 the name of your application package as defined in the manifest. Used by the
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
16 'uninstall' rule.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
17 source.dir
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
18 the name of the source directory. Default is 'src'.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
19 out.dir
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
20 the name of the output directory. Default is 'bin'.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
21
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
22 Properties related to the SDK location or the project target should be updated
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
23 using the 'android' tool with the 'update' action.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
24
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
25 This file is an integral part of the build system for your application and
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
26 should be checked in in Version Control Systems.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
27
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
28 -->
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
29 <property file="build.properties" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
30
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
31 <!-- The default.properties file is created and updated by the 'android' tool, as well
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
32 as ADT.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
33 This file is an integral part of the build system for your application and
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
34 should be checked in in Version Control Systems. -->
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
35 <property file="default.properties" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
36
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
37 <!-- Custom Android task to deal with the project target, and import the proper rules.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
38 This requires ant 1.6.0 or above. -->
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
39 <path id="android.antlibs">
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
40 <pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
41 <pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
42 <pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
43 <pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
44 <pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
45 </path>
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
46
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
47 <taskdef name="setup"
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
48 classname="com.android.ant.SetupTask"
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
49 classpathref="android.antlibs" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
50
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
51 <!-- Execute the Android Setup task that will setup some properties specific to the target,
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
52 and import the build rules files.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
53
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
54 The rules file is imported from
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
55 <SDK>/platforms/<target_platform>/templates/android_rules.xml
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
56
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
57 To customize some build steps for your project:
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
58 - copy the content of the main node <project> from android_rules.xml
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
59 - paste it in this build.xml below the <setup /> task.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
60 - disable the import by changing the setup task below to <setup import="false" />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
61
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
62 This will ensure that the properties are setup correctly but that your customized
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
63 build steps are used.
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
64 -->
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
65 <setup />
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
66
611d39792201 Added minimal test project
Paul Hunkin <paul@bieh.net>
parents:
diff changeset
67 </project>