OLD | NEW |
1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 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("//testing/test.gni") | 5 import("//testing/test.gni") |
6 import("config.gni") | 6 import("config.gni") |
7 | 7 |
8 if (current_toolchain == host_toolchain) { | 8 if (current_toolchain == host_toolchain) { |
9 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca
tion_packer | |
10 source_set("android_lib_relocation_packer") { | 9 source_set("android_lib_relocation_packer") { |
11 deps = [ | 10 deps = [ |
12 "//third_party/elfutils:libelf", | 11 "//third_party/elfutils:libelf", |
13 ] | 12 ] |
14 configs -= [ "//build/config/compiler:chromium_code" ] | 13 configs -= [ "//build/config/compiler:chromium_code" ] |
15 configs += [ "//build/config/compiler:no_chromium_code" ] | 14 configs += [ "//build/config/compiler:no_chromium_code" ] |
16 sources = [ | 15 sources = [ |
17 "bionic/tools/relocation_packer/src/debug.cc", | 16 "bionic/tools/relocation_packer/src/debug.cc", |
18 "bionic/tools/relocation_packer/src/debug.h", | 17 "bionic/tools/relocation_packer/src/debug.h", |
19 "bionic/tools/relocation_packer/src/delta_encoder.cc", | 18 "bionic/tools/relocation_packer/src/delta_encoder.cc", |
20 "bionic/tools/relocation_packer/src/delta_encoder.h", | 19 "bionic/tools/relocation_packer/src/delta_encoder.h", |
21 "bionic/tools/relocation_packer/src/elf_file.cc", | 20 "bionic/tools/relocation_packer/src/elf_file.cc", |
22 "bionic/tools/relocation_packer/src/elf_file.h", | 21 "bionic/tools/relocation_packer/src/elf_file.h", |
23 "bionic/tools/relocation_packer/src/elf_traits.h", | 22 "bionic/tools/relocation_packer/src/elf_traits.h", |
24 "bionic/tools/relocation_packer/src/packer.cc", | 23 "bionic/tools/relocation_packer/src/packer.cc", |
25 "bionic/tools/relocation_packer/src/packer.h", | 24 "bionic/tools/relocation_packer/src/packer.h", |
26 "bionic/tools/relocation_packer/src/sleb128.cc", | 25 "bionic/tools/relocation_packer/src/sleb128.cc", |
27 "bionic/tools/relocation_packer/src/sleb128.h", | 26 "bionic/tools/relocation_packer/src/sleb128.h", |
28 ] | 27 ] |
29 } | 28 } |
30 | 29 |
31 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation
_packer | |
32 executable("android_relocation_packer") { | 30 executable("android_relocation_packer") { |
33 deps = [ | 31 deps = [ |
34 ":android_lib_relocation_packer", | 32 ":android_lib_relocation_packer", |
35 "//build/config/sanitizers:deps", | 33 "//build/config/sanitizers:deps", |
36 "//third_party/elfutils:libelf", | 34 "//third_party/elfutils:libelf", |
37 ] | 35 ] |
38 sources = [ | 36 sources = [ |
39 "bionic/tools/relocation_packer/src/main.cc", | 37 "bionic/tools/relocation_packer/src/main.cc", |
40 "bionic/tools/relocation_packer/src/nativehelper/ScopedFd.h", | 38 "bionic/tools/relocation_packer/src/nativehelper/ScopedFd.h", |
41 ] | 39 ] |
(...skipping 10 matching lines...) Expand all Loading... |
52 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_mips32.
so", | 50 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_mips32.
so", |
53 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_mips32_
packed.so", | 51 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_mips32_
packed.so", |
54 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_x64.so"
, | 52 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_x64.so"
, |
55 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_x64_pac
ked.so", | 53 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_x64_pac
ked.so", |
56 ] | 54 ] |
57 outputs = [ | 55 outputs = [ |
58 "$root_out_dir/{{source_file_part}}", | 56 "$root_out_dir/{{source_file_part}}", |
59 ] | 57 ] |
60 } | 58 } |
61 | 59 |
62 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation
_packer_unittests | |
63 test("android_relocation_packer_unittests") { | 60 test("android_relocation_packer_unittests") { |
64 deps = [ | 61 deps = [ |
65 ":android_lib_relocation_packer", | 62 ":android_lib_relocation_packer", |
66 ":copy_android_relocation_packer_test_data", | 63 ":copy_android_relocation_packer_test_data", |
67 "//testing/gtest", | 64 "//testing/gtest", |
68 ] | 65 ] |
69 sources = [ | 66 sources = [ |
70 "bionic/tools/relocation_packer/src/debug_unittest.cc", | 67 "bionic/tools/relocation_packer/src/debug_unittest.cc", |
71 "bionic/tools/relocation_packer/src/delta_encoder_unittest.cc", | 68 "bionic/tools/relocation_packer/src/delta_encoder_unittest.cc", |
72 "bionic/tools/relocation_packer/src/elf_file_unittest.cc", | 69 "bionic/tools/relocation_packer/src/elf_file_unittest.cc", |
73 "bionic/tools/relocation_packer/src/packer_unittest.cc", | 70 "bionic/tools/relocation_packer/src/packer_unittest.cc", |
74 "bionic/tools/relocation_packer/src/run_all_unittests.cc", | 71 "bionic/tools/relocation_packer/src/run_all_unittests.cc", |
75 "bionic/tools/relocation_packer/src/sleb128_unittest.cc", | 72 "bionic/tools/relocation_packer/src/sleb128_unittest.cc", |
76 ] | 73 ] |
77 } | 74 } |
78 } | 75 } |
79 | 76 |
80 if (is_android) { | 77 if (is_android) { |
81 import("//build/config/android/rules.gni") | 78 import("//build/config/android/rules.gni") |
82 | 79 |
83 wrapper_script("stack_wrapper") { | 80 wrapper_script("stack_wrapper") { |
84 target = "//third_party/android_platform/development/scripts/stack" | 81 target = "//third_party/android_platform/development/scripts/stack" |
85 } | 82 } |
86 } | 83 } |
OLD | NEW |