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 gypi_values = exec_script("//build/gypi_to_gn.py", | 8 if (current_toolchain == host_toolchain) { |
9 [ rebase_path("relocation_packer.gyp") ], | 9 gypi_values = exec_script("//build/gypi_to_gn.py", |
10 "scope", | 10 [ rebase_path("relocation_packer.gyp") ], |
11 [ "relocation_packer.gyp" ]) | 11 "scope", |
| 12 [ "relocation_packer.gyp" ]) |
12 | 13 |
13 if (current_toolchain == host_toolchain) { | |
14 # 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 |
15 source_set("android_lib_relocation_packer") { | 15 source_set("android_lib_relocation_packer") { |
16 deps = [ | 16 deps = [ |
17 "//third_party/elfutils:libelf", | 17 "//third_party/elfutils:libelf", |
18 ] | 18 ] |
19 configs -= [ "//build/config/compiler:chromium_code" ] | 19 configs -= [ "//build/config/compiler:chromium_code" ] |
20 configs += [ "//build/config/compiler:no_chromium_code" ] | 20 configs += [ "//build/config/compiler:no_chromium_code" ] |
21 sources = gypi_values.relocation_packer_sources | 21 sources = gypi_values.relocation_packer_sources |
22 } | 22 } |
23 | 23 |
(...skipping 17 matching lines...) Expand all Loading... |
41 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation
_packer_unittests | 41 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation
_packer_unittests |
42 test("android_relocation_packer_unittests") { | 42 test("android_relocation_packer_unittests") { |
43 deps = [ | 43 deps = [ |
44 ":android_lib_relocation_packer", | 44 ":android_lib_relocation_packer", |
45 ":copy_android_relocation_packer_test_data", | 45 ":copy_android_relocation_packer_test_data", |
46 "//testing/gtest", | 46 "//testing/gtest", |
47 ] | 47 ] |
48 sources = gypi_values.relocation_packer_test_sources | 48 sources = gypi_values.relocation_packer_test_sources |
49 } | 49 } |
50 } | 50 } |
| 51 |
| 52 if (is_android) { |
| 53 import("//build/config/android/rules.gni") |
| 54 |
| 55 wrapper_script("stack_wrapper") { |
| 56 target = "//third_party/android_platform/development/scripts/stack" |
| 57 } |
| 58 } |
OLD | NEW |