mirror of https://github.com/perkeep/perkeep.git
android: config changes to build with ant
Change-Id: I6c7030bcc6a2f3bb882af706a8cab2a126faef8c
This commit is contained in:
parent
317c87c189
commit
3f81be742c
|
@ -34,34 +34,39 @@
|
||||||
should be checked in in Version Control Systems. -->
|
should be checked in in Version Control Systems. -->
|
||||||
<property file="default.properties" />
|
<property file="default.properties" />
|
||||||
|
|
||||||
<!-- Custom Android task to deal with the project target, and import the proper rules.
|
<!--
|
||||||
This requires ant 1.6.0 or above. -->
|
Import per project custom build rules if present at the root of the project.
|
||||||
<path id="android.antlibs">
|
This is the place to put custom intermediary targets such as:
|
||||||
<pathelement path="${sdk.dir}/tools/lib/anttasks.jar" />
|
-pre-build
|
||||||
<pathelement path="${sdk.dir}/tools/lib/sdklib.jar" />
|
-pre-compile
|
||||||
<pathelement path="${sdk.dir}/tools/lib/androidprefs.jar" />
|
-post-compile (This is typically used for code obfuscation.
|
||||||
<pathelement path="${sdk.dir}/tools/lib/apkbuilder.jar" />
|
Compiled code location: ${out.classes.absolute.dir}
|
||||||
<pathelement path="${sdk.dir}/tools/lib/jarutils.jar" />
|
If this is not done in place, override ${out.dex.input.absolute.dir})
|
||||||
</path>
|
-post-package
|
||||||
|
-post-build
|
||||||
<taskdef name="setup"
|
-pre-clean
|
||||||
classname="com.android.ant.SetupTask"
|
|
||||||
classpathref="android.antlibs" />
|
|
||||||
|
|
||||||
<!-- Execute the Android Setup task that will setup some properties specific to the target,
|
|
||||||
and import the build rules files.
|
|
||||||
|
|
||||||
The rules file is imported from
|
|
||||||
<SDK>/platforms/<target_platform>/templates/android_rules.xml
|
|
||||||
|
|
||||||
To customize some build steps for your project:
|
|
||||||
- copy the content of the main node <project> from android_rules.xml
|
|
||||||
- paste it in this build.xml below the <setup /> task.
|
|
||||||
- disable the import by changing the setup task below to <setup import="false" />
|
|
||||||
|
|
||||||
This will ensure that the properties are setup correctly but that your customized
|
|
||||||
build steps are used.
|
|
||||||
-->
|
-->
|
||||||
<setup />
|
<import file="custom_rules.xml" optional="true" />
|
||||||
|
|
||||||
|
<!-- Import the actual build file.
|
||||||
|
|
||||||
|
To customize existing targets, there are two options:
|
||||||
|
- Customize only one target:
|
||||||
|
- copy/paste the target into this file, *before* the
|
||||||
|
<import> task.
|
||||||
|
- customize it to your needs.
|
||||||
|
- Customize the whole content of build.xml
|
||||||
|
- copy/paste the content of the rules files (minus the top node)
|
||||||
|
into this file, replacing the <import> task.
|
||||||
|
- customize to your needs.
|
||||||
|
|
||||||
|
***********************
|
||||||
|
****** IMPORTANT ******
|
||||||
|
***********************
|
||||||
|
In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
|
||||||
|
in order to avoid having your file be overridden by tools such as "android update project"
|
||||||
|
-->
|
||||||
|
<!-- version-tag: 1 -->
|
||||||
|
<import file="${sdk.dir}/tools/ant/build.xml" />
|
||||||
|
|
||||||
</project>
|
</project>
|
||||||
|
|
|
@ -8,5 +8,5 @@
|
||||||
# project structure.
|
# project structure.
|
||||||
|
|
||||||
# Project target.
|
# Project target.
|
||||||
target=android-10
|
target=android-17
|
||||||
|
|
||||||
|
|
|
@ -11,4 +11,4 @@
|
||||||
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
#proguard.config=${sdk.dir}/tools/proguard/proguard-android.txt:proguard-project.txt
|
||||||
|
|
||||||
# Project target.
|
# Project target.
|
||||||
target=android-10
|
target=android-17
|
||||||
|
|
Loading…
Reference in New Issue