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

Unified Diff: build/java_apk.gypi

Issue 456493002: Add native libraries to gn apks (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 years, 4 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/config/android/rules.gni ('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 be5033bb4a9dc899edbc9d43c077f7c64fc4d8e2..08529fa367a17ffe038fbd48781618bb871953cd 100644
--- a/build/java_apk.gypi
+++ b/build/java_apk.gypi
@@ -257,26 +257,6 @@
'includes': ['../build/android/write_ordered_libraries.gypi'],
},
{
- 'action_name': 'native_libraries_template_data_<(_target_name)',
- 'message': 'Creating native_libraries_list.h for <(_target_name)',
- 'inputs': [
- '<(DEPTH)/build/android/gyp/util/build_utils.py',
- '<(DEPTH)/build/android/gyp/create_native_libraries_header.py',
- '<(ordered_libraries_file)',
- ],
- 'outputs': [
- '<(native_libraries_template_data_file)',
- '<(native_libraries_template_version_file)',
- ],
- 'action': [
- 'python', '<(DEPTH)/build/android/gyp/create_native_libraries_header.py',
- '--ordered-libraries=<(ordered_libraries_file)',
- '--version-name=<(native_lib_version_name)',
- '--native-library-list=<(native_libraries_template_data_file)',
- '--version-output=<(native_libraries_template_version_file)',
- ],
- },
- {
'action_name': 'native_libraries_<(_target_name)',
'variables': {
'conditions': [
@@ -324,8 +304,7 @@
'inputs': [
'<(DEPTH)/build/android/gyp/util/build_utils.py',
'<(DEPTH)/build/android/gyp/gcc_preprocess.py',
- '<(native_libraries_template_data_file)',
- '<(native_libraries_template_version_file)',
+ '<(ordered_libraries_file)',
'<(native_libraries_template)',
],
'outputs': [
@@ -333,10 +312,12 @@
],
'action': [
'python', '<(DEPTH)/build/android/gyp/gcc_preprocess.py',
- '--include-path=<(native_libraries_template_data_dir)',
+ '--include-path=',
'--output=<(native_libraries_java_file)',
'--template=<(native_libraries_template)',
'--stamp=<(native_libraries_java_stamp)',
+ '--defines', 'NATIVE_LIBRARIES_LIST=@FileArg(<(ordered_libraries_file):java_libraries_list)',
+ '--defines', 'NATIVE_LIBRARIES_VERSION_NUMBER="<(native_lib_version_name)"',
'<@(gcc_preprocess_defines)',
],
},
@@ -449,7 +430,7 @@
'action': [
'python', '<(DEPTH)/build/android/gyp/create_device_library_links.py',
'--build-device-configuration=<(build_device_config_path)',
- '--libraries-json=<(ordered_libraries_file)',
+ '--libraries=@FileArg(<(ordered_libraries_file):libraries)',
'--script-host-path=<(symlink_script_host_path)',
'--script-device-path=<(symlink_script_device_path)',
'--target-dir=<(device_library_dir)',
« no previous file with comments | « build/config/android/rules.gni ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698