Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 import("../mojo/public/mojo_sdk.gni") | |
| 6 | |
| 7 # Trusted code | |
| 8 if (!is_nacl) { | |
| 9 # A library for launching a NaCl sandbox connected to a Mojo embedder. | |
| 10 static_library("monacl_sel") { | |
|
jamesr
2015/02/26 00:23:22
do you need this to be a static_library or is sour
Nick Bray (chromium)
2015/02/26 01:16:02
Done.
| |
| 11 sources = [ | |
| 12 "mojo_syscall_internal.h", | |
| 13 "mojo_syscall.cc", | |
| 14 "monacl_sel_main.cc", | |
| 15 ] | |
| 16 deps = [ | |
| 17 rebase_path("mojo/public/c/system", ".", mojo_root), | |
|
Nick Bray (chromium)
2015/02/25 22:14:36
Note: a little funky, but this seemed cleaner than
| |
| 18 | |
| 19 # This target makes sure we have all the pre-processor defines needed to | |
| 20 # use NaCl's headers. | |
| 21 "//native_client/build/config/nacl:nacl_base", | |
| 22 "//native_client/src/trusted/desc:nrd_xfer", | |
| 23 "//native_client/src/trusted/service_runtime:sel_main_chrome", | |
| 24 ] | |
| 25 } | |
| 26 } | |
| 27 | |
| 28 # Untrusted code | |
| 29 if (is_nacl) { | |
| 30 executable("irt_mojo") { | |
| 31 cflags_c = [ "-std=c99" ] | |
| 32 sources = [ | |
| 33 "irt_entry_mojo.c", | |
| 34 "mojo_irt.c", | |
| 35 rebase_path("mojo/public/platform/nacl/mojo_irt.h", ".", mojo_root), | |
|
jamesr
2015/02/26 00:23:22
it looks like nacl_bindings is always in the same
Nick Bray (chromium)
2015/02/26 01:16:02
Done.
| |
| 36 ] | |
| 37 deps = [ | |
| 38 rebase_path("mojo/public/c/system", ".", mojo_root), | |
|
jamesr
2015/02/26 00:23:22
and same here?
../mojo/public/c/system
Nick Bray (chromium)
2015/02/26 01:16:02
Done.
| |
| 39 "//native_client/build/config/nacl:nacl_base", | |
| 40 "//native_client/src/untrusted/irt:irt_core_lib", | |
| 41 "//native_client/src/untrusted/nacl:imc_syscalls", | |
| 42 ] | |
| 43 } | |
| 44 } | |
| OLD | NEW |