Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1125)

Unified Diff: build/android/ant/apk-codegen.xml

Issue 301543002: Revert of Remove apk-codegen.xml (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | build/android/ant/apk-package-resources.xml » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/ant/apk-codegen.xml
diff --git a/build/android/ant/apk-codegen.xml b/build/android/ant/apk-codegen.xml
new file mode 100644
index 0000000000000000000000000000000000000000..78b8f686c1528adedfaae3351ca45c2a99384235
--- /dev/null
+++ b/build/android/ant/apk-codegen.xml
@@ -0,0 +1,98 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+ Copyright (C) 2005-2008 The Android Open Source Project
+
+ Licensed under the Apache License, Version 2.0 (the "License");
+ you may not use this file except in compliance with the License.
+ You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+ Unless required by applicable law or agreed to in writing, software
+ distributed under the License is distributed on an "AS IS" BASIS,
+ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ See the License for the specific language governing permissions and
+ limitations under the License.
+-->
+
+<project default="-code-gen">
+ <property name="verbose" value="false" />
+
+ <property name="out.dir" location="${OUT_DIR}" />
+ <property name="out.absolute.dir" location="${out.dir}" />
+ <property name="out.res.absolute.dir" location="${out.dir}/res" />
+ <property name="gen.absolute.dir" value="${out.dir}/gen"/>
+
+ <!-- tools location -->
+ <property name="sdk.dir" location="${ANDROID_SDK_ROOT}"/>
+ <property name="android.sdk.tools.dir" location="${ANDROID_SDK_TOOLS}" />
+ <property name="aapt" location="${android.sdk.tools.dir}/aapt" />
+ <property name="project.target.android.jar" location="${ANDROID_SDK_JAR}" />
+
+ <!-- jar file from where the tasks are loaded -->
+ <path id="android.antlibs">
+ <pathelement path="${sdk.dir}/tools/lib/ant-tasks.jar" />
+ </path>
+
+ <!-- Custom tasks -->
+ <taskdef resource="anttasks.properties" classpathref="android.antlibs" />
+
+ <!--
+ Include additional resource folders in the apk, e.g. content/.../res. We
+ list the res folders in project.library.res.folder.path and the
+ corresponding java packages in project.library.packages, which must be
+ semicolon-delimited while ADDITIONAL_RES_PACKAGES is space-delimited, hence
+ the replacestring filterchain task.
+ -->
+ <path id="project.library.res.folder.path">
+ <filelist files="${ADDITIONAL_RES_DIRS}"/>
+ </path>
+ <path id="project.library.bin.r.file.path">
+ <filelist files="${ADDITIONAL_R_TEXT_FILES}"/>
+ </path>
+
+ <loadresource property="project.library.packages">
+ <propertyresource name="ADDITIONAL_RES_PACKAGES"/>
+ <filterchain>
+ <replacestring from=" " to=";"/>
+ </filterchain>
+ </loadresource>
+ <!-- Set to empty if not set by the loadresource above -->
+ <property name="project.library.packages" value=""/>
+
+ <property name="resource.absolute.dir" value="${RESOURCE_DIR}"/>
+
+ <property name="manifest.file" value="${ANDROID_MANIFEST}" />
+ <property name="manifest.abs.file" location="${manifest.file}" />
+
+ <!-- Intermediate files -->
+ <property name="resource.package.file.name" value="${APK_NAME}.ap_" />
+
+ <property name="aapt.ignore.assets" value="" />
+
+ <!-- Code Generation: compile resources (aapt -> R.java), aidl -->
+ <target name="-code-gen">
+ <mkdir dir="${out.absolute.dir}" />
+ <mkdir dir="${out.res.absolute.dir}" />
+ <mkdir dir="${gen.absolute.dir}" />
+
+ <aapt executable="${aapt}"
+ command="package"
+ verbose="${verbose}"
+ manifest="${manifest.abs.file}"
+ androidjar="${project.target.android.jar}"
+ rfolder="${gen.absolute.dir}"
+ nonConstantId="false"
+ libraryResFolderPathRefid="project.library.res.folder.path"
+ libraryPackagesRefid="project.library.packages"
+ libraryRFileRefid="project.library.bin.r.file.path"
+ ignoreAssets="${aapt.ignore.assets}"
+ binFolder="${out.absolute.dir}"
+ proguardFile="${out.absolute.dir}/proguard.txt">
+ <res path="${out.res.absolute.dir}" />
+ <res path="${resource.absolute.dir}" />
+ </aapt>
+
+ <touch file="${STAMP}" />
+ </target>
+</project>
« no previous file with comments | « no previous file | build/android/ant/apk-package-resources.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698