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

Side by Side Diff: tools/relocation_packer/relocation_packer.gyp

Issue 650933003: GN: make relocation packing work (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@gn-parse-error
Patch Set: Created 6 years, 2 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
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 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 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 { 5 {
6 'variables': { 6 'variables': {
7 'target_define%': 'TARGET_UNSUPPORTED', 7 'target_define%': 'TARGET_UNSUPPORTED',
8 'conditions': [ 8 'conditions': [
9 [ 'target_arch == "arm"', { 9 [ 'target_arch == "arm"', {
10 'target_define': 'TARGET_ARM', 10 'target_define': 'TARGET_ARM',
11 }], 11 }],
12 [ 'target_arch == "arm64"', { 12 [ 'target_arch == "arm64"', {
13 'target_define': 'TARGET_ARM64', 13 'target_define': 'TARGET_ARM64',
14 }], 14 }],
15 ], 15 ],
16 }, 16 },
17 'targets': [ 17 'targets': [
18 { 18 {
19 # GN: //tools/relocation_packer:lib_relocation_packer
19 'target_name': 'lib_relocation_packer', 20 'target_name': 'lib_relocation_packer',
20 'toolsets': ['host'], 21 'toolsets': ['host'],
21 'type': 'static_library', 22 'type': 'static_library',
22 'defines': [ 23 'defines': [
23 '<(target_define)', 24 '<(target_define)',
24 ], 25 ],
25 'dependencies': [ 26 'dependencies': [
26 '../../third_party/elfutils/elfutils.gyp:libelf', 27 '../../third_party/elfutils/elfutils.gyp:libelf',
27 ], 28 ],
28 'sources': [ 29 'sources': [
29 'src/debug.cc', 30 'src/debug.cc',
30 'src/delta_encoder.cc', 31 'src/delta_encoder.cc',
31 'src/elf_file.cc', 32 'src/elf_file.cc',
32 'src/leb128.cc', 33 'src/leb128.cc',
33 'src/packer.cc', 34 'src/packer.cc',
34 'src/sleb128.cc', 35 'src/sleb128.cc',
35 'src/run_length_encoder.cc', 36 'src/run_length_encoder.cc',
36 ], 37 ],
37 }, 38 },
38 { 39 {
40 # GN: //tools/relocation_packer:relocation_packer
39 'target_name': 'relocation_packer', 41 'target_name': 'relocation_packer',
40 'toolsets': ['host'], 42 'toolsets': ['host'],
41 'type': 'executable', 43 'type': 'executable',
42 'defines': [ 44 'defines': [
43 '<(target_define)', 45 '<(target_define)',
44 ], 46 ],
45 'dependencies': [ 47 'dependencies': [
46 '../../third_party/elfutils/elfutils.gyp:libelf', 48 '../../third_party/elfutils/elfutils.gyp:libelf',
47 'lib_relocation_packer', 49 'lib_relocation_packer',
48 ], 50 ],
49 'sources': [ 51 'sources': [
50 'src/main.cc', 52 'src/main.cc',
51 ], 53 ],
52 }, 54 },
53 { 55 {
56 # GN: //tools/relocation_packer:relocation_packer_unittests
54 'target_name': 'relocation_packer_unittests', 57 'target_name': 'relocation_packer_unittests',
55 'toolsets': ['host'], 58 'toolsets': ['host'],
56 'type': 'executable', 59 'type': 'executable',
57 'defines': [ 60 'defines': [
58 '<(target_define)', 61 '<(target_define)',
59 ], 62 ],
60 'cflags': [ 63 'cflags': [
61 '-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"', 64 '-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"',
62 ], 65 ],
63 'dependencies': [ 66 'dependencies': [
(...skipping 27 matching lines...) Expand all
91 }, 94 },
92 95
93 # Targets to build test data. These participate only in building test 96 # Targets to build test data. These participate only in building test
94 # data for use with elf_file_unittest.cc, and are not part of the main 97 # data for use with elf_file_unittest.cc, and are not part of the main
95 # relocation packer build. Unit test data files are checked in to the 98 # relocation packer build. Unit test data files are checked in to the
96 # source tree as 'golden' data, and are not generated 'on the fly' by 99 # source tree as 'golden' data, and are not generated 'on the fly' by
97 # the build. 100 # the build.
98 # 101 #
99 # See test_data/generate_elf_file_unittest_relocs.sh for instructions. 102 # See test_data/generate_elf_file_unittest_relocs.sh for instructions.
100 { 103 {
104 # GN: //tools/relocation_packer:relocation_packer_test_data
101 'target_name': 'relocation_packer_test_data', 105 'target_name': 'relocation_packer_test_data',
102 'toolsets': ['target'], 106 'toolsets': ['target'],
103 'type': 'shared_library', 107 'type': 'shared_library',
104 'cflags': [ 108 'cflags': [
105 '-O0', 109 '-O0',
106 '-g0', 110 '-g0',
107 ], 111 ],
108 'sources': [ 112 'sources': [
109 'test_data/elf_file_unittest_relocs.cc', 113 'test_data/elf_file_unittest_relocs.cc',
110 ], 114 ],
111 }, 115 },
112 { 116 {
117 # GN: //tools/relocation_packer:relocation_packer_unittests_test_data
113 'target_name': 'relocation_packer_unittests_test_data', 118 'target_name': 'relocation_packer_unittests_test_data',
114 'toolsets': ['target'], 119 'toolsets': ['target'],
115 'type': 'none', 120 'type': 'none',
116 'actions': [ 121 'actions': [
117 { 122 {
118 'variables': { 123 'variables': {
119 'test_file': '<(SHARED_LIB_DIR)/librelocation_packer_test_data.so', 124 'test_file': '<(SHARED_LIB_DIR)/librelocation_packer_test_data.so',
120 'conditions': [ 125 'conditions': [
121 [ 'target_arch == "arm"', { 126 [ 'target_arch == "arm"', {
122 'added_section': '.android.rel.dyn', 127 'added_section': '.android.rel.dyn',
(...skipping 24 matching lines...) Expand all
147 '--added-section=<(added_section)', 152 '--added-section=<(added_section)',
148 '--test-file=<(test_file)', 153 '--test-file=<(test_file)',
149 '--unpacked-output=<(INTERMEDIATE_DIR)/<(unpacked_output)', 154 '--unpacked-output=<(INTERMEDIATE_DIR)/<(unpacked_output)',
150 '--packed-output=<(INTERMEDIATE_DIR)/<(packed_output)', 155 '--packed-output=<(INTERMEDIATE_DIR)/<(packed_output)',
151 ], 156 ],
152 }, 157 },
153 ], 158 ],
154 }, 159 },
155 ], 160 ],
156 } 161 }
OLDNEW
« tools/relocation_packer/BUILD.gn ('K') | « tools/relocation_packer/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698