blob: 2f40b1733c4e1cff26cdc9f9cad7acb1507ae68a [file] [log] [blame]
[email protected]02657da2013-09-16 02:55:181# Copyright 2013 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 'variables': {
[email protected]3d58663b2013-09-28 00:30:047 'chromium_code': 1,
[email protected]02657da2013-09-16 02:55:188 },
[email protected]02657da2013-09-16 02:55:189 'targets': [
10 {
11 'target_name': 'mojo',
12 'type': 'none',
[email protected]3d58663b2013-09-28 00:30:0413 'dependencies': [
14 'mojo_public_test_support',
15 'mojo_public_unittests',
16 'mojo_public_perftests',
17 'mojo_system',
18 'mojo_system_unittests',
19 ],
20 },
21 {
22 'target_name': 'mojo_public_test_support',
23 'type': 'static_library',
24 'dependencies': [
25 '../base/base.gyp:base',
26 '../testing/gtest.gyp:gtest',
27 'mojo_system',
28 ],
29 'sources': [
30 'public/tests/test_support.cc',
31 'public/tests/test_support.h',
32 ],
33 },
34 {
35 'target_name': 'mojo_public_unittests',
36 'type': 'executable',
37 'dependencies': [
38 '../base/base.gyp:run_all_unittests',
39 '../testing/gtest.gyp:gtest',
40 'mojo_public_test_support',
41 'mojo_system',
42 ],
43 'sources': [
44 'public/tests/system_core_unittest.cc',
45 ],
46 },
47 {
48 'target_name': 'mojo_public_perftests',
49 'type': 'executable',
50 'dependencies': [
51 '../base/base.gyp:base',
52 '../base/base.gyp:test_support_perf',
53 '../testing/gtest.gyp:gtest',
54 'mojo_public_test_support',
55 'mojo_system',
56 ],
57 'sources': [
58 'public/tests/system_core_perftest.cc',
59 ],
60 },
61 {
62 'target_name': 'mojo_system',
[email protected]6cf6ca52013-10-10 20:52:1163 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:0464 'dependencies': [
65 '../base/base.gyp:base',
66 ],
[email protected]6cf6ca52013-10-10 20:52:1167 'defines': [
68 'MOJO_SYSTEM_IMPLEMENTATION',
69 ],
[email protected]3d58663b2013-09-28 00:30:0470 'sources': [
[email protected]3d58663b2013-09-28 00:30:0471 'system/core.cc',
72 'system/core_impl.cc',
73 'system/core_impl.h',
74 'system/dispatcher.cc',
75 'system/dispatcher.h',
76 'system/limits.h',
[email protected]989f8bc2013-10-16 00:24:3777 'system/local_message_pipe_endpoint.cc',
78 'system/local_message_pipe_endpoint.h',
[email protected]3d58663b2013-09-28 00:30:0479 'system/memory.cc',
80 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:3481 'system/message_in_transit.cc',
82 'system/message_in_transit.h',
[email protected]3d58663b2013-09-28 00:30:0483 'system/message_pipe.cc',
84 'system/message_pipe.h',
85 'system/message_pipe_dispatcher.cc',
86 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:3787 'system/message_pipe_endpoint.cc',
88 'system/message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:1889 'system/platform_channel_handle.h',
90 'system/raw_channel.h',
91 'system/raw_channel_posix.cc',
[email protected]3d58663b2013-09-28 00:30:0492 'system/simple_dispatcher.cc',
93 'system/simple_dispatcher.h',
94 'system/waiter.cc',
95 'system/waiter.h',
96 'system/waiter_list.cc',
97 'system/waiter_list.h',
98 ],
99 'direct_dependent_settings': {
100 'include_dirs': [
101 '..',
102 ],
103 },
104 },
105 {
106 'target_name': 'mojo_system_unittests',
107 'type': 'executable',
108 'dependencies': [
109 '../base/base.gyp:run_all_unittests',
110 '../testing/gtest.gyp:gtest',
111 'mojo_system',
112 ],
113 'sources': [
114 'system/core_impl_unittest.cc',
115 'system/core_test_base.cc',
116 'system/core_test_base.h',
117 'system/dispatcher_unittest.cc',
118 'system/message_pipe_dispatcher_unittest.cc',
119 'system/message_pipe_unittest.cc',
[email protected]5a0d0062013-10-11 19:07:18120 'system/raw_channel_posix_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04121 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57122 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04123 'system/test_utils.h',
124 'system/waiter_list_unittest.cc',
125 'system/waiter_test_utils.cc',
126 'system/waiter_test_utils.h',
127 'system/waiter_unittest.cc',
128 ],
[email protected]02657da2013-09-16 02:55:18129 },
[email protected]6cf6ca52013-10-10 20:52:11130 {
[email protected]786d75c2013-10-24 20:29:35131 'target_name': 'mojo_shell_lib',
132 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11133 'dependencies': [
134 '../base/base.gyp:base',
[email protected]eba6f512013-10-19 00:17:09135 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08136 '../url/url.gyp:url_lib',
[email protected]6cf6ca52013-10-10 20:52:11137 'mojo_system',
[email protected]a8729cc2013-11-04 19:24:21138 'mojo_utility',
[email protected]ab900db2013-10-31 21:03:40139 'native_viewport',
[email protected]6cf6ca52013-10-10 20:52:11140 ],
141 'sources': [
142 'shell/app_container.cc',
143 'shell/app_container.h',
[email protected]6e50d5e42013-10-27 02:45:46144 'shell/context.cc',
145 'shell/context.h',
[email protected]03be76c2013-11-04 16:06:29146 'shell/handle_watcher.cc',
147 'shell/handle_watcher.h',
[email protected]0be9b242013-10-28 06:28:38148 'shell/loader.cc',
149 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30150 'shell/network_delegate.cc',
151 'shell/network_delegate.h',
[email protected]adeb6f72013-10-25 08:05:02152 'shell/run.cc',
153 'shell/run.h',
[email protected]03be76c2013-11-04 16:06:29154 'shell/scoped_message_pipe.cc',
155 'shell/scoped_message_pipe.h',
[email protected]eba6f512013-10-19 00:17:09156 'shell/storage.cc',
157 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11158 'shell/switches.cc',
159 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09160 'shell/task_runners.cc',
161 'shell/task_runners.h',
[email protected]0be9b242013-10-28 06:28:38162 'shell/url_request_context_getter.cc',
163 'shell/url_request_context_getter.h',
[email protected]6cf6ca52013-10-10 20:52:11164 ],
[email protected]6838e3c2013-10-11 20:16:22165 'conditions': [
166 ['OS == "win"', {
167 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
168 'msvs_disabled_warnings': [
169 4267,
170 ],
171 }],
172 ],
[email protected]6cf6ca52013-10-10 20:52:11173 },
174 {
[email protected]786d75c2013-10-24 20:29:35175 'target_name': 'mojo_shell',
176 'type': 'executable',
177 'dependencies': [
178 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02179 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35180 '../url/url.gyp:url_lib',
181 'mojo_shell_lib',
182 'mojo_system',
183 ],
184 'sources': [
[email protected]adeb6f72013-10-25 08:05:02185 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35186 ],
187 'conditions': [
188 ['OS == "win"', {
189 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
190 'msvs_disabled_warnings': [
191 4267,
192 ],
193 }],
194 ],
195 },
196 {
[email protected]03be76c2013-11-04 16:06:29197 'target_name': 'mojo_shell_unittests',
198 'type': 'executable',
199 'dependencies': [
200 '../base/base.gyp:base',
201 '../base/base.gyp:run_all_unittests',
202 '../testing/gtest.gyp:gtest',
203 'mojo_shell_lib',
204 'mojo_system',
205 ],
206 'sources': [
207 'shell/handle_watcher_unittest.cc',
208 'shell/test/run_all_unittests.cc',
209 ],
210 'conditions': [
211 ['OS == "win"', {
212 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
213 'msvs_disabled_warnings': [
214 4267,
215 ],
216 }],
217 ],
218 },
219 {
[email protected]a8729cc2013-11-04 19:24:21220 'target_name': 'mojo_utility',
221 'type': 'static_library',
222 'dependencies': [
223 'mojo_system'
224 ],
225 'sources': [
226 'public/utility/scoped_handle.cc',
227 'public/utility/scoped_handle.h',
228 ],
229 },
230 {
[email protected]6cf6ca52013-10-10 20:52:11231 'target_name': 'sample_app',
[email protected]e5fc9bff2013-10-27 09:48:47232 'type': 'shared_library',
[email protected]6cf6ca52013-10-10 20:52:11233 'dependencies': [
[email protected]6cf6ca52013-10-10 20:52:11234 'mojo_system',
235 ],
236 'sources': [
[email protected]0be9b242013-10-28 06:28:38237 'examples/sample_app/sample_app.cc',
[email protected]6cf6ca52013-10-10 20:52:11238 ],
239 },
[email protected]6838e3c2013-10-11 20:16:22240 {
241 'target_name': 'mojo_bindings',
242 'type': 'static_library',
243 'include_dirs': [
244 '..'
245 ],
246 'sources': [
247 'public/bindings/lib/bindings.h',
248 'public/bindings/lib/bindings_internal.h',
249 'public/bindings/lib/bindings_serialization.cc',
250 'public/bindings/lib/bindings_serialization.h',
251 'public/bindings/lib/buffer.cc',
252 'public/bindings/lib/buffer.h',
253 'public/bindings/lib/message.cc',
254 'public/bindings/lib/message.h',
255 'public/bindings/lib/message_builder.cc',
256 'public/bindings/lib/message_builder.h',
257 ],
258 },
259 {
260 'target_name': 'mojo_bindings_test',
261 'type': 'executable',
262 'include_dirs': [
263 '..'
264 ],
265 'dependencies': [
266 'mojo_bindings',
267 ],
268 'sources': [
[email protected]80b94a32013-10-29 20:12:16269 'public/bindings/sample/generated/sample_bar.cc',
270 'public/bindings/sample/generated/sample_bar.h',
271 'public/bindings/sample/generated/sample_bar_serialization.cc',
272 'public/bindings/sample/generated/sample_bar_serialization.h',
273 'public/bindings/sample/generated/sample_foo.cc',
274 'public/bindings/sample/generated/sample_foo.h',
275 'public/bindings/sample/generated/sample_foo_serialization.cc',
276 'public/bindings/sample/generated/sample_foo_serialization.h',
[email protected]6838e3c2013-10-11 20:16:22277 'public/bindings/sample/generated/sample_service.h',
278 'public/bindings/sample/generated/sample_service_proxy.cc',
[email protected]80b94a32013-10-29 20:12:16279 'public/bindings/sample/generated/sample_service_serialization.cc',
[email protected]6838e3c2013-10-11 20:16:22280 'public/bindings/sample/generated/sample_service_serialization.h',
281 'public/bindings/sample/generated/sample_service_stub.cc',
282 'public/bindings/sample/sample_test.cc',
283 ],
284 },
[email protected]ab900db2013-10-31 21:03:40285 {
286 'target_name': 'native_viewport',
287 'type': 'static_library',
288 'dependencies': [
289 '../base/base.gyp:base',
[email protected]1cd36682013-11-03 05:25:00290 '../gpu/gpu.gyp:command_buffer_service',
291 '../gpu/gpu.gyp:gles2_implementation',
292 '../ui/events/events.gyp:events',
[email protected]ab900db2013-10-31 21:03:40293 '../ui/gfx/gfx.gyp:gfx',
[email protected]ab900db2013-10-31 21:03:40294 ],
295 'sources': [
[email protected]29ccd8e2013-11-01 16:44:56296 'services/native_viewport/android/mojo_viewport.cc',
297 'services/native_viewport/android/mojo_viewport.h',
[email protected]ab900db2013-10-31 21:03:40298 'services/native_viewport/native_viewport.h',
299 'services/native_viewport/native_viewport_android.cc',
300 'services/native_viewport/native_viewport_controller.cc',
301 'services/native_viewport/native_viewport_controller.h',
302 'services/native_viewport/native_viewport_stub.cc',
303 'services/native_viewport/native_viewport_win.cc',
304 'services/native_viewport/native_viewport_x11.cc',
305 ],
306 'conditions': [
307 ['OS=="win" or OS=="android" or OS=="linux"', {
308 'sources!': [
309 'services/native_viewport/native_viewport_stub.cc',
310 ],
[email protected]29ccd8e2013-11-01 16:44:56311 }],
312 ['OS=="android"', {
313 'dependencies': [
314 'mojo_jni_headers',
315 ],
316 }],
[email protected]ab900db2013-10-31 21:03:40317 ],
318 },
[email protected]02657da2013-09-16 02:55:18319 ],
[email protected]786d75c2013-10-24 20:29:35320 'conditions': [
321 ['OS=="android"', {
322 'targets': [
323 {
[email protected]29ccd8e2013-11-01 16:44:56324 'target_name': 'native_viewport_java',
325 'type': 'none',
326 'dependencies': [
327 '../base/base.gyp:base_java',
328 ],
329 'variables': {
330 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
331 },
332 'includes': [ '../build/java.gypi' ],
333 },
334 {
[email protected]adeb6f72013-10-25 08:05:02335 'target_name': 'java_set_jni_headers',
336 'type': 'none',
337 'variables': {
338 'jni_gen_package': 'mojo',
339 'input_java_class': 'java/util/HashSet.class',
340 },
341 'includes': [ '../build/jar_file_jni_generator.gypi' ],
342 },
343 {
344 'target_name': 'mojo_jni_headers',
345 'type': 'none',
346 'dependencies': [
347 'java_set_jni_headers',
348 ],
349 'direct_dependent_settings': {
350 'include_dirs': [
351 '<(SHARED_INTERMEDIATE_DIR)/mojo',
352 ],
353 },
354 'sources': [
[email protected]29ccd8e2013-11-01 16:44:56355 'services/native_viewport/android/src/org/chromium/mojo/MojoViewport.java',
[email protected]0be9b242013-10-28 06:28:38356 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
[email protected]adeb6f72013-10-25 08:05:02357 ],
358 'variables': {
359 'jni_gen_package': 'mojo'
360 },
361 'includes': [ '../build/jni_generator.gypi' ],
362 },
363 {
[email protected]786d75c2013-10-24 20:29:35364 'target_name': 'libmojo_shell',
365 'type': 'shared_library',
366 'dependencies': [
367 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02368 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46369 '../ui/gfx/gfx.gyp:gfx',
370 '../ui/gl/gl.gyp:gl',
[email protected]adeb6f72013-10-25 08:05:02371 'mojo_jni_headers',
[email protected]786d75c2013-10-24 20:29:35372 'mojo_shell_lib',
373 ],
374 'sources': [
375 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02376 'shell/android/mojo_main.cc',
377 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35378 ],
379 },
380 {
381 'target_name': 'mojo_shell_apk',
382 'type': 'none',
383 'dependencies': [
384 '../base/base.gyp:base_java',
385 '../net/net.gyp:net_java',
[email protected]29ccd8e2013-11-01 16:44:56386 'native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35387 'libmojo_shell',
388 ],
389 'variables': {
390 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38391 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
392 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35393 'native_lib_target': 'libmojo_shell',
394 },
395 'includes': [ '../build/java_apk.gypi' ],
396 }
397 ],
398 }],
399 ],
[email protected]02657da2013-09-16 02:55:18400}