ndktest

annotate build.xml @ 1:fe78cf853157

fixed the build files
author John Tsiombikas <nuclear@member.fsf.org>
date Fri, 24 Apr 2015 03:20:17 +0300
parents
children
rev   line source
nuclear@1 1 <?xml version="1.0" encoding="UTF-8"?>
nuclear@1 2 <project name="ndktest" default="help">
nuclear@1 3
nuclear@1 4 <!-- The local.properties file is created and updated by the 'android' tool.
nuclear@1 5 It contains the path to the SDK. It should *NOT* be checked into
nuclear@1 6 Version Control Systems. -->
nuclear@1 7 <property file="local.properties" />
nuclear@1 8
nuclear@1 9 <!-- The ant.properties file can be created by you. It is only edited by the
nuclear@1 10 'android' tool to add properties to it.
nuclear@1 11 This is the place to change some Ant specific build properties.
nuclear@1 12 Here are some properties you may want to change/update:
nuclear@1 13
nuclear@1 14 source.dir
nuclear@1 15 The name of the source directory. Default is 'src'.
nuclear@1 16 out.dir
nuclear@1 17 The name of the output directory. Default is 'bin'.
nuclear@1 18
nuclear@1 19 For other overridable properties, look at the beginning of the rules
nuclear@1 20 files in the SDK, at tools/ant/build.xml
nuclear@1 21
nuclear@1 22 Properties related to the SDK location or the project target should
nuclear@1 23 be updated using the 'android' tool with the 'update' action.
nuclear@1 24
nuclear@1 25 This file is an integral part of the build system for your
nuclear@1 26 application and should be checked into Version Control Systems.
nuclear@1 27
nuclear@1 28 -->
nuclear@1 29 <property file="ant.properties" />
nuclear@1 30
nuclear@1 31 <!-- if sdk.dir was not set from one of the property file, then
nuclear@1 32 get it from the ANDROID_HOME env var.
nuclear@1 33 This must be done before we load project.properties since
nuclear@1 34 the proguard config can use sdk.dir -->
nuclear@1 35 <property environment="env" />
nuclear@1 36 <condition property="sdk.dir" value="${env.ANDROID_HOME}">
nuclear@1 37 <isset property="env.ANDROID_HOME" />
nuclear@1 38 </condition>
nuclear@1 39
nuclear@1 40 <!-- The project.properties file is created and updated by the 'android'
nuclear@1 41 tool, as well as ADT.
nuclear@1 42
nuclear@1 43 This contains project specific properties such as project target, and library
nuclear@1 44 dependencies. Lower level build properties are stored in ant.properties
nuclear@1 45 (or in .classpath for Eclipse projects).
nuclear@1 46
nuclear@1 47 This file is an integral part of the build system for your
nuclear@1 48 application and should be checked into Version Control Systems. -->
nuclear@1 49 <loadproperties srcFile="project.properties" />
nuclear@1 50
nuclear@1 51 <!-- quick check on sdk.dir -->
nuclear@1 52 <fail
nuclear@1 53 message="sdk.dir is missing. Make sure to generate local.properties using 'android update project' or to inject it through the ANDROID_HOME environment variable."
nuclear@1 54 unless="sdk.dir"
nuclear@1 55 />
nuclear@1 56
nuclear@1 57 <!--
nuclear@1 58 Import per project custom build rules if present at the root of the project.
nuclear@1 59 This is the place to put custom intermediary targets such as:
nuclear@1 60 -pre-build
nuclear@1 61 -pre-compile
nuclear@1 62 -post-compile (This is typically used for code obfuscation.
nuclear@1 63 Compiled code location: ${out.classes.absolute.dir}
nuclear@1 64 If this is not done in place, override ${out.dex.input.absolute.dir})
nuclear@1 65 -post-package
nuclear@1 66 -post-build
nuclear@1 67 -pre-clean
nuclear@1 68 -->
nuclear@1 69 <import file="custom_rules.xml" optional="true" />
nuclear@1 70
nuclear@1 71 <!-- Import the actual build file.
nuclear@1 72
nuclear@1 73 To customize existing targets, there are two options:
nuclear@1 74 - Customize only one target:
nuclear@1 75 - copy/paste the target into this file, *before* the
nuclear@1 76 <import> task.
nuclear@1 77 - customize it to your needs.
nuclear@1 78 - Customize the whole content of build.xml
nuclear@1 79 - copy/paste the content of the rules files (minus the top node)
nuclear@1 80 into this file, replacing the <import> task.
nuclear@1 81 - customize to your needs.
nuclear@1 82
nuclear@1 83 ***********************
nuclear@1 84 ****** IMPORTANT ******
nuclear@1 85 ***********************
nuclear@1 86 In all cases you must update the value of version-tag below to read 'custom' instead of an integer,
nuclear@1 87 in order to avoid having your file be overridden by tools such as "android update project"
nuclear@1 88 -->
nuclear@1 89 <!-- version-tag: 1 -->
nuclear@1 90 <import file="${sdk.dir}/tools/ant/build.xml" />
nuclear@1 91
nuclear@1 92 </project>