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

Unified Diff: build/java_apk.gypi

Issue 11363131: Specify jar name for apks in java_apk.gypi (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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/sdk-targets.xml ('k') | chrome/chrome_android.gypi » ('j') | 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 096d8a92e85c8b75e4fa2e7795a58af800cdeb2f..edd87a3c78d84fee94bf895130ff9aeebe0cd260 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -67,10 +67,19 @@
'native_libs_paths': [],
'manifest_package_name%': 'unknown.package.name',
'resource_dir%':'',
+ 'jar_name%': 'chromium_apk_<(package_name).jar',
},
'sources': [
'<@(native_libs_paths)'
],
+ # Pass the jar path to the apk's "fake" jar target. This would be better as
+ # direct_dependent_settings, but a variable set by a direct_dependent_settings
+ # cannot be lifted in a dependent to all_dependent_settings.
+ 'all_dependent_settings': {
+ 'variables': {
+ 'apk_output_jar_path': '<(PRODUCT_DIR)/lib.java/<(jar_name)',
+ },
+ },
'rules': [
{
'rule_name': 'copy_and_strip_native_libraries',
@@ -134,6 +143,7 @@
'-DADDITIONAL_SRC_DIRS=>(additional_src_dirs)',
'-DGENERATED_SRC_DIRS=>(generated_src_dirs)',
'-DINPUT_JARS_PATHS=>(input_jars_paths)',
+ '-DJAR_NAME=<(jar_name)',
'-DPACKAGE_NAME=<(package_name)',
'-DRESOURCE_DIR=<(resource_dir)',
'-DAPP_MANIFEST_VERSION_NAME=<(app_manifest_version_name)',
« no previous file with comments | « build/android/ant/sdk-targets.xml ('k') | chrome/chrome_android.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698