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

Side by Side 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 unified diff | Download patch
OLDNEW
(Empty)
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.
4
5 {
6 'conditions': [
7 ['disable_nacl==0 and disable_nacl_untrusted==0', {
8 'variables': {
9 'monacl_codegen_dir': '<(SHARED_INTERMEDIATE_DIR)/<!(python <(DEPTH)/bu ild/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.
10 },
11 'includes': [
12 'mojo_srcs.gypi',
13 '../build/common_untrusted.gypi',
14 '../components/nacl/nacl_defines.gypi',
15 ],
16 'targets': [
17 {
18 'target_name': 'monacl_codegen',
19 'type': 'none',
20 'actions': [
21 {
22 'action_name': 'generate_monacl_bindings',
23 'inputs': [
24 'monacl/gen/generate_monacl_bindings.py',
25 'monacl/gen/interface.py',
26 'monacl/gen/interface_dsl.py',
27 'monacl/gen/mojo_syscall.cc.template',
28 'monacl/gen/libmojo.cc.template',
29 ],
30 'outputs': [
31 '<(monacl_codegen_dir)/mojo_syscall.cc',
32 '<(monacl_codegen_dir)/libmojo.cc',
33 ],
34 'action': [
35 'python',
36 'monacl/gen/generate_monacl_bindings.py',
37 '-d', '<(monacl_codegen_dir)',
38 ],
39 },
40 ],
41 },
42 {
43 'target_name': 'monacl_sel',
44 'type': 'static_library',
45 # Uses unstable APIs, do not build by default.
46 'suppress_wildcard': 1,
47 'defines': [
48 '<@(nacl_defines)',
49 ],
50 'include_dirs': [
51 '..',
52 ],
53 'sources': [
54 '<(monacl_codegen_dir)/mojo_syscall.cc',
55 'monacl/monacl_sel_main.cc',
56 ],
57 'dependencies': [
58 '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime. gyp:sel',
59 ],
60 },
61 {
62 'target_name': 'monacl_shell',
63 # Uses unstable APIs, do not build by default.
64 'suppress_wildcard': 1,
65 'type': 'executable',
66 'dependencies': [
67 '../base/base.gyp:base',
68 'mojo_base.gyp:mojo_system_impl',
69 'monacl_sel',
70 # Make sure the IRT is built.
71 '<(DEPTH)/native_client/src/untrusted/irt/irt.gyp:irt_core_nexe',
72 ],
73 'sources': [
74 'monacl/monacl_shell.cc',
75 ],
76 },
77 {
78 'target_name': 'mojo_nacl',
79 'type': 'none',
80 'variables': {
81 'nlib_target': 'libmojo.a',
82 'build_glibc': 0,
83 'build_newlib': 1,
84 'build_pnacl_newlib': 0,
85 },
86 'defines': [
87 '<@(nacl_defines)',
88 ],
89 'sources': [
90 '<(monacl_codegen_dir)/libmojo.cc',
91 '<(DEPTH)/native_client/src/untrusted/nacl/imc_sendmsg.c',
92 ],
93 'dependencies': [
94 'monacl_codegen',
95 ],
96 },
97 {
98 'target_name': 'monacl_test',
99 'type': 'none',
100 'variables': {
101 'nexe_target': 'monacl_test',
102 'build_newlib': 1,
103 'link_flags': [
104 '-pthread',
105 '-lmojo',
106 '-limc_syscalls',
107 ],
108 'sources': [
109 '<@(mojo_public_system_unittest_sources)',
110 ],
111 },
112 'dependencies': [
113 '<(DEPTH)/native_client/tools.gyp:prep_toolchain',
114 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:nacl_lib',
115 '<(DEPTH)/native_client/src/untrusted/nacl/nacl.gyp:imc_syscalls_lib ',
116 '../testing/gtest_nacl.gyp:gtest_nacl',
117 '../testing/gtest_nacl.gyp:gtest_main_nacl',
118 'mojo_nacl',
119 'monacl_codegen',
120 ],
121 },
122 ],
123 }],
124 ],
125 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698