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

Side by Side Diff: third_party/android_platform/BUILD.gn

Issue 1961433002: [Android] Move relocation_packer sources specification into gn. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 gypi_values = exec_script("//build/gypi_to_gn.py",
10 [ rebase_path("relocation_packer.gyp") ],
11 "scope",
12 [ "relocation_packer.gyp" ])
13
14 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca tion_packer 9 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca tion_packer
15 source_set("android_lib_relocation_packer") { 10 source_set("android_lib_relocation_packer") {
16 deps = [ 11 deps = [
17 "//third_party/elfutils:libelf", 12 "//third_party/elfutils:libelf",
18 ] 13 ]
19 configs -= [ "//build/config/compiler:chromium_code" ] 14 configs -= [ "//build/config/compiler:chromium_code" ]
20 configs += [ "//build/config/compiler:no_chromium_code" ] 15 configs += [ "//build/config/compiler:no_chromium_code" ]
21 sources = gypi_values.relocation_packer_sources 16 sources = [
17 "bionic/tools/relocation_packer/src/debug.cc",
18 "bionic/tools/relocation_packer/src/debug.h",
19 "bionic/tools/relocation_packer/src/delta_encoder.cc",
20 "bionic/tools/relocation_packer/src/delta_encoder.h",
21 "bionic/tools/relocation_packer/src/elf_file.cc",
22 "bionic/tools/relocation_packer/src/elf_file.h",
23 "bionic/tools/relocation_packer/src/elf_traits.h",
24 "bionic/tools/relocation_packer/src/packer.cc",
25 "bionic/tools/relocation_packer/src/packer.h",
26 "bionic/tools/relocation_packer/src/sleb128.cc",
27 "bionic/tools/relocation_packer/src/sleb128.h",
28 ]
22 } 29 }
23 30
24 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer 31 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer
25 executable("android_relocation_packer") { 32 executable("android_relocation_packer") {
26 deps = [ 33 deps = [
27 ":android_lib_relocation_packer", 34 ":android_lib_relocation_packer",
28 "//build/config/sanitizers:deps", 35 "//build/config/sanitizers:deps",
29 "//third_party/elfutils:libelf", 36 "//third_party/elfutils:libelf",
30 ] 37 ]
31 sources = gypi_values.relocation_packer_main_source 38 sources = [
39 "bionic/tools/relocation_packer/src/main.cc",
40 "bionic/tools/relocation_packer/src/nativehelper/ScopedFd.h",
41 ]
32 } 42 }
33 43
34 copy("copy_android_relocation_packer_test_data") { 44 copy("copy_android_relocation_packer_test_data") {
35 sources = gypi_values.relocation_packer_test_data_sources 45 sources = [
46 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32.s o",
47 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm32_p acked.so",
48 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64.s o",
49 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_arm64_p acked.so",
50 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_ia32.so ",
51 "bionic/tools/relocation_packer/test_data/elf_file_unittest_relocs_ia32_pa cked.so",
52 "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",
54 "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",
56 ]
36 outputs = [ 57 outputs = [
37 "$root_out_dir/{{source_file_part}}", 58 "$root_out_dir/{{source_file_part}}",
38 ] 59 ]
39 } 60 }
40 61
41 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer_unittests 62 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer_unittests
42 test("android_relocation_packer_unittests") { 63 test("android_relocation_packer_unittests") {
43 deps = [ 64 deps = [
44 ":android_lib_relocation_packer", 65 ":android_lib_relocation_packer",
45 ":copy_android_relocation_packer_test_data", 66 ":copy_android_relocation_packer_test_data",
46 "//testing/gtest", 67 "//testing/gtest",
47 ] 68 ]
48 sources = gypi_values.relocation_packer_test_sources 69 sources = [
70 "bionic/tools/relocation_packer/src/debug_unittest.cc",
sgurun-gerrit only 2016/05/06 17:46:32 curious, do these tests ever run on chromium side?
jbudorick 2016/05/09 15:04:08 Not currently.
71 "bionic/tools/relocation_packer/src/delta_encoder_unittest.cc",
72 "bionic/tools/relocation_packer/src/elf_file_unittest.cc",
73 "bionic/tools/relocation_packer/src/packer_unittest.cc",
74 "bionic/tools/relocation_packer/src/run_all_unittests.cc",
75 "bionic/tools/relocation_packer/src/sleb128_unittest.cc",
76 ]
49 } 77 }
50 } 78 }
51 79
52 if (is_android) { 80 if (is_android) {
53 import("//build/config/android/rules.gni") 81 import("//build/config/android/rules.gni")
54 82
55 wrapper_script("stack_wrapper") { 83 wrapper_script("stack_wrapper") {
56 target = "//third_party/android_platform/development/scripts/stack" 84 target = "//third_party/android_platform/development/scripts/stack"
57 } 85 }
58 } 86 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698