Mercurial > MadButterfly
annotate Android/examples/testpath/build.xml @ 776:77b561bb7929
Implement new algorithm to calculate the origin of the SVG elemnts so that we can implement object resize without changing the position of the object.
However, the image does not work here since it does not use the transformation of the group.
author | wycc |
---|---|
date | Mon, 30 Aug 2010 08:56:44 +0800 |
parents | 47c6fd9dd83c |
children |
rev | line source |
---|---|
501
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
1 <?xml version="1.0" encoding="UTF-8"?> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
2 <project name="testpath" default="help"> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
3 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
4 <!-- The local.properties file is created and updated by the 'android' tool. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
5 It contain the path to the SDK. It should *NOT* be checked in in Version |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
6 Control Systems. --> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
7 <property file="local.properties"/> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
8 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
9 <!-- The build.properties file can be created by you and is never touched |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
10 by the 'android' tool. This is the place to change some of the default property values |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
11 used by the Ant rules. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
12 Here are some properties you may want to change/update: |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
13 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
14 application-package |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
15 the name of your application package as defined in the manifest. Used by the |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
16 'uninstall' rule. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
17 source-folder |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
18 the name of the source folder. Default is 'src'. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
19 out-folder |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
20 the name of the output folder. Default is 'bin'. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
21 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
22 Properties related to the SDK location or the project target should be updated |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
23 using the 'android' tool with the 'update' action. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
24 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
25 This file is an integral part of the build system for your application and |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
26 should be checked in in Version Control Systems. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
27 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
28 --> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
29 <property file="build.properties"/> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
30 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
31 <!-- The default.properties file is created and updated by the 'android' tool, as well |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
32 as ADT. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
33 This file is an integral part of the build system for your application and |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
34 should be checked in in Version Control Systems. --> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
35 <property file="default.properties"/> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
36 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
37 <!-- Custom Android task to deal with the project target, and import the proper rules. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
38 This requires ant 1.6.0 or above. --> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
39 <path id="android.antlibs"> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
40 <pathelement path="${sdk-location}/tools/lib/anttasks.jar" /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
41 <pathelement path="${sdk-location}/tools/lib/sdklib.jar" /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
42 <pathelement path="${sdk-location}/tools/lib/androidprefs.jar" /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
43 <pathelement path="${sdk-location}/tools/lib/apkbuilder.jar" /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
44 <pathelement path="${sdk-location}/tools/lib/jarutils.jar" /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
45 </path> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
46 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
47 <taskdef name="setup" |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
48 classname="com.android.ant.SetupTask" |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
49 classpathref="android.antlibs"/> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
50 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
51 <!-- Execute the Android Setup task that will setup some properties specific to the target, |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
52 and import the build rules files. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
53 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
54 The rules file is imported from |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
55 <SDK>/platforms/<target_platform>/templates/android_rules.xml |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
56 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
57 To customize some build steps for your project: |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
58 - copy the content of the main node <project> from android_rules.xml |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
59 - paste it in this build.xml below the <setup /> task. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
60 - disable the import by changing the setup task below to <setup import="false" /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
61 |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
62 This will ensure that the properties are setup correctly but that your customized |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
63 build steps are used. |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
64 --> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
65 <setup /> |
e505597c17fb
testpath is an Android Java application for demo MadButterfly.
Thinker K.F. Li <thinker@branda.to>
parents:
diff
changeset
|
66 </project> |