OLD | NEW |
---|---|
(Empty) | |
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 | |
3 # found in the LICENSE file. | |
4 | |
5 import("config.gni") | |
6 #import("//testing/test.gni") | |
7 | |
8 if (current_toolchain == host_toolchain) { | |
9 # GYP: //third_party/android_platform/relocation_packer.gyp:lib_relocation_pac ker | |
10 source_set("lib_relocation_packer") { | |
11 deps = [ | |
12 "//third_party/elfutils:libelf", | |
13 ] | |
14 configs -= [ "//build/config/compiler:chromium_code" ] | |
15 configs += [ "//build/config/compiler:no_chromium_code" ] | |
16 sources = [ | |
17 "relocation_packer/src/debug.cc", | |
18 "relocation_packer/src/delta_encoder.cc", | |
19 "relocation_packer/src/elf_file.cc", | |
20 "relocation_packer/src/leb128.cc", | |
21 "relocation_packer/src/packer.cc", | |
22 "relocation_packer/src/sleb128.cc", | |
23 ] | |
24 } | |
25 | |
26 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer | |
27 executable("android_relocation_packer") { | |
28 deps = [ | |
29 ":lib_relocation_packer", | |
30 "//third_party/elfutils:libelf", | |
31 ] | |
32 sources = [ | |
33 "relocation_packer/src/main.cc", | |
34 ] | |
35 } | |
36 | |
37 # Note: unit test target suppressed due to current absence of gn target for: | |
rmcilroy
2015/03/20 17:38:26
Is there a bug for this you can point to?
simonb (inactive)
2015/03/20 18:33:24
None that I'm aware of. AFAIK it's just Not Done
| |
38 # //testing:gtest | |
39 # | |
40 # # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocat ion_packer_unittests | |
41 # test("android_relocation_packer_unittests") { | |
42 # sources = [ | |
43 # "relocation_packer/src/debug.cc", | |
44 # "relocation_packer/src/delta_encoder.cc", | |
45 # "relocation_packer/src/elf_file.cc", | |
46 # "relocation_packer/src/leb128.cc", | |
47 # "relocation_packer/src/packer.cc", | |
48 # "relocation_packer/src/run_all_unittests.cc", | |
49 # "relocation_packer/src/sleb128.cc", | |
50 # ] | |
51 # data = [ | |
52 # "relocation_packer/test_data/elf_file_unittest_relocs_arm32.so", | |
53 # "relocation_packer/test_data/elf_file_unittest_relocs_arm32_packed.so", | |
54 # "relocation_packer/test_data/elf_file_unittest_relocs_arm64.so", | |
55 # "relocation_packer/test_data/elf_file_unittest_relocs_arm64_packed.so", | |
56 # ] | |
57 # include_dirs = [ "//" ] | |
58 # deps = [ | |
59 # ":lib_relocation_packer", | |
60 # ":android_relocation_packer_test_data", | |
61 # "//testing:gtest", | |
62 # ] | |
63 # } | |
64 } | |
OLD | NEW |