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

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

Issue 1415803005: Port android_relocation_packer_unittests to GN (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 1 month 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 | « BUILD.gn ('k') | third_party/android_platform/relocation_packer.gyp » ('j') | 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("config.gni") 6 import("config.gni")
6 7
7 gypi_values = exec_script("//build/gypi_to_gn.py", 8 gypi_values = exec_script("//build/gypi_to_gn.py",
8 [ rebase_path("relocation_packer.gyp") ], 9 [ rebase_path("relocation_packer.gyp") ],
9 "scope", 10 "scope",
10 [ "relocation_packer.gyp" ]) 11 [ "relocation_packer.gyp" ])
11 12
12 if (current_toolchain == host_toolchain) { 13 if (current_toolchain == host_toolchain) {
13 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca tion_packer 14 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca tion_packer
14 source_set("android_lib_relocation_packer") { 15 source_set("android_lib_relocation_packer") {
15 deps = [ 16 deps = [
16 "//third_party/elfutils:libelf", 17 "//third_party/elfutils:libelf",
17 ] 18 ]
18 configs -= [ "//build/config/compiler:chromium_code" ] 19 configs -= [ "//build/config/compiler:chromium_code" ]
19 configs += [ "//build/config/compiler:no_chromium_code" ] 20 configs += [ "//build/config/compiler:no_chromium_code" ]
20 sources = gypi_values.relocation_packer_sources 21 sources = gypi_values.relocation_packer_sources
21 } 22 }
22 23
23 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer 24 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer
24 executable("android_relocation_packer") { 25 executable("android_relocation_packer") {
25 deps = [ 26 deps = [
26 ":android_lib_relocation_packer", 27 ":android_lib_relocation_packer",
27 "//build/config/sanitizers:deps", 28 "//build/config/sanitizers:deps",
28 "//third_party/elfutils:libelf", 29 "//third_party/elfutils:libelf",
29 ] 30 ]
30 sources = gypi_values.relocation_packer_main_source 31 sources = gypi_values.relocation_packer_main_source
31 } 32 }
33
34 copy("copy_android_relocation_packer_test_data") {
35 sources = gypi_values.relocation_packer_test_data_sources
36 outputs = [
37 "$root_out_dir/{{source_file_part}}",
38 ]
39 }
40
41 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation _packer_unittests
42 test("android_relocation_packer_unittests") {
43 deps = [
44 ":android_lib_relocation_packer",
45 ":copy_android_relocation_packer_test_data",
46 "//testing/gtest",
47 ]
48 sources = gypi_values.relocation_packer_test_sources
49 }
32 } 50 }
OLDNEW
« no previous file with comments | « BUILD.gn ('k') | third_party/android_platform/relocation_packer.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698