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("config.gni") | 5 import("config.gni") |
6 | 6 |
7 gypi_values = exec_script("//build/gypi_to_gn.py", | 7 gypi_values = exec_script("//build/gypi_to_gn.py", |
8 [ rebase_path("relocation_packer.gyp") ], | 8 [ rebase_path("relocation_packer.gyp") ], |
9 "scope", | 9 "scope", |
10 [ "relocation_packer.gyp" ]) | 10 [ "relocation_packer.gyp" ]) |
11 | 11 |
12 if (current_toolchain == host_toolchain) { | 12 if (current_toolchain == host_toolchain) { |
13 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca
tion_packer | 13 # GYP: //third_party/android_platform/relocation_packer.gyp:android_lib_reloca
tion_packer |
14 source_set("android_lib_relocation_packer") { | 14 source_set("android_lib_relocation_packer") { |
15 deps = [ | 15 deps = [ |
16 "//third_party/elfutils:libelf", | 16 "//third_party/elfutils:libelf", |
17 ] | 17 ] |
18 configs -= [ "//build/config/compiler:chromium_code" ] | 18 configs -= [ "//build/config/compiler:chromium_code" ] |
19 configs += [ "//build/config/compiler:no_chromium_code" ] | 19 configs += [ "//build/config/compiler:no_chromium_code" ] |
20 sources = gypi_values.relocation_packer_sources | 20 sources = gypi_values.relocation_packer_sources |
21 } | 21 } |
22 | 22 |
23 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation
_packer | 23 # GYP: //third_party/android_platform/relocation_packer.gyp:android_relocation
_packer |
24 executable("android_relocation_packer") { | 24 executable("android_relocation_packer") { |
25 deps = [ | 25 deps = [ |
26 ":android_lib_relocation_packer", | 26 ":android_lib_relocation_packer", |
| 27 "//build/config/sanitizers:deps", |
27 "//third_party/elfutils:libelf", | 28 "//third_party/elfutils:libelf", |
28 ] | 29 ] |
29 sources = gypi_values.relocation_packer_main_source | 30 sources = gypi_values.relocation_packer_main_source |
30 } | 31 } |
31 } | 32 } |
OLD | NEW |