Pin Chrome's shortcut to the Win10 Start menu on install and OS upgrade.
[chromium-blink-merge.git] / mojo / mojo_nacl.gyp
blob81595fc1dfe5ff74eec5b5d55b9915261291af30
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       'includes': [
9         '../mojo/mojo_nacl.gypi',
10       ],
11       'targets': [
12         {
13           'target_name': 'monacl_codegen',
14           'type': 'none',
15           'actions': [
16             {
17               'action_name': 'generate_nacl_bindings',
18               'inputs': [
19                 'nacl/generator/generate_nacl_bindings.py',
20                 'nacl/generator/interface.py',
21                 'nacl/generator/interface_dsl.py',
22                 'nacl/generator/libmojo.cc.tmpl',
23                 'nacl/generator/mojo_irt.c.tmpl',
24                 'nacl/generator/mojo_irt.h.tmpl',
25                 'nacl/generator/mojo_syscall.cc.tmpl',
26               ],
27               'outputs': [
28                 '<(monacl_codegen_dir)/libmojo.cc',
29                 '<(monacl_codegen_dir)/mojo_irt.c',
30                 '<(monacl_codegen_dir)/mojo_irt.h',
31                 '<(monacl_codegen_dir)/mojo_syscall.cc',
32               ],
33               'action': [
34                 'python',
35                 'nacl/generator/generate_nacl_bindings.py',
36                 '-d', '<(monacl_codegen_dir)',
37               ],
38             },
39           ],
40           'direct_dependent_settings': {
41             'include_dirs': [ '../third_party/mojo/src/' ],
42           },
43         },
44         {
45           'target_name': 'monacl_syscall',
46           'type': 'static_library',
47           'include_dirs': [
48             '..',
49             '../third_party/mojo/src/',
50           ],
51           'sources': [
52             '<(monacl_codegen_dir)/mojo_syscall.cc',
53           ],
54           'dependencies': [
55             '../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
56           ],
57         },
58         {
59           'target_name': 'monacl_sel',
60           'type': 'static_library',
61           'include_dirs': [
62             '..',
63             '../third_party/mojo/src/',
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             '../third_party/mojo/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               'include_dirs': [
94                 '..',
95               ],
96               'sources': [
97                 '<(monacl_codegen_dir)/mojo_syscall.cc',
98               ],
99               'dependencies': [
100                 '../third_party/mojo/mojo_public.gyp:mojo_system_placeholder',
101               ],
102               'configurations': {
103                 'Common_Base': {
104                   'msvs_target_platform': 'x64',
105                 }
106               },
107             },
108           ],
109         }],
110       ],
111     }],
112   ],