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 import("config.gni") | 5 import("config.gni") |
6 import("//testing/test.gni") | 6 import("//testing/test.gni") |
7 | 7 |
8 assert(relocation_packing_supported) | 8 assert(relocation_packing_supported) |
9 | 9 |
10 if (target_cpu == "arm") { | 10 if (target_cpu == "arm") { |
(...skipping 10 matching lines...) Expand all Loading... |
21 "//third_party/elfutils:libelf", | 21 "//third_party/elfutils:libelf", |
22 ] | 22 ] |
23 configs -= [ "//build/config/compiler:chromium_code" ] | 23 configs -= [ "//build/config/compiler:chromium_code" ] |
24 configs += [ "//build/config/compiler:no_chromium_code" ] | 24 configs += [ "//build/config/compiler:no_chromium_code" ] |
25 sources = [ | 25 sources = [ |
26 "src/debug.cc", | 26 "src/debug.cc", |
27 "src/delta_encoder.cc", | 27 "src/delta_encoder.cc", |
28 "src/elf_file.cc", | 28 "src/elf_file.cc", |
29 "src/leb128.cc", | 29 "src/leb128.cc", |
30 "src/packer.cc", | 30 "src/packer.cc", |
| 31 "src/run_length_encoder.cc", |
31 "src/sleb128.cc", | 32 "src/sleb128.cc", |
32 "src/run_length_encoder.cc", | |
33 ] | 33 ] |
34 } | 34 } |
35 | 35 |
36 # GYP: //tools/relocation_packer/relocation_packer.gyp:relocation_packer | 36 # GYP: //tools/relocation_packer/relocation_packer.gyp:relocation_packer |
37 executable("relocation_packer") { | 37 executable("relocation_packer") { |
38 defines = [ target_define ] | 38 defines = [ target_define ] |
39 deps = [ | 39 deps = [ |
40 ":lib_relocation_packer", | 40 ":lib_relocation_packer", |
41 "//third_party/elfutils:libelf", | 41 "//third_party/elfutils:libelf", |
42 ] | 42 ] |
43 sources = [ | 43 sources = [ |
44 "src/main.cc", | 44 "src/main.cc", |
45 ] | 45 ] |
46 } | 46 } |
47 | 47 |
48 # GYP: //tools/relocation_packer/relocation_packer.gyp:relocation_packer_unitt
ests | 48 # GYP: //tools/relocation_packer/relocation_packer.gyp:relocation_packer_unitt
ests |
49 test("relocation_packer_unittests") { | 49 test("relocation_packer_unittests") { |
50 sources = [ | 50 sources = [ |
51 "src/debug_unittest.cc", | 51 "src/debug_unittest.cc", |
52 "src/delta_encoder_unittest.cc", | 52 "src/delta_encoder_unittest.cc", |
53 "src/elf_file_unittest.cc", | 53 "src/elf_file_unittest.cc", |
54 "src/leb128_unittest.cc", | 54 "src/leb128_unittest.cc", |
55 "src/packer_unittest.cc", | 55 "src/packer_unittest.cc", |
| 56 "src/run_all_unittests.cc", |
| 57 "src/run_length_encoder_unittest.cc", |
56 "src/sleb128_unittest.cc", | 58 "src/sleb128_unittest.cc", |
57 "src/run_length_encoder_unittest.cc", | |
58 "src/run_all_unittests.cc", | |
59 ] | 59 ] |
60 rebased_test_data = rebase_path("test_data", root_build_dir) | 60 rebased_test_data = rebase_path("test_data", root_build_dir) |
61 data = [ | 61 data = [ |
62 "test_data/elf_file_unittest_relocs_arm32.so", | 62 "test_data/elf_file_unittest_relocs_arm32.so", |
63 "test_data/elf_file_unittest_relocs_arm32_packed.so", | 63 "test_data/elf_file_unittest_relocs_arm32_packed.so", |
64 "test_data/elf_file_unittest_relocs_arm64.so", | 64 "test_data/elf_file_unittest_relocs_arm64.so", |
65 "test_data/elf_file_unittest_relocs_arm64_packed.so", | 65 "test_data/elf_file_unittest_relocs_arm64_packed.so", |
66 ] | 66 ] |
67 defines = [ | 67 defines = [ |
68 target_define, | 68 target_define, |
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 "--added-section=$added_section", | 139 "--added-section=$added_section", |
140 "--test-file", | 140 "--test-file", |
141 rebase_path(test_file, root_build_dir), | 141 rebase_path(test_file, root_build_dir), |
142 "--packed-output", | 142 "--packed-output", |
143 rebase_path(packed_output, root_build_dir), | 143 rebase_path(packed_output, root_build_dir), |
144 "--unpacked-output", | 144 "--unpacked-output", |
145 rebase_path(unpacked_output, root_build_dir), | 145 rebase_path(unpacked_output, root_build_dir), |
146 ] | 146 ] |
147 } | 147 } |
148 } | 148 } |
OLD | NEW |