| OLD | NEW |
| (Empty) |
| 1 # Copyright 2016 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("//build/config/features.gni") | |
| 6 | |
| 7 declare_args() { | |
| 8 # Set to true if cross compiling trusted (e.g. building sel_ldr_arm on x86) | |
| 9 # binaries is supported. | |
| 10 enable_cross_trusted = is_linux | |
| 11 | |
| 12 # Build the nacl SDK untrusted components. This is disabled by default since | |
| 13 # not all NaCl untrusted compilers are in goma (e.g arm-nacl-glibc) | |
| 14 nacl_sdk_untrusted = false | |
| 15 } | |
| 16 | |
| 17 if (enable_nacl) { | |
| 18 group("nacl_core_sdk") { | |
| 19 # Targets that get included in the NaCl SDK | |
| 20 # See: native_client_sdk/src/build_tools/build_sdk.py | |
| 21 deps = [] | |
| 22 if (enable_cross_trusted || | |
| 23 (target_cpu != "arm" && target_cpu != "mipsel")) { | |
| 24 # cross compiling trusted binaries such as sel_ldr is only currently | |
| 25 # supported on linux, and requires specific cross compilers to be | |
| 26 # installed. It can be disabled with 'disable_cross_trusted=1' | |
| 27 deps = [ | |
| 28 "//native_client/src/trusted/service_runtime:sel_ldr", | |
| 29 "//native_client/src/trusted/validator/driver:ncval_new", | |
| 30 ] | |
| 31 if (is_linux) { | |
| 32 deps += [ "//native_client/src/nonsfi/loader:nonsfi_loader" ] | |
| 33 } | |
| 34 } | |
| 35 if (nacl_sdk_untrusted) { | |
| 36 deps += [ | |
| 37 # elf_loader is only used on ARM | |
| 38 "//native_client/src/untrusted/elf_loader:elf_loader(//build/toolchain/n
acl:clang_newlib_arm)", | |
| 39 "//native_client/src/untrusted/irt:irt_core(//build/toolchain/nacl:irt_a
rm)", | |
| 40 "//native_client/src/untrusted/irt:irt_core(//build/toolchain/nacl:irt_x
64)", | |
| 41 "//native_client/src/untrusted/irt:irt_core(//build/toolchain/nacl:irt_x
86)", | |
| 42 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:clang_newlib_arm
)", | |
| 43 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:clang_newlib_x64
)", | |
| 44 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:clang_newlib_x86
)", | |
| 45 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:glibc_arm)", | |
| 46 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:glibc_x64)", | |
| 47 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:glibc_x86)", | |
| 48 "//ppapi/native_client:ppapi_lib(//build/toolchain/nacl:newlib_pnacl)", | |
| 49 "//ppapi/native_client/src/untrusted/pnacl_irt_shim:aot(//build/toolchai
n/nacl:clang_newlib_arm)", | |
| 50 "//ppapi/native_client/src/untrusted/pnacl_irt_shim:aot(//build/toolchai
n/nacl:clang_newlib_x64)", | |
| 51 "//ppapi/native_client/src/untrusted/pnacl_irt_shim:aot(//build/toolchai
n/nacl:clang_newlib_x86)", | |
| 52 ] | |
| 53 } | |
| 54 | |
| 55 # TODO(binji): dump_syms doesn't currently build on Windows. See | |
| 56 # http://crbug.com/245456 | |
| 57 if (!is_win && target_cpu == "x64") { | |
| 58 deps += [ | |
| 59 "//breakpad:dump_syms($host_toolchain)", | |
| 60 "//breakpad:minidump_dump($host_toolchain)", | |
| 61 "//breakpad:minidump_stackwalk($host_toolchain)", | |
| 62 ] | |
| 63 } | |
| 64 } | |
| 65 } | |
| OLD | NEW |