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

Unified Diff: build/java_apk.gypi

Issue 334783006: Allow the mojo shell to run on android. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 6 years, 5 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 | « build/android/write_ordered_libraries.gypi ('k') | mojo/mojo.gyp » ('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 c8609461b6214538b2d7fd272c506f7631b24934..96647268fc080b40a8094721cdaa02f2fc427a14 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -29,6 +29,8 @@
# each directory in additional_res_dirs.
# additional_src_dirs - Additional directories with .java files to be compiled
# and included in the output of this target.
+# additional_bundled_libs - Additional libraries what will be stripped and
+# bundled in the apk.
# asset_location - The directory where assets are located.
# generated_src_dirs - Same as additional_src_dirs except used for .java files
# that are generated at build time. This should be set automatically by a
@@ -75,6 +77,7 @@
'additional_R_text_files': [],
'dependencies_res_zip_paths': [],
'additional_res_packages': [],
+ 'additional_bundled_libs%': [],
'is_test_apk%': 0,
'resource_input_paths': [],
'intermediate_dir': '<(PRODUCT_DIR)/<(_target_name)',
@@ -82,6 +85,7 @@
'codegen_stamp': '<(intermediate_dir)/codegen.stamp',
'package_input_paths': [],
'ordered_libraries_file': '<(intermediate_dir)/native_libraries.json',
+ 'additional_ordered_libraries_file': '<(intermediate_dir)/additional_native_libraries.json',
'native_libraries_template': '<(DEPTH)/base/android/java/templates/NativeLibraries.template',
'native_libraries_java_dir': '<(intermediate_dir)/native_libraries_java/',
'native_libraries_java_file': '<(native_libraries_java_dir)/NativeLibraries.java',
@@ -100,6 +104,7 @@
'pack_arm_relocations_stamp': '<(intermediate_dir)/pack_arm_relocations.stamp',
'strip_stamp': '<(intermediate_dir)/strip.stamp',
'stripped_libraries_dir': '<(SHARED_INTERMEDIATE_DIR)/stripped_libraries',
+ 'strip_additional_stamp': '<(intermediate_dir)/strip_additional.stamp',
'classes_dir': '<(intermediate_dir)/classes/2',
'javac_includes': [],
'jar_excluded_classes': [],
@@ -374,6 +379,29 @@
],
'includes': ['../build/android/pack_arm_relocations.gypi'],
},
+ {
+ 'variables': {
+ 'input_libraries': [
+ '<@(additional_bundled_libs)',
+ ],
+ 'ordered_libraries_file': '<(additional_ordered_libraries_file)',
+ 'subtarget': '_additional_libraries',
+ },
+ 'includes': ['../build/android/write_ordered_libraries.gypi'],
+ },
+ {
+ 'action_name': 'strip_additional_libraries',
+ 'variables': {
+ 'ordered_libraries_file': '<(additional_ordered_libraries_file)',
+ 'stripped_libraries_dir%': '<(stripped_libraries_dir)',
+ 'input_paths': [
+ '<@(additional_bundled_libs)',
+ '<(strip_stamp)',
+ ],
+ 'stamp': '<(strip_additional_stamp)'
+ },
+ 'includes': ['../build/android/strip_native_libraries.gypi'],
+ },
],
'conditions': [
['gyp_managed_install == 1', {
@@ -425,6 +453,7 @@
'inputs': [
'<(ordered_libraries_file)',
'<(strip_stamp)',
+ '<(strip_additional_stamp)',
],
'input_apk_path': '<(unsigned_apk_path)',
'output_apk_path': '<(unsigned_standalone_apk_path)',
@@ -439,7 +468,10 @@
# gyp_managed_install != 1
'variables': {
'libraries_source_dir': '<(apk_package_native_libs_dir)/<(android_app_abi)',
- 'package_input_paths': [ '<(strip_stamp)' ],
+ 'package_input_paths': [
+ '<(strip_stamp)',
+ '<(strip_additional_stamp)',
+ ],
},
}],
],
« no previous file with comments | « build/android/write_ordered_libraries.gypi ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698