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 '../components/nacl/nacl_defines.gypi',
16 'target_name': 'monacl_codegen',
20 'action_name': 'generate_nacl_bindings',
22 'nacl/generator/generate_nacl_bindings.py',
23 'nacl/generator/interface.py',
24 'nacl/generator/interface_dsl.py',
25 'nacl/generator/mojo_syscall.cc.tmpl',
26 'nacl/generator/libmojo.cc.tmpl',
29 '<(monacl_codegen_dir)/mojo_syscall.cc',
30 '<(monacl_codegen_dir)/libmojo.cc',
34 'nacl/generator/generate_nacl_bindings.py',
35 '-d', '<(monacl_codegen_dir)',
41 'target_name': 'monacl_syscall',
42 'type': 'static_library',
50 '<(monacl_codegen_dir)/mojo_syscall.cc',
53 '../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
57 'target_name': 'monacl_sel',
58 'type': 'static_library',
66 'nacl/monacl_sel_main.cc',
69 '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
75 'target_name': 'monacl_shell',
78 '../base/base.gyp:base',
79 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
83 'nacl/monacl_shell.cc',
88 ['OS=="win" and target_arch=="ia32"', {
91 'target_name': 'monacl_syscall_win64',
92 'type': 'static_library',
100 '<(monacl_codegen_dir)/mojo_syscall.cc',
103 '../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
107 'msvs_target_platform': 'x64',