1 # Copyright 2014 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.
7 ['disable_nacl==0 and disable_nacl_untrusted==0', {
9 'monacl_codegen_dir': '<(SHARED_INTERMEDIATE_DIR)/<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))/monacl',
12 'mojo_variables.gypi',
13 '../build/common_untrusted.gypi',
14 '../components/nacl/nacl_defines.gypi',
18 'target_name': 'monacl_codegen',
22 'action_name': 'generate_nacl_bindings',
24 'nacl/generator/generate_nacl_bindings.py',
25 'nacl/generator/interface.py',
26 'nacl/generator/interface_dsl.py',
27 'nacl/generator/mojo_syscall.cc.tmpl',
28 'nacl/generator/libmojo.cc.tmpl',
31 '<(monacl_codegen_dir)/mojo_syscall.cc',
32 '<(monacl_codegen_dir)/libmojo.cc',
36 'nacl/generator/generate_nacl_bindings.py',
37 '-d', '<(monacl_codegen_dir)',
43 'target_name': 'monacl_sel',
44 'type': 'static_library',
52 '<(monacl_codegen_dir)/mojo_syscall.cc',
53 'nacl/monacl_sel_main.cc',
56 '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
60 'target_name': 'monacl_shell',
63 '../base/base.gyp:base',
64 'mojo_base.gyp:mojo_system_impl',
68 'nacl/monacl_shell.cc',
72 'target_name': 'mojo_nacl',
75 'nlib_target': 'libmojo.a',
78 'build_pnacl_newlib': 1,
84 '<(monacl_codegen_dir)/libmojo.cc',
91 'target_name': 'monacl_test',
94 'nexe_target': 'monacl_test',
96 'build_pnacl_newlib': 1,
97 'translate_pexe_with_build': 1,
104 '<@(mojo_public_system_unittest_sources)',
108 '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
109 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
110 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib',
111 '<(DEPTH)/native_client/src/untrusted/pthread/pthread.gyp:pthread_lib',
112 '../testing/gtest_nacl.gyp:gtest_nacl',
113 '../testing/gtest_nacl.gyp:gtest_main_nacl',