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