Index: mojo/monacl.gypi |
diff --git a/mojo/monacl.gypi b/mojo/monacl.gypi |
new file mode 100644 |
index 0000000000000000000000000000000000000000..22a1840c5f30e55613258bca5a5a15e9fabd91f8 |
--- /dev/null |
+++ b/mojo/monacl.gypi |
@@ -0,0 +1,85 @@ |
+# 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', { |
+ 'includes': [ |
+ '../build/common_untrusted.gypi', |
+ '../components/nacl/nacl_defines.gypi', |
+ ], |
+ 'targets': [ |
+ { |
+ 'target_name': 'monacl_sel', |
+ 'type': 'static_library', |
+ 'dependencies': [ |
+ '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:sel', |
+ ], |
+ 'defines': [ |
+ '<@(nacl_defines)', |
+ ], |
+ 'include_dirs': [ |
+ '..', |
+ ], |
+ 'sources': [ |
+ 'monacl/mojo_syscall.cc', |
+ 'monacl/monacl_sel_main.cc', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'monacl_shell', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ '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/libmojo.cc', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'monacl_test', |
+ 'type': 'none', |
+ 'variables': { |
+ 'nexe_target': 'monacl_test', |
+ 'build_newlib': 1, |
+ 'link_flags': [ |
+ '-pthread', |
+ '-lmojo', |
+ ], |
+ 'sources': [ |
+ '<@(mojo_public_system_unittest_sources)', |
+ ], |
+ }, |
+ 'dependencies': [ |
+ '<(DEPTH)/native_client/tools.gyp:prep_toolchain', |
+ '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib', |
+ '../testing/gtest_nacl.gyp:gtest_nacl', |
+ '../testing/gtest_nacl.gyp:gtest_main_nacl', |
+ 'mojo_nacl', |
+ ], |
+ }, |
+ ], |
+ }], |
+ ], |
+} |