Update (ui/) keyboard code to use the new version of LaunchProcess.
[chromium-blink-merge.git] / mojo / mojo_nacl.gyp
blobd7ffe19a2c9e48f25142e8498b82be7f5a0bf1f5
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.
6   'conditions': [
7     ['disable_nacl==0 and disable_nacl_untrusted==0', {
8       'variables': {
9         'monacl_codegen_dir': '<(SHARED_INTERMEDIATE_DIR)/<!(python <(DEPTH)/build/inverse_depth.py <(DEPTH))/monacl',
10       },
11       'includes': [
12         '../components/nacl/nacl_defines.gypi',
13       ],
14       'targets': [
15         {
16           'target_name': 'monacl_codegen',
17           'type': 'none',
18           'actions': [
19             {
20               'action_name': 'generate_nacl_bindings',
21               'inputs': [
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',
27               ],
28               'outputs': [
29                 '<(monacl_codegen_dir)/mojo_syscall.cc',
30                 '<(monacl_codegen_dir)/libmojo.cc',
31               ],
32               'action': [
33                 'python',
34                 'nacl/generator/generate_nacl_bindings.py',
35                 '-d', '<(monacl_codegen_dir)',
36               ],
37             },
38           ],
39         },
40         {
41           'target_name': 'monacl_syscall',
42           'type': 'static_library',
43           'defines': [
44             '<@(nacl_defines)',
45           ],
46           'include_dirs': [
47             '..',
48           ],
49           'sources': [
50             '<(monacl_codegen_dir)/mojo_syscall.cc',
51           ],
52           'dependencies': [
53             'mojo_public.gyp:mojo_system_placeholder',
54           ],
55         },
56         {
57           'target_name': 'monacl_sel',
58           'type': 'static_library',
59           'defines': [
60             '<@(nacl_defines)',
61           ],
62           'include_dirs': [
63             '..',
64           ],
65           'sources': [
66             'nacl/monacl_sel_main.cc',
67           ],
68           'dependencies': [
69             '<(DEPTH)/native_client/src/trusted/service_runtime/service_runtime.gyp:sel',
70             'monacl_codegen',
71             'monacl_syscall',
72           ],
73         },
74         {
75           'target_name': 'monacl_shell',
76           'type': 'executable',
77           'dependencies': [
78             '../base/base.gyp:base',
79             'mojo_edk.gyp:mojo_system_impl',
80             'monacl_sel',
81           ],
82           'sources': [
83             'nacl/monacl_shell.cc',
84           ],
85         },
86       ],
87       'conditions': [
88         ['OS=="win" and target_arch=="ia32"', {
89           'targets': [
90             {
91               'target_name': 'monacl_syscall_win64',
92               'type': 'static_library',
93               'defines': [
94                 '<@(nacl_defines)',
95               ],
96               'include_dirs': [
97                 '..',
98               ],
99               'sources': [
100                 '<(monacl_codegen_dir)/mojo_syscall.cc',
101               ],
102               'dependencies': [
103                 'mojo_public.gyp:mojo_system_placeholder',
104               ],
105               'configurations': {
106                 'Common_Base': {
107                   'msvs_target_platform': 'x64',
108                 }
109               },
110             },
111           ],
112         }],
113       ],
114     }],
115   ],