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

Side by Side Diff: build/android/strip_native_libraries.gypi

Issue 13852037: [Android] Add native library to strip inputs (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 8 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/android/native_app_dependencies.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 # This file is meant to be included into an action to provide a rule that strips 5 # This file is meant to be included into an action to provide a rule that strips
6 # native libraries. 6 # native libraries.
7 # 7 #
8 # To use this, create a gyp target with the following form: 8 # To use this, create a gyp target with the following form:
9 # { 9 # {
10 # 'actions': [ 10 # 'actions': [
11 # 'variables': { 11 # 'variables': {
12 # 'ordered_libraries_file': 'file generated by write_ordered_libraries' 12 # 'ordered_libraries_file': 'file generated by write_ordered_libraries'
13 # 'input_paths': 'files to be added to the list of inputs'
13 # 'strip_stamp': 'file to touch when the action is complete' 14 # 'strip_stamp': 'file to touch when the action is complete'
14 # 'stripped_libraries_dir': 'directory to store stripped libraries', 15 # 'stripped_libraries_dir': 'directory to store stripped libraries',
15 # }, 16 # },
16 # 'includes': [ '../../build/android/strip_native_libraries.gypi' ], 17 # 'includes': [ '../../build/android/strip_native_libraries.gypi' ],
17 # ], 18 # ],
18 # }, 19 # },
19 # 20 #
20 21
21 { 22 {
22 'action_name': 'strip_native_libraries', 23 'action_name': 'strip_native_libraries',
23 'message': 'Stripping libraries for <(_target_name)', 24 'message': 'Stripping libraries for <(_target_name)',
25 'variables': {
26 'input_paths': [],
27 },
24 'inputs': [ 28 'inputs': [
25 '<(DEPTH)/build/android/gyp/util/build_utils.py', 29 '<(DEPTH)/build/android/gyp/util/build_utils.py',
26 '<(DEPTH)/build/android/gyp/strip_library_for_device.py', 30 '<(DEPTH)/build/android/gyp/strip_library_for_device.py',
27 '<(ordered_libraries_file)' 31 '<(ordered_libraries_file)',
32 '>@(input_paths)',
28 ], 33 ],
29 'outputs': [ 34 'outputs': [
30 '<(strip_stamp)', 35 '<(strip_stamp)',
31 # Add a fake output to force the build to always re-run this step. This 36 # Add a fake output to force the build to always re-run this step. This
32 # is required because the real inputs are not known at gyp-time and 37 # is required because the real inputs are not known at gyp-time and
33 # changing base.so may not trigger changes to dependent libraries. 38 # changing base.so may not trigger changes to dependent libraries.
34 '<(strip_stamp).fake', 39 '<(strip_stamp).fake',
35 ], 40 ],
36 'action': [ 41 'action': [
37 'python', '<(DEPTH)/build/android/gyp/strip_library_for_device.py', 42 'python', '<(DEPTH)/build/android/gyp/strip_library_for_device.py',
38 '--android-strip=<(android_strip)', 43 '--android-strip=<(android_strip)',
39 '--android-strip-arg=--strip-unneeded', 44 '--android-strip-arg=--strip-unneeded',
40 '--stripped-libraries-dir=<(stripped_libraries_dir)', 45 '--stripped-libraries-dir=<(stripped_libraries_dir)',
41 '--libraries-dir=<(SHARED_LIB_DIR)', 46 '--libraries-dir=<(SHARED_LIB_DIR)',
42 '--libraries-file=<(ordered_libraries_file)', 47 '--libraries-file=<(ordered_libraries_file)',
43 '--stamp=<(strip_stamp)', 48 '--stamp=<(strip_stamp)',
44 ], 49 ],
45 } 50 }
OLDNEW
« no previous file with comments | « build/android/native_app_dependencies.gypi ('k') | build/java_apk.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698