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

Unified Diff: build/java_apk.gypi

Issue 11411049: Enable Android APKs to be build with R.java in a custom package. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 1 month 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 | « build/android/ant/empty/res/.keep ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/java_apk.gypi
diff --git a/build/java_apk.gypi b/build/java_apk.gypi
index 7aa0738ac6b9e5b2b21ea5c5a70358cf30342b5a..5cf9857b5af2ff51ce125b9158e2a70db0eabe41 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -57,6 +57,8 @@
# unstripped copy will be added to <(android_product_out) to enable native
# debugging.
# resource_dir - The directory for resources.
+# R_package - A custom Java package to generate the resource file R.java in.
+# By default, the package given in AndroidManifest.xml will be used.
{
'variables': {
@@ -70,9 +72,9 @@
'proguard_enabled%': 'false',
'proguard_flags%': '',
'native_libs_paths': [],
- 'manifest_package_name%': 'unknown.package.name',
- 'resource_dir%':'',
'jar_name%': 'chromium_apk_<(package_name).jar',
+ 'resource_dir%':'',
+ 'R_package%':'',
'additional_res_dirs': [],
'additional_res_packages': [],
'is_test_apk%': 0,
@@ -177,4 +179,14 @@
]
},
],
+ 'conditions': [
+ ['R_package != ""', {
+ 'variables': {
+ # We generate R.java in package R_package (in addition to the package
+ # listed in the AndroidManifest.xml, which is unavoidable).
+ 'additional_res_dirs': ['<(DEPTH)/build/android/ant/empty/res'],
+ 'additional_res_packages': ['<(R_package)'],
+ },
+ }],
+ ],
}
« no previous file with comments | « build/android/ant/empty/res/.keep ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698