diff options
author | Xavier Ducrohet <xav@google.com> | 2013-08-14 00:13:37 +0000 |
---|---|---|
committer | Gerrit Code Review <noreply-gerritcodereview@google.com> | 2013-08-14 00:13:37 +0000 |
commit | 002df2729fc7b67edbc057a1207f1313d86d1978 (patch) | |
tree | 9fe0e63c8e0400b005a5f75c466974284d175f6a | |
parent | 092e338a52df9eeb37675ed011d878f59a88808e (diff) | |
parent | 56d7213431b4cb73b2ab8af54b284bde2cee8ac6 (diff) | |
download | sdk-002df2729fc7b67edbc057a1207f1313d86d1978.zip sdk-002df2729fc7b67edbc057a1207f1313d86d1978.tar.gz sdk-002df2729fc7b67edbc057a1207f1313d86d1978.tar.bz2 |
Merge "Renderscript support mode for ant."
-rw-r--r-- | files/ant/build.xml | 28 |
1 files changed, 18 insertions, 10 deletions
diff --git a/files/ant/build.xml b/files/ant/build.xml index 1c3f82d..66d7139 100644 --- a/files/ant/build.xml +++ b/files/ant/build.xml @@ -76,6 +76,7 @@ <!-- Renderscript options --> <property name="renderscript.debug.opt.level" value="O0" /> <property name="renderscript.release.opt.level" value="O3" /> + <property name="renderscript.support.mode" value="false" /> <!-- manifest merger default value --> <property name="manifestmerger.enabled" value="false" /> @@ -144,6 +145,8 @@ <property name="out.absolute.dir" location="${out.dir}" /> <property name="out.classes.absolute.dir" location="${out.dir}/classes" /> <property name="out.res.absolute.dir" location="${out.dir}/res" /> + <property name="out.rs.obj.absolute.dir" location="${out.dir}/rsObj" /> + <property name="out.rs.libs.absolute.dir" location="${out.dir}/rsLibs" /> <property name="out.aidl.absolute.dir" location="${out.dir}/aidl" /> <property name="out.dexed.absolute.dir" location="${out.dir}/dexedLibs" /> <property name="out.manifest.abs.file" location="${out.dir}/AndroidManifest.xml" /> @@ -313,6 +316,8 @@ <jarfile refid="project.all.jars.path" /> <nativefolder path="${native.libs.absolute.dir}" /> <nativefolder refid="project.library.native.folder.path" /> + <nativefolder refid="project.rs.support.libs.path" /> + <nativefolder path="${out.rs.libs.absolute.dir}" /> <extra-jars/> </apkbuilder> </sequential> @@ -476,17 +481,11 @@ <!-- Pre build setup --> <target name="-build-setup" depends="-setup"> <!-- find location of build tools --> - <getbuildtools name="android.build.tools.dir" /> + <getbuildtools name="android.build.tools.dir" verbose="${verbose}" /> <property name="aidl" location="${android.build.tools.dir}/aidl${exe}" /> <property name="aapt" location="${android.build.tools.dir}/aapt${exe}" /> <property name="dx" location="${android.build.tools.dir}/dx${bat}" /> - <!-- Renderscript include Path --> - <path id="android.renderscript.include.path"> - <pathelement location="${android.build.tools.dir}/renderscript/include" /> - <pathelement location="${android.build.tools.dir}/renderscript/clang-include" /> - </path> - <!-- read the previous build mode --> <property file="${out.build.prop.file}" /> <!-- if empty the props won't be set, meaning it's a new build. @@ -552,6 +551,8 @@ <mkdir dir="${jar.libs.absolute.dir}" /> <mkdir dir="${out.absolute.dir}" /> <mkdir dir="${out.res.absolute.dir}" /> + <mkdir dir="${out.rs.obj.absolute.dir}" /> + <mkdir dir="${out.rs.libs.absolute.dir}" /> <do-only-if-manifest-hasCode> <mkdir dir="${gen.absolute.dir}" /> <mkdir dir="${out.classes.absolute.dir}" /> @@ -570,6 +571,9 @@ libraryNativeFolderPathOut="project.library.native.folder.path" jarLibraryPathOut="project.all.jars.path" targetApi="${project.target.apilevel}" + renderscriptSupportMode="${renderscript.support.mode}" + buildToolsFolder="${android.build.tools.dir}" + renderscriptSupportLibsOut="project.rs.support.libs.path" verbose="${verbose}" /> <!-- compile the libraries if any --> @@ -661,12 +665,16 @@ <echo level="info">Handling RenderScript files...</echo> <!-- set the rs target prop in case it hasn't been set. --> <property name="renderscript.target" value="${project.minSdkVersion}" /> - <renderscript buildToolsRoot="${android.build.tools.dir}" - includePathRefId="android.renderscript.include.path" + <renderscript + buildToolsRoot="${android.build.tools.dir}" genFolder="${gen.absolute.dir}" - resFolder="${out.res.absolute.dir}/raw" + resFolder="${out.res.absolute.dir}" + rsObjFolder="${out.rs.obj.absolute.dir}" + libsFolder="${out.rs.libs.absolute.dir}" targetApi="${renderscript.target}" optLevel="${renderscript.opt.level}" + supportMode="${renderscript.support.mode}" + binFolder="${out.absolute.dir}" buildType="${build.is.packaging.debug}" previousBuildType="${build.last.is.packaging.debug}"> <source path="${source.absolute.dir}"/> |