1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
|
# 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': [
'../mojo/mojo_nacl.gypi',
],
'targets': [
{
'target_name': 'monacl_codegen',
'type': 'none',
'actions': [
{
'action_name': 'generate_nacl_bindings',
'inputs': [
'nacl/generator/generate_nacl_bindings.py',
'nacl/generator/interface.py',
'nacl/generator/interface_dsl.py',
'nacl/generator/libmojo.cc.tmpl',
'nacl/generator/mojo_irt.c.tmpl',
'nacl/generator/mojo_irt.h.tmpl',
'nacl/generator/mojo_syscall.cc.tmpl',
],
'outputs': [
'<(monacl_codegen_dir)/libmojo.cc',
'<(monacl_codegen_dir)/mojo_irt.c',
'<(monacl_codegen_dir)/mojo_irt.h',
'<(monacl_codegen_dir)/mojo_syscall.cc',
],
'action': [
'python',
'nacl/generator/generate_nacl_bindings.py',
'-d', '<(monacl_codegen_dir)',
],
},
],
'direct_dependent_settings': {
'include_dirs': [ '../third_party/mojo/src/' ],
},
},
{
'target_name': 'monacl_syscall',
'type': 'static_library',
'include_dirs': [
'..',
'../third_party/mojo/src/',
],
'sources': [
'<(monacl_codegen_dir)/mojo_syscall.cc',
],
'dependencies': [
'../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
],
},
{
'target_name': 'monacl_sel',
'type': 'static_library',
'include_dirs': [
'..',
'../third_party/mojo/src/',
],
'sources': [
'nacl/monacl_sel_main.cc',
],
'dependencies': [
'<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
'monacl_codegen',
'monacl_syscall',
],
},
{
'target_name': 'monacl_shell',
'type': 'executable',
'dependencies': [
'../base/base.gyp:base',
'../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
'monacl_sel',
],
'sources': [
'nacl/monacl_shell.cc',
],
},
],
'conditions': [
['OS=="win" and target_arch=="ia32"', {
'targets': [
{
'target_name': 'monacl_syscall_win64',
'type': 'static_library',
'include_dirs': [
'..',
],
'sources': [
'<(monacl_codegen_dir)/mojo_syscall.cc',
],
'dependencies': [
'../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
],
'configurations': {
'Common_Base': {
'msvs_target_platform': 'x64',
}
},
},
],
}],
],
}],
],
}
|