Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Unified Diff: nacl_bindings/BUILD.gn

Issue 955113002: Rearrange mojo/nacl files. (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Rebase Created 5 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « mojo/tools/roll/rev_sdk.py ('k') | nacl_bindings/irt_entry_mojo.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: nacl_bindings/BUILD.gn
diff --git a/nacl_bindings/BUILD.gn b/nacl_bindings/BUILD.gn
new file mode 100644
index 0000000000000000000000000000000000000000..84920eea13d6a68acd2016a857beba6867aa21cd
--- /dev/null
+++ b/nacl_bindings/BUILD.gn
@@ -0,0 +1,42 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+# Trusted code
+if (!is_nacl) {
+ # A library for launching a NaCl sandbox connected to a Mojo embedder.
+ source_set("monacl_sel") {
+ sources = [
+ "mojo_syscall_internal.h",
+ "mojo_syscall.cc",
+ "monacl_sel_main.cc",
+ ]
+ deps = [
+ "../mojo/public/c/system",
+
+ # This target makes sure we have all the pre-processor defines needed to
+ # use NaCl's headers.
+ "//native_client/build/config/nacl:nacl_base",
+ "//native_client/src/trusted/desc:nrd_xfer",
+ "//native_client/src/trusted/service_runtime:sel_main_chrome",
+ ]
+ }
+}
+
+# Untrusted code
+if (is_nacl) {
+ executable("irt_mojo") {
+ cflags_c = [ "-std=c99" ]
+ sources = [
+ "../mojo/public/platform/nacl/mojo_irt.h",
+ "irt_entry_mojo.c",
+ "mojo_irt.c",
+ ]
+ deps = [
+ "../mojo/public/c/system",
+ "//native_client/build/config/nacl:nacl_base",
+ "//native_client/src/untrusted/irt:irt_core_lib",
+ "//native_client/src/untrusted/nacl:imc_syscalls",
+ ]
+ }
+}
« no previous file with comments | « mojo/tools/roll/rev_sdk.py ('k') | nacl_bindings/irt_entry_mojo.c » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698