OLD | NEW |
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': { |
| 7 'target_define%': 'TARGET_UNSUPPORTED', |
| 8 'conditions': [ |
| 9 [ 'target_arch == "arm"', { |
| 10 'target_define': 'TARGET_ARM', |
| 11 }], |
| 12 [ 'target_arch == "arm64"', { |
| 13 'target_define': 'TARGET_ARM64', |
| 14 }], |
| 15 ], |
| 16 }, |
6 'targets': [ | 17 'targets': [ |
7 { | 18 { |
8 'target_name': 'lib_relocation_packer', | 19 'target_name': 'lib_relocation_packer', |
9 'toolsets': ['host'], | 20 'toolsets': ['host'], |
10 'type': 'static_library', | 21 'type': 'static_library', |
| 22 'defines': [ |
| 23 '<(target_define)', |
| 24 ], |
11 'dependencies': [ | 25 'dependencies': [ |
12 '../../third_party/elfutils/elfutils.gyp:libelf', | 26 '../../third_party/elfutils/elfutils.gyp:libelf', |
13 ], | 27 ], |
14 'sources': [ | 28 'sources': [ |
15 'src/debug.cc', | 29 'src/debug.cc', |
16 'src/elf_file.cc', | 30 'src/elf_file.cc', |
17 'src/leb128.cc', | 31 'src/leb128.cc', |
18 'src/packer.cc', | 32 'src/packer.cc', |
19 'src/run_length_encoder.cc', | 33 'src/run_length_encoder.cc', |
20 ], | 34 ], |
21 }, | 35 }, |
22 { | 36 { |
23 'target_name': 'relocation_packer', | 37 'target_name': 'relocation_packer', |
24 'toolsets': ['host'], | 38 'toolsets': ['host'], |
25 'type': 'executable', | 39 'type': 'executable', |
| 40 'defines': [ |
| 41 '<(target_define)', |
| 42 ], |
26 'dependencies': [ | 43 'dependencies': [ |
27 '../../third_party/elfutils/elfutils.gyp:libelf', | 44 '../../third_party/elfutils/elfutils.gyp:libelf', |
28 'lib_relocation_packer', | 45 'lib_relocation_packer', |
29 ], | 46 ], |
30 'sources': [ | 47 'sources': [ |
31 'src/main.cc', | 48 'src/main.cc', |
32 ], | 49 ], |
33 }, | 50 }, |
34 { | 51 { |
35 'target_name': 'relocation_packer_unittests', | 52 'target_name': 'relocation_packer_unittests', |
36 'toolsets': ['host'], | 53 'toolsets': ['host'], |
37 'type': 'executable', | 54 'type': 'executable', |
| 55 'defines': [ |
| 56 '<(target_define)', |
| 57 ], |
38 'cflags': [ | 58 'cflags': [ |
39 '-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"', | 59 '-DINTERMEDIATE_DIR="<(INTERMEDIATE_DIR)"', |
40 ], | 60 ], |
41 'dependencies': [ | 61 'dependencies': [ |
42 '../../testing/gtest.gyp:gtest', | 62 '../../testing/gtest.gyp:gtest', |
43 'lib_relocation_packer', | 63 'lib_relocation_packer', |
44 ], | 64 ], |
45 'include_dirs': [ | 65 'include_dirs': [ |
46 '../..', | 66 '../..', |
47 ], | 67 ], |
(...skipping 10 matching lines...) Expand all Loading... |
58 'destination': '<(INTERMEDIATE_DIR)', | 78 'destination': '<(INTERMEDIATE_DIR)', |
59 'files': [ | 79 'files': [ |
60 'test_data/elf_file_unittest_relocs.so', | 80 'test_data/elf_file_unittest_relocs.so', |
61 'test_data/elf_file_unittest_relocs_packed.so', | 81 'test_data/elf_file_unittest_relocs_packed.so', |
62 ], | 82 ], |
63 }, | 83 }, |
64 ], | 84 ], |
65 }, | 85 }, |
66 ], | 86 ], |
67 } | 87 } |
OLD | NEW |