diff options
author | Xavier Ducrohet <xav@android.com> | 2012-03-22 12:37:29 -0700 |
---|---|---|
committer | android code review <noreply-gerritcodereview@google.com> | 2012-03-22 12:37:30 -0700 |
commit | 36e49c5277ac346398d96d67c7ee5814bded8a5f (patch) | |
tree | 1f347a3c9a4e059ddd3331367fd818d800380021 /files | |
parent | 7a795b5291224e2b85885f4d1f4d7ac097e96d3c (diff) | |
parent | 4987af409c704c881be83f9a90b98ce7658e1c46 (diff) | |
download | sdk-36e49c5277ac346398d96d67c7ee5814bded8a5f.zip sdk-36e49c5277ac346398d96d67c7ee5814bded8a5f.tar.gz sdk-36e49c5277ac346398d96d67c7ee5814bded8a5f.tar.bz2 |
Merge "Enable passing of debug and optimization flags to slang in Ant builds."
Diffstat (limited to 'files')
-rw-r--r-- | files/ant/build.xml | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml index 77f9a16..c49fc5a 100644 --- a/files/ant/build.xml +++ b/files/ant/build.xml @@ -610,7 +610,9 @@ framework="${android.rs}" genFolder="${gen.absolute.dir}" resFolder="${out.res.absolute.dir}/raw" - targetApi="${target.api}"> + targetApi="${target.api}" + optLevel="${renderscript.opt.level}" + debug="${build.is.packaging.debug}"> <source path="${source.absolute.dir}"/> </renderscript> @@ -932,6 +934,9 @@ <!-- signing mode: debug --> <property name="build.is.signing.debug" value="true" /> + <!-- Renderscript optimization level: none --> + <property name="renderscript.opt.level" value="O0" /> + </target> <target name="-debug-obfuscation-check"> @@ -1021,6 +1026,9 @@ <!-- signing mode: release --> <property name="build.is.signing.debug" value="false" /> + <!-- Renderscript optimization level: aggressive --> + <property name="renderscript.opt.level" value="O3" /> + <if condition="${build.is.packaging.debug}"> <then> <echo>*************************************************</echo> |