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

Unified Diff: build/android/insert_chromium_version.gypi

Issue 599093005: [Android] Insert chromium version string into native libraries. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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/gyp/insert_chromium_version.py ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: build/android/insert_chromium_version.gypi
diff --git a/build/android/strip_native_libraries.gypi b/build/android/insert_chromium_version.gypi
similarity index 60%
copy from build/android/strip_native_libraries.gypi
copy to build/android/insert_chromium_version.gypi
index bdffcfd04941a385518446462499b586f63b30b7..158a2279177bb220341b2d5b618d185a3dc08662 100644
--- a/build/android/strip_native_libraries.gypi
+++ b/build/android/insert_chromium_version.gypi
@@ -1,39 +1,47 @@
-# Copyright 2013 The Chromium Authors. All rights reserved.
+# Copyright 2014 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
-# This file is meant to be included into an action to provide a rule that strips
-# native libraries.
+# This file is meant to be included into an action to provide a rule that
+# inserts a chromium version string into native libraries.
#
# To use this, create a gyp target with the following form:
# {
-# 'action_name': 'strip_native_libraries',
+# 'action_name': 'insert_chromium_version',
# 'actions': [
# 'variables': {
# 'ordered_libraries_file': 'file generated by write_ordered_libraries'
+# 'libraries_source_dir': 'the directory contains native libraries'
# 'input_paths': 'files to be added to the list of inputs'
# 'stamp': 'file to touch when the action is complete'
-# 'stripped_libraries_dir': 'directory to store stripped libraries',
-# },
-# 'includes': [ '../../build/android/strip_native_libraries.gypi' ],
+# 'version_string': 'chromium version string to be inserted'
+# 'includes': [ '../../build/android/insert_chromium_version.gypi' ],
# ],
# },
#
{
- 'message': 'Stripping libraries for <(_target_name)',
+ 'message': 'Inserting chromium version string into native libraries',
'variables': {
'input_paths': [],
},
'inputs': [
'<(DEPTH)/build/android/gyp/util/build_utils.py',
- '<(DEPTH)/build/android/gyp/strip_library_for_device.py',
+ '<(DEPTH)/build/android/gyp/insert_chromium_version.py',
'<(ordered_libraries_file)',
'>@(input_paths)',
],
'outputs': [
'<(stamp)',
],
+ 'action': [
+ 'python', '<(DEPTH)/build/android/gyp/insert_chromium_version.py',
+ '--android-objcopy=<(android_objcopy)',
+ '--libraries-source-dir=<(libraries_source_dir)',
+ '--libraries=@FileArg(<(ordered_libraries_file):libraries)',
+ '--version-string=<(version_string)',
+ '--stamp=<(stamp)',
+ ],
'conditions': [
['component == "shared_library"', {
# Add a fake output to force the build to always re-run this step. This
@@ -42,13 +50,4 @@
'outputs': [ '<(stamp).fake' ]
}],
],
- 'action': [
- 'python', '<(DEPTH)/build/android/gyp/strip_library_for_device.py',
- '--android-strip=<(android_strip)',
- '--android-strip-arg=--strip-unneeded',
- '--stripped-libraries-dir=<(stripped_libraries_dir)',
- '--libraries-dir=<(SHARED_LIB_DIR),<(PRODUCT_DIR)',
- '--libraries=@FileArg(<(ordered_libraries_file):libraries)',
- '--stamp=<(stamp)',
- ],
}
« no previous file with comments | « build/android/gyp/insert_chromium_version.py ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698