blob: 72e6477a521f07a7457cd8365cf9bcd4e12551e2 [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': [
[email protected]cbf7e962013-11-07 20:35:5214 'mojo_common_lib',
15 'mojo_common_unittests',
[email protected]3d58663b2013-09-28 00:30:0416 'mojo_public_test_support',
17 'mojo_public_unittests',
18 'mojo_public_perftests',
19 'mojo_system',
20 'mojo_system_unittests',
[email protected]1c8951bc2013-11-07 06:42:1721 'mojo_shell_lib',
22 'mojo_shell',
[email protected]1c8951bc2013-11-07 06:42:1723 'mojo_utility',
[email protected]93830742013-11-08 12:17:2424 'mojo_js',
[email protected]1c8951bc2013-11-07 06:42:1725 'sample_app',
26 'mojo_bindings',
27 'mojo_bindings_test',
28 'native_viewport',
[email protected]3d58663b2013-09-28 00:30:0429 ],
30 },
31 {
32 'target_name': 'mojo_public_test_support',
33 'type': 'static_library',
34 'dependencies': [
35 '../base/base.gyp:base',
36 '../testing/gtest.gyp:gtest',
37 'mojo_system',
38 ],
39 'sources': [
[email protected]658b86b12013-11-06 21:23:2340 'public/tests/simple_bindings_support.cc',
41 'public/tests/simple_bindings_support.h',
[email protected]3d58663b2013-09-28 00:30:0442 'public/tests/test_support.cc',
43 'public/tests/test_support.h',
44 ],
45 },
46 {
[email protected]cbf7e962013-11-07 20:35:5247 'target_name': 'mojo_common_lib',
48 'type': '<(component)',
49 'defines': [
50 'MOJO_COMMON_IMPLEMENTATION',
51 ],
52 'dependencies': [
53 '../base/base.gyp:base',
54 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
55 'mojo_system',
56 ],
57 'sources': [
58 'common/handle_watcher.cc',
59 'common/handle_watcher.h',
60 'common/scoped_message_pipe.cc',
61 'common/scoped_message_pipe.h',
62 ],
63 'conditions': [
64 ['OS == "win"', {
65 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
66 'msvs_disabled_warnings': [
67 4267,
68 ],
69 }],
70 ],
71 },
72 {
73 'target_name': 'mojo_common_unittests',
74 'type': 'executable',
75 'dependencies': [
76 '../base/base.gyp:base',
77 '../base/base.gyp:run_all_unittests',
78 '../testing/gtest.gyp:gtest',
79 'mojo_common_lib',
80 'mojo_system',
81 ],
82 'sources': [
83 'common/handle_watcher_unittest.cc',
84 'common/test/run_all_unittests.cc',
85 ],
86 'conditions': [
87 ['OS == "win"', {
88 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
89 'msvs_disabled_warnings': [
90 4267,
91 ],
92 }],
93 ],
94 },
95 {
[email protected]3d58663b2013-09-28 00:30:0496 'target_name': 'mojo_public_unittests',
97 'type': 'executable',
98 'dependencies': [
99 '../base/base.gyp:run_all_unittests',
100 '../testing/gtest.gyp:gtest',
[email protected]658b86b12013-11-06 21:23:23101 'mojo_bindings',
[email protected]3d58663b2013-09-28 00:30:04102 'mojo_public_test_support',
103 'mojo_system',
104 ],
105 'sources': [
[email protected]658b86b12013-11-06 21:23:23106 'public/tests/bindings_connector_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04107 'public/tests/system_core_unittest.cc',
108 ],
109 },
110 {
111 'target_name': 'mojo_public_perftests',
112 'type': 'executable',
113 'dependencies': [
114 '../base/base.gyp:base',
115 '../base/base.gyp:test_support_perf',
116 '../testing/gtest.gyp:gtest',
117 'mojo_public_test_support',
118 'mojo_system',
119 ],
120 'sources': [
121 'public/tests/system_core_perftest.cc',
122 ],
123 },
124 {
125 'target_name': 'mojo_system',
[email protected]6cf6ca52013-10-10 20:52:11126 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:04127 'dependencies': [
128 '../base/base.gyp:base',
129 ],
[email protected]6cf6ca52013-10-10 20:52:11130 'defines': [
131 'MOJO_SYSTEM_IMPLEMENTATION',
132 ],
[email protected]3d58663b2013-09-28 00:30:04133 'sources': [
[email protected]ccf8453d2013-11-07 17:49:50134 'system/channel.cc',
135 'system/channel.h',
[email protected]3d58663b2013-09-28 00:30:04136 'system/core.cc',
137 'system/core_impl.cc',
138 'system/core_impl.h',
139 'system/dispatcher.cc',
140 'system/dispatcher.h',
141 'system/limits.h',
[email protected]989f8bc2013-10-16 00:24:37142 'system/local_message_pipe_endpoint.cc',
143 'system/local_message_pipe_endpoint.h',
[email protected]3d58663b2013-09-28 00:30:04144 'system/memory.cc',
145 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:34146 'system/message_in_transit.cc',
147 'system/message_in_transit.h',
[email protected]3d58663b2013-09-28 00:30:04148 'system/message_pipe.cc',
149 'system/message_pipe.h',
150 'system/message_pipe_dispatcher.cc',
151 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:37152 'system/message_pipe_endpoint.cc',
153 'system/message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:18154 'system/platform_channel_handle.h',
[email protected]ccf8453d2013-11-07 17:49:50155 'system/proxy_message_pipe_endpoint.cc',
156 'system/proxy_message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:18157 'system/raw_channel.h',
158 'system/raw_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50159 'system/raw_channel_win.cc',
[email protected]3d58663b2013-09-28 00:30:04160 'system/simple_dispatcher.cc',
161 'system/simple_dispatcher.h',
162 'system/waiter.cc',
163 'system/waiter.h',
164 'system/waiter_list.cc',
165 'system/waiter_list.h',
166 ],
167 'direct_dependent_settings': {
168 'include_dirs': [
169 '..',
170 ],
171 },
172 },
173 {
174 'target_name': 'mojo_system_unittests',
175 'type': 'executable',
176 'dependencies': [
177 '../base/base.gyp:run_all_unittests',
178 '../testing/gtest.gyp:gtest',
179 'mojo_system',
180 ],
181 'sources': [
182 'system/core_impl_unittest.cc',
183 'system/core_test_base.cc',
184 'system/core_test_base.h',
185 'system/dispatcher_unittest.cc',
186 'system/message_pipe_dispatcher_unittest.cc',
187 'system/message_pipe_unittest.cc',
[email protected]5a0d0062013-10-11 19:07:18188 'system/raw_channel_posix_unittest.cc',
[email protected]ccf8453d2013-11-07 17:49:50189 'system/remote_message_pipe_posix_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04190 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57191 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04192 'system/test_utils.h',
193 'system/waiter_list_unittest.cc',
194 'system/waiter_test_utils.cc',
195 'system/waiter_test_utils.h',
196 'system/waiter_unittest.cc',
197 ],
[email protected]02657da2013-09-16 02:55:18198 },
[email protected]6cf6ca52013-10-10 20:52:11199 {
[email protected]786d75c2013-10-24 20:29:35200 'target_name': 'mojo_shell_lib',
201 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11202 'dependencies': [
203 '../base/base.gyp:base',
[email protected]eba6f512013-10-19 00:17:09204 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08205 '../url/url.gyp:url_lib',
[email protected]6cf6ca52013-10-10 20:52:11206 'mojo_system',
[email protected]a8729cc2013-11-04 19:24:21207 'mojo_utility',
[email protected]ab900db2013-10-31 21:03:40208 'native_viewport',
[email protected]6cf6ca52013-10-10 20:52:11209 ],
210 'sources': [
211 'shell/app_container.cc',
212 'shell/app_container.h',
[email protected]6e50d5e42013-10-27 02:45:46213 'shell/context.cc',
214 'shell/context.h',
[email protected]0be9b242013-10-28 06:28:38215 'shell/loader.cc',
216 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30217 'shell/network_delegate.cc',
218 'shell/network_delegate.h',
[email protected]adeb6f72013-10-25 08:05:02219 'shell/run.cc',
220 'shell/run.h',
[email protected]eba6f512013-10-19 00:17:09221 'shell/storage.cc',
222 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11223 'shell/switches.cc',
224 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09225 'shell/task_runners.cc',
226 'shell/task_runners.h',
[email protected]0be9b242013-10-28 06:28:38227 'shell/url_request_context_getter.cc',
228 'shell/url_request_context_getter.h',
[email protected]6cf6ca52013-10-10 20:52:11229 ],
[email protected]6838e3c2013-10-11 20:16:22230 'conditions': [
231 ['OS == "win"', {
232 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
233 'msvs_disabled_warnings': [
234 4267,
235 ],
236 }],
237 ],
[email protected]6cf6ca52013-10-10 20:52:11238 },
239 {
[email protected]786d75c2013-10-24 20:29:35240 'target_name': 'mojo_shell',
241 'type': 'executable',
242 'dependencies': [
243 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02244 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35245 '../url/url.gyp:url_lib',
246 'mojo_shell_lib',
247 'mojo_system',
248 ],
249 'sources': [
[email protected]adeb6f72013-10-25 08:05:02250 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35251 ],
252 'conditions': [
253 ['OS == "win"', {
254 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
255 'msvs_disabled_warnings': [
256 4267,
257 ],
258 }],
259 ],
260 },
261 {
[email protected]a8729cc2013-11-04 19:24:21262 'target_name': 'mojo_utility',
263 'type': 'static_library',
264 'dependencies': [
265 'mojo_system'
266 ],
267 'sources': [
268 'public/utility/scoped_handle.cc',
269 'public/utility/scoped_handle.h',
270 ],
271 },
272 {
[email protected]93830742013-11-08 12:17:24273 'target_name': 'mojo_js',
274 'type': 'shared_library',
275 'include_dirs': [
276 '..'
277 ],
278 'dependencies': [
279 '../v8/tools/gyp/v8.gyp:v8',
280 ],
281 'sources': [
282 'apps/js/main.cc',
283 'apps/js/v8_environment.cc',
284 'apps/js/v8_environment.h',
285 ],
286 },
287 {
[email protected]6cf6ca52013-10-10 20:52:11288 'target_name': 'sample_app',
[email protected]e5fc9bff2013-10-27 09:48:47289 'type': 'shared_library',
[email protected]6cf6ca52013-10-10 20:52:11290 'dependencies': [
[email protected]f7374ed2013-11-06 18:44:18291 '../ui/gl/gl.gyp:gl',
[email protected]6cf6ca52013-10-10 20:52:11292 'mojo_system',
293 ],
294 'sources': [
[email protected]0be9b242013-10-28 06:28:38295 'examples/sample_app/sample_app.cc',
[email protected]f7374ed2013-11-06 18:44:18296 'examples/sample_app/spinning_cube.cc',
297 'examples/sample_app/spinning_cube.h',
[email protected]6cf6ca52013-10-10 20:52:11298 ],
299 },
[email protected]6838e3c2013-10-11 20:16:22300 {
301 'target_name': 'mojo_bindings',
302 'type': 'static_library',
303 'include_dirs': [
304 '..'
305 ],
306 'sources': [
307 'public/bindings/lib/bindings.h',
308 'public/bindings/lib/bindings_internal.h',
309 'public/bindings/lib/bindings_serialization.cc',
310 'public/bindings/lib/bindings_serialization.h',
[email protected]658b86b12013-11-06 21:23:23311 'public/bindings/lib/bindings_support.cc',
312 'public/bindings/lib/bindings_support.h',
[email protected]6838e3c2013-10-11 20:16:22313 'public/bindings/lib/buffer.cc',
314 'public/bindings/lib/buffer.h',
[email protected]658b86b12013-11-06 21:23:23315 'public/bindings/lib/connector.cc',
316 'public/bindings/lib/connector.h',
[email protected]6838e3c2013-10-11 20:16:22317 'public/bindings/lib/message.cc',
318 'public/bindings/lib/message.h',
319 'public/bindings/lib/message_builder.cc',
320 'public/bindings/lib/message_builder.h',
[email protected]658b86b12013-11-06 21:23:23321 'public/bindings/lib/message_queue.cc',
322 'public/bindings/lib/message_queue.h',
[email protected]6838e3c2013-10-11 20:16:22323 ],
324 },
325 {
326 'target_name': 'mojo_bindings_test',
327 'type': 'executable',
328 'include_dirs': [
329 '..'
330 ],
331 'dependencies': [
332 'mojo_bindings',
333 ],
334 'sources': [
[email protected]cbf932bb2013-11-06 17:31:32335 'public/bindings/sample/generated/sample_service.cc',
[email protected]6838e3c2013-10-11 20:16:22336 'public/bindings/sample/generated/sample_service.h',
[email protected]cbf932bb2013-11-06 17:31:32337 'public/bindings/sample/generated/sample_service_internal.h',
[email protected]6838e3c2013-10-11 20:16:22338 'public/bindings/sample/sample_test.cc',
339 ],
340 },
[email protected]ab900db2013-10-31 21:03:40341 {
342 'target_name': 'native_viewport',
343 'type': 'static_library',
344 'dependencies': [
345 '../base/base.gyp:base',
[email protected]1cd36682013-11-03 05:25:00346 '../gpu/gpu.gyp:command_buffer_service',
347 '../gpu/gpu.gyp:gles2_implementation',
348 '../ui/events/events.gyp:events',
[email protected]ab900db2013-10-31 21:03:40349 '../ui/gfx/gfx.gyp:gfx',
[email protected]988e5eb2013-11-06 06:01:47350 '../ui/gl/gl.gyp:gl',
[email protected]ab900db2013-10-31 21:03:40351 ],
352 'sources': [
[email protected]29ccd8e2013-11-01 16:44:56353 'services/native_viewport/android/mojo_viewport.cc',
354 'services/native_viewport/android/mojo_viewport.h',
[email protected]ab900db2013-10-31 21:03:40355 'services/native_viewport/native_viewport.h',
356 'services/native_viewport/native_viewport_android.cc',
357 'services/native_viewport/native_viewport_controller.cc',
358 'services/native_viewport/native_viewport_controller.h',
[email protected]988e5eb2013-11-06 06:01:47359 'services/native_viewport/native_viewport_mac.mm',
[email protected]ab900db2013-10-31 21:03:40360 'services/native_viewport/native_viewport_stub.cc',
361 'services/native_viewport/native_viewport_win.cc',
362 'services/native_viewport/native_viewport_x11.cc',
363 ],
364 'conditions': [
[email protected]988e5eb2013-11-06 06:01:47365 ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
[email protected]ab900db2013-10-31 21:03:40366 'sources!': [
367 'services/native_viewport/native_viewport_stub.cc',
368 ],
[email protected]29ccd8e2013-11-01 16:44:56369 }],
370 ['OS=="android"', {
371 'dependencies': [
372 'mojo_jni_headers',
373 ],
374 }],
[email protected]ab900db2013-10-31 21:03:40375 ],
376 },
[email protected]02657da2013-09-16 02:55:18377 ],
[email protected]786d75c2013-10-24 20:29:35378 'conditions': [
379 ['OS=="android"', {
380 'targets': [
381 {
[email protected]29ccd8e2013-11-01 16:44:56382 'target_name': 'native_viewport_java',
383 'type': 'none',
384 'dependencies': [
385 '../base/base.gyp:base_java',
386 ],
387 'variables': {
388 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
389 },
390 'includes': [ '../build/java.gypi' ],
391 },
392 {
[email protected]adeb6f72013-10-25 08:05:02393 'target_name': 'java_set_jni_headers',
394 'type': 'none',
395 'variables': {
396 'jni_gen_package': 'mojo',
397 'input_java_class': 'java/util/HashSet.class',
398 },
399 'includes': [ '../build/jar_file_jni_generator.gypi' ],
400 },
401 {
402 'target_name': 'mojo_jni_headers',
403 'type': 'none',
404 'dependencies': [
405 'java_set_jni_headers',
406 ],
407 'direct_dependent_settings': {
408 'include_dirs': [
409 '<(SHARED_INTERMEDIATE_DIR)/mojo',
410 ],
411 },
412 'sources': [
[email protected]29ccd8e2013-11-01 16:44:56413 'services/native_viewport/android/src/org/chromium/mojo/MojoViewport.java',
[email protected]0be9b242013-10-28 06:28:38414 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
[email protected]adeb6f72013-10-25 08:05:02415 ],
416 'variables': {
417 'jni_gen_package': 'mojo'
418 },
419 'includes': [ '../build/jni_generator.gypi' ],
420 },
421 {
[email protected]786d75c2013-10-24 20:29:35422 'target_name': 'libmojo_shell',
423 'type': 'shared_library',
424 'dependencies': [
425 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02426 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46427 '../ui/gfx/gfx.gyp:gfx',
428 '../ui/gl/gl.gyp:gl',
[email protected]adeb6f72013-10-25 08:05:02429 'mojo_jni_headers',
[email protected]786d75c2013-10-24 20:29:35430 'mojo_shell_lib',
431 ],
432 'sources': [
433 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02434 'shell/android/mojo_main.cc',
435 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35436 ],
437 },
438 {
439 'target_name': 'mojo_shell_apk',
440 'type': 'none',
441 'dependencies': [
442 '../base/base.gyp:base_java',
443 '../net/net.gyp:net_java',
[email protected]29ccd8e2013-11-01 16:44:56444 'native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35445 'libmojo_shell',
446 ],
447 'variables': {
448 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38449 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
450 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35451 'native_lib_target': 'libmojo_shell',
452 },
453 'includes': [ '../build/java_apk.gypi' ],
454 }
455 ],
456 }],
457 ],
[email protected]02657da2013-09-16 02:55:18458}