OLD | NEW |
| (Empty) |
1 # Copyright 2015 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 'targets': [ | |
7 { | |
8 'target_name': 'shell_lib', | |
9 'type': 'static_library', | |
10 'sources': [ | |
11 '../catalog/catalog.cc', | |
12 '../catalog/catalog.h', | |
13 '../catalog/constants.cc', | |
14 '../catalog/constants.h', | |
15 '../catalog/entry.cc', | |
16 '../catalog/entry.h', | |
17 '../catalog/instance.cc', | |
18 '../catalog/instance.h', | |
19 '../catalog/reader.cc', | |
20 '../catalog/reader.h', | |
21 '../catalog/store.cc', | |
22 '../catalog/store.h', | |
23 '../catalog/types.h', | |
24 'connect_params.cc', | |
25 'connect_params.h', | |
26 'connect_util.cc', | |
27 'connect_util.h', | |
28 'native_runner.h', | |
29 'native_runner_delegate.h', | |
30 'service_manager.cc', | |
31 'service_manager.h', | |
32 'switches.cc', | |
33 'switches.cc', | |
34 ], | |
35 'dependencies': [ | |
36 '<(DEPTH)/base/base.gyp:base', | |
37 '<(DEPTH)/base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', | |
38 '<(DEPTH)/components/filesystem/filesystem.gyp:filesystem_bindings', | |
39 '<(DEPTH)/components/filesystem/filesystem.gyp:filesystem_lib', | |
40 '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib', | |
41 'shell_public.gyp:shell_public', | |
42 ], | |
43 'export_dependent_settings': [ | |
44 '<(DEPTH)/components/filesystem/filesystem.gyp:filesystem_bindings', | |
45 'shell_public.gyp:shell_public', | |
46 ], | |
47 'variables': { | |
48 'mojom_typemaps': [ | |
49 '<(DEPTH)/mojo/common/common_custom_types.typemap', | |
50 ], | |
51 } | |
52 }, { | |
53 'target_name': 'mojo_shell_unittests', | |
54 'type': 'executable', | |
55 'sources': [ | |
56 'tests/placeholder_unittest.cc', | |
57 ], | |
58 'dependencies': [ | |
59 'shell_lib', | |
60 'shell_test_public', | |
61 '<(DEPTH)/base/base.gyp:base', | |
62 '<(DEPTH)/mojo/mojo_base.gyp:mojo_common_lib', | |
63 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_run_all_unittests', | |
64 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
65 '<(DEPTH)/testing/gtest.gyp:gtest', | |
66 'shell_public.gyp:shell_public', | |
67 ] | |
68 }, { | |
69 'target_name': 'shell_test_public', | |
70 'type': 'static_library', | |
71 'dependencies': [ | |
72 'shell_test_interfaces', | |
73 ], | |
74 }, { | |
75 'target_name': 'shell_test_interfaces', | |
76 'type': 'none', | |
77 'variables': { | |
78 'mojom_files': [ | |
79 'tests/test.mojom', | |
80 ], | |
81 'use_new_wrapper_types': 'false', | |
82 }, | |
83 'includes': [ | |
84 '../../mojo/mojom_bindings_generator_explicit.gypi', | |
85 ], | |
86 }, { | |
87 'target_name': 'shell_runner_common_lib', | |
88 'type': 'static_library', | |
89 'sources': [ | |
90 'runner/common/client_util.cc', | |
91 'runner/common/client_util.h', | |
92 'runner/common/switches.cc', | |
93 'runner/common/switches.h', | |
94 ], | |
95 'include_dirs': [ | |
96 '..', | |
97 ], | |
98 'dependencies': [ | |
99 '<(DEPTH)/base/base.gyp:base', | |
100 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl', | |
101 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
102 '<(DEPTH)/mojo/mojo_public.gyp:mojo_cpp_system', | |
103 'shell_public.gyp:shell_public', | |
104 ], | |
105 'export_dependent_settings': [ | |
106 'shell_public.gyp:shell_public', | |
107 ], | |
108 }, { | |
109 'target_name': 'shell_runner_host_lib', | |
110 'type': 'static_library', | |
111 'sources': [ | |
112 'runner/host/child_process.cc', | |
113 'runner/host/child_process.h', | |
114 'runner/host/child_process_base.cc', | |
115 'runner/host/child_process_base.h', | |
116 'runner/host/child_process_host.cc', | |
117 'runner/host/child_process_host.h', | |
118 'runner/host/in_process_native_runner.cc', | |
119 'runner/host/in_process_native_runner.h', | |
120 'runner/host/native_application_support.cc', | |
121 'runner/host/native_application_support.h', | |
122 'runner/host/out_of_process_native_runner.cc', | |
123 'runner/host/out_of_process_native_runner.h', | |
124 'runner/init.cc', | |
125 'runner/init.h', | |
126 ], | |
127 'dependencies': [ | |
128 'shell_lib', | |
129 'shell_runner_common_lib', | |
130 '<(DEPTH)/base/base.gyp:base', | |
131 '<(DEPTH)/base/base.gyp:base_i18n', | |
132 '<(DEPTH)/base/base.gyp:base_static', | |
133 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_impl', | |
134 'shell_public.gyp:shell_public', | |
135 ], | |
136 'export_dependent_settings': [ | |
137 'shell_public.gyp:shell_public', | |
138 ], | |
139 'conditions': [ | |
140 ['OS=="linux"', { | |
141 'sources': [ | |
142 'runner/host/linux_sandbox.cc', | |
143 'runner/host/linux_sandbox.h', | |
144 ], | |
145 'dependencies': [ | |
146 '<(DEPTH)/sandbox/sandbox.gyp:sandbox', | |
147 '<(DEPTH)/sandbox/sandbox.gyp:sandbox_services', | |
148 '<(DEPTH)/sandbox/sandbox.gyp:seccomp_bpf', | |
149 ], | |
150 }], | |
151 ['OS=="mac"', { | |
152 'sources': [ | |
153 'runner/host/mach_broker.cc', | |
154 'runner/host/mach_broker.h', | |
155 ], | |
156 }], | |
157 ], | |
158 }, { | |
159 # GN version: //services/catalog:manifest | |
160 'target_name': 'catalog_manifest', | |
161 'type': 'none', | |
162 'variables': { | |
163 'type': 'mojo', | |
164 'name': 'catalog', | |
165 'source_manifest': '<(DEPTH)/services/catalog/manifest.json', | |
166 }, | |
167 'includes': [ | |
168 '../shell/public/service_manifest.gypi', | |
169 ], | |
170 'hard_dependency': 1, | |
171 }, { | |
172 # GN version: //services/shell/public/cpp/tests | |
173 'target_name': 'shell_client_lib_unittests', | |
174 'type': 'executable', | |
175 'dependencies': [ | |
176 '<(DEPTH)/base/base.gyp:base', | |
177 '<(DEPTH)/mojo/mojo_edk.gyp:mojo_run_all_unittests', | |
178 '<(DEPTH)/testing/gtest.gyp:gtest', | |
179 'shell_public.gyp:shell_public', | |
180 ], | |
181 'sources': [ | |
182 'public/cpp/tests/interface_registry_unittest.cc', | |
183 ], | |
184 }], | |
185 'conditions': [ | |
186 ['test_isolation_mode != "noop"', { | |
187 'targets': [ | |
188 { | |
189 'target_name': 'mojo_shell_unittests_run', | |
190 'type': 'none', | |
191 'dependencies': [ | |
192 'mojo_shell_unittests', | |
193 ], | |
194 'includes': [ | |
195 '../../build/isolate.gypi', | |
196 ], | |
197 'sources': [ | |
198 'mojo_shell_unittests.isolate', | |
199 ], | |
200 }, | |
201 ], | |
202 }], | |
203 ], | |
204 } | |
OLD | NEW |