Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 # Copyright (c) 2014 The Native Client Authors. All rights reserved. | 1 # Copyright (c) 2014 The Native Client 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("//build/toolchain/toolchain.gni") | |
| 5 import("//native_client/src/trusted/asm.gni") | 6 import("//native_client/src/trusted/asm.gni") |
| 6 | 7 |
| 7 source_set("sel_main") { | 8 source_set("sel_main") { |
| 8 sources = [ | 9 sources = [ |
| 9 "sel_main.c", | 10 "sel_main.c", |
| 10 ] | 11 ] |
| 11 deps = [ | 12 deps = [ |
| 12 "//build/config/nacl:nacl_base", | 13 "//build/config/nacl:nacl_base", |
| 13 "//native_client/src/trusted/debug_stub:debug_stub", | 14 "//native_client/src/trusted/debug_stub:debug_stub", |
| 14 ":sel", | 15 ":sel", |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 319 script = "osx/run_mig.py" | 320 script = "osx/run_mig.py" |
| 320 sources = [ | 321 sources = [ |
| 321 mac_sdk_path + "/usr/include/mach/exc.defs", | 322 mac_sdk_path + "/usr/include/mach/exc.defs", |
| 322 ] | 323 ] |
| 323 outputs = [ | 324 outputs = [ |
| 324 "$target_gen_dir/nacl_exc.h", | 325 "$target_gen_dir/nacl_exc.h", |
| 325 "$target_gen_dir/nacl_exc_server.c", | 326 "$target_gen_dir/nacl_exc_server.c", |
| 326 ] | 327 ] |
| 327 args = rebase_path(sources, root_build_dir) + | 328 args = rebase_path(sources, root_build_dir) + |
| 328 rebase_path(outputs, root_build_dir) | 329 rebase_path(outputs, root_build_dir) |
| 330 if (!use_system_xcode) { | |
| 331 args += [ hermetic_xcode_path] | |
|
bradnelson
2016/10/13 20:58:22
spacing on the right is funny.
erikchen
2016/10/13 21:11:40
Done.
| |
| 332 } | |
| 329 } | 333 } |
| 330 } | 334 } |
| 331 | 335 |
| 332 executable("sel_ldr") { | 336 executable("sel_ldr") { |
| 333 sources = [ | 337 sources = [ |
| 334 "nacl_test_injection_main.c", | 338 "nacl_test_injection_main.c", |
| 335 ] | 339 ] |
| 336 deps = [ | 340 deps = [ |
| 337 ":sel_main", | 341 ":sel_main", |
| 338 | 342 |
| 339 # All executables must have the sanitizer deps to properly link in | 343 # All executables must have the sanitizer deps to properly link in |
| 340 # asan mode (this target will be empty in other cases). | 344 # asan mode (this target will be empty in other cases). |
| 341 "//build/config/sanitizers:deps", | 345 "//build/config/sanitizers:deps", |
| 342 | 346 |
| 343 "//build/win:default_exe_manifest", | 347 "//build/win:default_exe_manifest", |
| 344 ] | 348 ] |
| 345 if (is_linux) { | 349 if (is_linux) { |
| 346 configs -= [ "//build/config:default_libs" ] | 350 configs -= [ "//build/config:default_libs" ] |
| 347 libs = [ "rt" ] | 351 libs = [ "rt" ] |
| 348 ldflags = [ "-pie" ] | 352 ldflags = [ "-pie" ] |
| 349 } | 353 } |
| 350 if (is_linux) { | 354 if (is_linux) { |
| 351 data_deps = [ | 355 data_deps = [ |
| 352 "linux:bootstrap", | 356 "linux:bootstrap", |
| 353 ] | 357 ] |
| 354 } | 358 } |
| 355 } | 359 } |
| OLD | NEW |