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

Unified Diff: mojo/monacl.gyp

Issue 385983008: Mojo + NaCl prototype. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Dead files Created 6 years, 4 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
Index: mojo/monacl.gyp
diff --git a/mojo/monacl.gyp b/mojo/monacl.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..1948b7ffa9fd3b465a3d0b699cd6c74c395cc210
--- /dev/null
+++ b/mojo/monacl.gyp
@@ -0,0 +1,125 @@
+# Copyright 2014 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.
+
+{
+ 'conditions': [
+ ['disable_nacl==0 and disable_nacl_untrusted==0', {
+ 'variables': {
+ 'monacl_codegen_dir': '<(SHARED_INTERMEDIATE_DIR)/<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))/monacl',
Mark Seaborn 2014/08/26 16:25:52 Nit: indent -1 space
Nick Bray (chromium) 2014/09/03 23:45:02 Done.
+ },
+ 'includes': [
+ 'mojo_srcs.gypi',
+ '../build/common_untrusted.gypi',
+ '../components/nacl/nacl_defines.gypi',
+ ],
+ 'targets': [
+ {
+ 'target_name': 'monacl_codegen',
+ 'type': 'none',
+ 'actions': [
+ {
+ 'action_name': 'generate_monacl_bindings',
+ 'inputs': [
+ 'monacl/gen/generate_monacl_bindings.py',
+ 'monacl/gen/interface.py',
+ 'monacl/gen/interface_dsl.py',
+ 'monacl/gen/mojo_syscall.cc.template',
+ 'monacl/gen/libmojo.cc.template',
+ ],
+ 'outputs': [
+ '<(monacl_codegen_dir)/mojo_syscall.cc',
+ '<(monacl_codegen_dir)/libmojo.cc',
+ ],
+ 'action': [
+ 'python',
+ 'monacl/gen/generate_monacl_bindings.py',
+ '-d', '<(monacl_codegen_dir)',
+ ],
+ },
+ ],
+ },
+ {
+ 'target_name': 'monacl_sel',
+ 'type': 'static_library',
+ # Uses unstable APIs, do not build by default.
+ 'suppress_wildcard': 1,
+ 'defines': [
+ '<@(nacl_defines)',
+ ],
+ 'include_dirs': [
+ '..',
+ ],
+ 'sources': [
+ '<(monacl_codegen_dir)/mojo_syscall.cc',
+ 'monacl/monacl_sel_main.cc',
+ ],
+ 'dependencies': [
+ '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
+ ],
+ },
+ {
+ 'target_name': 'monacl_shell',
+ # Uses unstable APIs, do not build by default.
+ 'suppress_wildcard': 1,
+ 'type': 'executable',
+ 'dependencies': [
+ '../base/base.gyp:base',
+ 'mojo_base.gyp:mojo_system_impl',
+ 'monacl_sel',
+ # Make sure the IRT is built.
+ '<(DEPTH)/native_client/src/untrusted/irt/irt.gyp:irt_core_nexe',
+ ],
+ 'sources': [
+ 'monacl/monacl_shell.cc',
+ ],
+ },
+ {
+ 'target_name': 'mojo_nacl',
+ 'type': 'none',
+ 'variables': {
+ 'nlib_target': 'libmojo.a',
+ 'build_glibc': 0,
+ 'build_newlib': 1,
+ 'build_pnacl_newlib': 0,
+ },
+ 'defines': [
+ '<@(nacl_defines)',
+ ],
+ 'sources': [
+ '<(monacl_codegen_dir)/libmojo.cc',
+ '<(DEPTH)/native_client/src/untrusted/nacl/imc_sendmsg.c',
+ ],
+ 'dependencies': [
+ 'monacl_codegen',
+ ],
+ },
+ {
+ 'target_name': 'monacl_test',
+ 'type': 'none',
+ 'variables': {
+ 'nexe_target': 'monacl_test',
+ 'build_newlib': 1,
+ 'link_flags': [
+ '-pthread',
+ '-lmojo',
+ '-limc_syscalls',
+ ],
+ 'sources': [
+ '<@(mojo_public_system_unittest_sources)',
+ ],
+ },
+ 'dependencies': [
+ '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
+ '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
+ '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
+ '../testing/gtest_nacl.gyp:gtest_nacl',
+ '../testing/gtest_nacl.gyp:gtest_main_nacl',
+ 'mojo_nacl',
+ 'monacl_codegen',
+ ],
+ },
+ ],
+ }],
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698