Commit 1b4a826d144e80e174bcc1ec60560cf5ffd224c2

  • avatar
  • hyatt <hyatt @Qua…as.localdomain>
  • Sun Dec 27 14:00:43 CET 2009
Updating files for Android 2.0.1
build.xml
(28 / 22)
  
22<project name="amdroid" default="help">
33
44 <!-- The local.properties file is created and updated by the 'android' tool.
5 It contain 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 in in Version
66 Control Systems. -->
7 <property file="local.properties"/>
7 <property file="local.properties" />
88
99 <!-- The build.properties file can be created by you and is never touched
1010 by the 'android' tool. This is the place to change some of the default property values
1111 used by the Ant rules.
1212 Here are some properties you may want to change/update:
1313
14 application-package
14 application.package
1515 the name of your application package as defined in the manifest. Used by the
1616 'uninstall' rule.
17 source-folder
18 the name of the source folder. Default is 'src'.
19 out-folder
20 the name of the output folder. Default is 'bin'.
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'.
2121
2222 Properties related to the SDK location or the project target should be updated
2323 using the 'android' tool with the 'update' action.
2626 should be checked in in Version Control Systems.
2727
2828 -->
29 <property file="build.properties"/>
29 <property file="build.properties" />
3030
3131 <!-- The default.properties file is created and updated by the 'android' tool, as well
32 as ADT.
32 as ADT.
3333 This file is an integral part of the build system for your application and
3434 should be checked in in Version Control Systems. -->
35 <property file="default.properties"/>
35 <property file="default.properties" />
3636
3737 <!-- Custom Android task to deal with the project target, and import the proper rules.
3838 This requires ant 1.6.0 or above. -->
3939 <path id="android.antlibs">
40 <pathelement path="${sdk-location}/tools/lib/anttasks.jar" />
41 <pathelement path="${sdk-location}/tools/lib/sdklib.jar" />
42 <pathelement path="${sdk-location}/tools/lib/androidprefs.jar" />
43 <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" />
44 <pathelement path="${sdk-location}/tools/lib/jarutils.jar" />
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" />
4545 </path>
4646
4747 <taskdef name="setup"
4848 classname="com.android.ant.SetupTask"
49 classpathref="android.antlibs"/>
49 classpathref="android.antlibs" />
5050
5151 <!-- Execute the Android Setup task that will setup some properties specific to the target,
52 and import the rules files.
53 To customize the rules, copy/paste them below the task, and disable import by setting
54 the import attribute to false:
55 <setup import="false" />
56
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" />
61
5762 This will ensure that the properties are setup correctly but that your customized
58 targets are used.
63 build steps are used.
5964 -->
6065 <setup />
66
6167</project>
  
88# project structure.
99
1010# Project target.
11target=android-4
11target=Google Inc.:Google APIs:6