From e162064a7b5db1eecec34271bc7e2a4296181ea6 Mon Sep 17 00:00:00 2001 From: Xavier Ducrohet Date: Fri, 14 Oct 2011 11:13:58 -0700 Subject: Add BuildConfig to ant SDK project. The BuildConfig class contains a single boolean constant called DEBUG which is true only for debug/instrumented builds. This allows developers to create debug only code that's automatically stripped from release builds. Also fixed some issues with dependency check for other tasks, notably the aapt task that would always find new files due to not filtering out files that are ignored by aapt itself (hidden files, version control files, etc...) Change-Id: I4391a87c064a185d6b337ca46e3a9f0e43c5174d --- files/ant/build.xml | 113 ++++++++++++++++++++++++++++++++++++++-------------- 1 file changed, 84 insertions(+), 29 deletions(-) (limited to 'files/ant') diff --git a/files/ant/build.xml b/files/ant/build.xml index cc8f398..91dbb1f 100644 --- a/files/ant/build.xml +++ b/files/ant/build.xml @@ -7,7 +7,7 @@ regular projects, library projects, or test projects. At the beginning of the file is a list of properties that can be overridden - by adding them to your build.properties (properties are immutable, so their + by adding them to your ant.properties (properties are immutable, so their first definition sticks and is never changed). Follows: @@ -23,7 +23,9 @@ - help target --> - + + + @@ -52,7 +54,9 @@ - + + + @@ -76,6 +80,10 @@ classname="com.android.ant.RenderScriptTask" classpathref="android.antlibs" /> + + @@ -106,7 +114,9 @@ - + + + @@ -174,7 +184,9 @@ - + + + @@ -244,9 +256,7 @@ + verbose="${verbose}"> @@ -351,7 +361,9 @@ - + + + - - - - - - + + + + + @@ -502,20 +513,39 @@ - + - - + + - Switching from instrumented to non-instrumented build. - Deleting previous compilation output: + Switching between debug and non debug build: Deleting previous compilation output... + + + + + + + + + + + Switching from instrumented to non-instrumented build: Deleting previous compilation output... + + + + Creating output directories if needed... @@ -569,6 +599,17 @@ + + ---------- + Handling BuildConfig class... + + + @@ -593,7 +634,7 @@ - + + + @@ -863,7 +906,9 @@ - + + + @@ -974,7 +1019,9 @@ - + + + + + + @@ -1089,7 +1138,9 @@ - + + + - + Installing ${out.final.file} onto default emulator or device... @@ -1198,6 +1249,10 @@ + + + + -- cgit v1.1