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

Side by Side Diff: trunk/src/build/android/pack_arm_relocations.gypi

Issue 370633002: Revert 281286 "Add gyp machinery to build with packed ARM relati..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « trunk/src/build/android/gyp/pack_arm_relocations.py ('k') | trunk/src/build/common.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 # Copyright 2014 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file.
4
5 # This file is meant to be included into an action to provide a rule that
6 # packs ARM relative relocations in native libraries.
7 #
8 # To use this, create a gyp target with the following form:
9 # {
10 # 'action_name': 'pack_arm_relocations',
11 # 'actions': [
12 # 'variables': {
13 # 'enable_packing': 'pack relocations if 1, plain file copy if 0'
14 # 'exclude_packing_list': 'names of libraries explicitly not packed',
15 # 'ordered_libraries_file': 'file generated by write_ordered_libraries'
16 # 'input_paths': 'files to be added to the list of inputs'
17 # 'stamp': 'file to touch when the action is complete'
18 # 'stripped_libraries_dir': 'directory holding stripped libraries',
19 # 'packed_libraries_dir': 'directory holding packed libraries',
20 # 'includes': [ '../../build/android/pack_arm_relocations.gypi' ],
21 # ],
22 # },
23 #
24
25 {
26 'variables': {
27 'input_paths': [],
28 },
29 'inputs': [
30 '<(DEPTH)/build/android/gyp/util/build_utils.py',
31 '<(DEPTH)/build/android/gyp/pack_arm_relocations.py',
32 '<(ordered_libraries_file)',
33 '>@(input_paths)',
34 ],
35 'outputs': [
36 '<(stamp)',
37 ],
38 'conditions': [
39 ['enable_packing == 1', {
40 'message': 'Packing ARM relative relocations for <(_target_name)',
41 'dependencies': [
42 '<(DEPTH)/tools/relocation_packer/relocation_packer.gyp:relocation_packe r#host',
43 ],
44 'inputs': [
45 '<(PRODUCT_DIR)/relocation_packer',
46 ],
47 'action': [
48 'python', '<(DEPTH)/build/android/gyp/pack_arm_relocations.py',
49 '--enable-packing=1',
50 '--exclude-packing-list=<@(exclude_packing_list)',
51 '--android-pack-relocations=<(PRODUCT_DIR)/relocation_packer',
52 '--android-objcopy=<(android_objcopy)',
53 '--stripped-libraries-dir=<(stripped_libraries_dir)',
54 '--packed-libraries-dir=<(packed_libraries_dir)',
55 '--libraries-file=<(ordered_libraries_file)',
56 '--stamp=<(stamp)',
57 ],
58 }, {
59 'message': 'Copying libraries (no relocation packing) for <(_target_name)' ,
60 'action': [
61 'python', '<(DEPTH)/build/android/gyp/pack_arm_relocations.py',
62 '--enable-packing=0',
63 '--stripped-libraries-dir=<(stripped_libraries_dir)',
64 '--packed-libraries-dir=<(packed_libraries_dir)',
65 '--libraries-file=<(ordered_libraries_file)',
66 '--stamp=<(stamp)',
67 ],
68 }],
69 ['component == "shared_library"', {
70 # Add a fake output to force the build to always re-run this step. This
71 # is required because the real inputs are not known at gyp-time and
72 # changing base.so may not trigger changes to dependent libraries.
73 'outputs': [ '<(stamp).fake' ]
74 }],
75 ],
76 }
OLDNEW
« no previous file with comments | « trunk/src/build/android/gyp/pack_arm_relocations.py ('k') | trunk/src/build/common.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698