blob: dbe1a61d9e63a3f60bb8d168f9bcf9ef78812604 [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',
[email protected]1c8951bc2013-11-07 06:42:1719 'mojo_shell_lib',
20 'mojo_shell',
21 'mojo_shell_unittests',
22 'mojo_utility',
23 'sample_app',
24 'mojo_bindings',
25 'mojo_bindings_test',
26 'native_viewport',
[email protected]3d58663b2013-09-28 00:30:0427 ],
28 },
29 {
30 'target_name': 'mojo_public_test_support',
31 'type': 'static_library',
32 'dependencies': [
33 '../base/base.gyp:base',
34 '../testing/gtest.gyp:gtest',
35 'mojo_system',
36 ],
37 'sources': [
[email protected]658b86b12013-11-06 21:23:2338 'public/tests/simple_bindings_support.cc',
39 'public/tests/simple_bindings_support.h',
[email protected]3d58663b2013-09-28 00:30:0440 'public/tests/test_support.cc',
41 'public/tests/test_support.h',
42 ],
43 },
44 {
45 'target_name': 'mojo_public_unittests',
46 'type': 'executable',
47 'dependencies': [
48 '../base/base.gyp:run_all_unittests',
49 '../testing/gtest.gyp:gtest',
[email protected]658b86b12013-11-06 21:23:2350 'mojo_bindings',
[email protected]3d58663b2013-09-28 00:30:0451 'mojo_public_test_support',
52 'mojo_system',
53 ],
54 'sources': [
[email protected]658b86b12013-11-06 21:23:2355 'public/tests/bindings_connector_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:0456 'public/tests/system_core_unittest.cc',
57 ],
58 },
59 {
60 'target_name': 'mojo_public_perftests',
61 'type': 'executable',
62 'dependencies': [
63 '../base/base.gyp:base',
64 '../base/base.gyp:test_support_perf',
65 '../testing/gtest.gyp:gtest',
66 'mojo_public_test_support',
67 'mojo_system',
68 ],
69 'sources': [
70 'public/tests/system_core_perftest.cc',
71 ],
72 },
73 {
74 'target_name': 'mojo_system',
[email protected]6cf6ca52013-10-10 20:52:1175 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:0476 'dependencies': [
77 '../base/base.gyp:base',
78 ],
[email protected]6cf6ca52013-10-10 20:52:1179 'defines': [
80 'MOJO_SYSTEM_IMPLEMENTATION',
81 ],
[email protected]3d58663b2013-09-28 00:30:0482 'sources': [
[email protected]ccf8453d2013-11-07 17:49:5083 'system/channel.cc',
84 'system/channel.h',
[email protected]3d58663b2013-09-28 00:30:0485 'system/core.cc',
86 'system/core_impl.cc',
87 'system/core_impl.h',
88 'system/dispatcher.cc',
89 'system/dispatcher.h',
90 'system/limits.h',
[email protected]989f8bc2013-10-16 00:24:3791 'system/local_message_pipe_endpoint.cc',
92 'system/local_message_pipe_endpoint.h',
[email protected]3d58663b2013-09-28 00:30:0493 'system/memory.cc',
94 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:3495 'system/message_in_transit.cc',
96 'system/message_in_transit.h',
[email protected]3d58663b2013-09-28 00:30:0497 'system/message_pipe.cc',
98 'system/message_pipe.h',
99 'system/message_pipe_dispatcher.cc',
100 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:37101 'system/message_pipe_endpoint.cc',
102 'system/message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:18103 'system/platform_channel_handle.h',
[email protected]ccf8453d2013-11-07 17:49:50104 'system/proxy_message_pipe_endpoint.cc',
105 'system/proxy_message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:18106 'system/raw_channel.h',
107 'system/raw_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50108 'system/raw_channel_win.cc',
[email protected]3d58663b2013-09-28 00:30:04109 'system/simple_dispatcher.cc',
110 'system/simple_dispatcher.h',
111 'system/waiter.cc',
112 'system/waiter.h',
113 'system/waiter_list.cc',
114 'system/waiter_list.h',
115 ],
116 'direct_dependent_settings': {
117 'include_dirs': [
118 '..',
119 ],
120 },
121 },
122 {
123 'target_name': 'mojo_system_unittests',
124 'type': 'executable',
125 'dependencies': [
126 '../base/base.gyp:run_all_unittests',
127 '../testing/gtest.gyp:gtest',
128 'mojo_system',
129 ],
130 'sources': [
131 'system/core_impl_unittest.cc',
132 'system/core_test_base.cc',
133 'system/core_test_base.h',
134 'system/dispatcher_unittest.cc',
135 'system/message_pipe_dispatcher_unittest.cc',
136 'system/message_pipe_unittest.cc',
[email protected]5a0d0062013-10-11 19:07:18137 'system/raw_channel_posix_unittest.cc',
[email protected]ccf8453d2013-11-07 17:49:50138 'system/remote_message_pipe_posix_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04139 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57140 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04141 'system/test_utils.h',
142 'system/waiter_list_unittest.cc',
143 'system/waiter_test_utils.cc',
144 'system/waiter_test_utils.h',
145 'system/waiter_unittest.cc',
146 ],
[email protected]02657da2013-09-16 02:55:18147 },
[email protected]6cf6ca52013-10-10 20:52:11148 {
[email protected]786d75c2013-10-24 20:29:35149 'target_name': 'mojo_shell_lib',
150 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11151 'dependencies': [
152 '../base/base.gyp:base',
[email protected]eba6f512013-10-19 00:17:09153 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08154 '../url/url.gyp:url_lib',
[email protected]6cf6ca52013-10-10 20:52:11155 'mojo_system',
[email protected]a8729cc2013-11-04 19:24:21156 'mojo_utility',
[email protected]ab900db2013-10-31 21:03:40157 'native_viewport',
[email protected]6cf6ca52013-10-10 20:52:11158 ],
159 'sources': [
160 'shell/app_container.cc',
161 'shell/app_container.h',
[email protected]6e50d5e42013-10-27 02:45:46162 'shell/context.cc',
163 'shell/context.h',
[email protected]03be76c2013-11-04 16:06:29164 'shell/handle_watcher.cc',
165 'shell/handle_watcher.h',
[email protected]0be9b242013-10-28 06:28:38166 'shell/loader.cc',
167 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30168 'shell/network_delegate.cc',
169 'shell/network_delegate.h',
[email protected]adeb6f72013-10-25 08:05:02170 'shell/run.cc',
171 'shell/run.h',
[email protected]03be76c2013-11-04 16:06:29172 'shell/scoped_message_pipe.cc',
173 'shell/scoped_message_pipe.h',
[email protected]eba6f512013-10-19 00:17:09174 'shell/storage.cc',
175 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11176 'shell/switches.cc',
177 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09178 'shell/task_runners.cc',
179 'shell/task_runners.h',
[email protected]0be9b242013-10-28 06:28:38180 'shell/url_request_context_getter.cc',
181 'shell/url_request_context_getter.h',
[email protected]6cf6ca52013-10-10 20:52:11182 ],
[email protected]6838e3c2013-10-11 20:16:22183 'conditions': [
184 ['OS == "win"', {
185 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
186 'msvs_disabled_warnings': [
187 4267,
188 ],
189 }],
190 ],
[email protected]6cf6ca52013-10-10 20:52:11191 },
192 {
[email protected]786d75c2013-10-24 20:29:35193 'target_name': 'mojo_shell',
194 'type': 'executable',
195 'dependencies': [
196 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02197 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35198 '../url/url.gyp:url_lib',
199 'mojo_shell_lib',
200 'mojo_system',
201 ],
202 'sources': [
[email protected]adeb6f72013-10-25 08:05:02203 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35204 ],
205 'conditions': [
206 ['OS == "win"', {
207 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
208 'msvs_disabled_warnings': [
209 4267,
210 ],
211 }],
212 ],
213 },
214 {
[email protected]03be76c2013-11-04 16:06:29215 'target_name': 'mojo_shell_unittests',
216 'type': 'executable',
217 'dependencies': [
218 '../base/base.gyp:base',
219 '../base/base.gyp:run_all_unittests',
220 '../testing/gtest.gyp:gtest',
221 'mojo_shell_lib',
222 'mojo_system',
223 ],
224 'sources': [
225 'shell/handle_watcher_unittest.cc',
226 'shell/test/run_all_unittests.cc',
227 ],
228 'conditions': [
229 ['OS == "win"', {
230 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
231 'msvs_disabled_warnings': [
232 4267,
233 ],
234 }],
235 ],
236 },
237 {
[email protected]a8729cc2013-11-04 19:24:21238 'target_name': 'mojo_utility',
239 'type': 'static_library',
240 'dependencies': [
241 'mojo_system'
242 ],
243 'sources': [
244 'public/utility/scoped_handle.cc',
245 'public/utility/scoped_handle.h',
246 ],
247 },
248 {
[email protected]6cf6ca52013-10-10 20:52:11249 'target_name': 'sample_app',
[email protected]e5fc9bff2013-10-27 09:48:47250 'type': 'shared_library',
[email protected]6cf6ca52013-10-10 20:52:11251 'dependencies': [
[email protected]f7374ed2013-11-06 18:44:18252 '../ui/gl/gl.gyp:gl',
[email protected]6cf6ca52013-10-10 20:52:11253 'mojo_system',
254 ],
255 'sources': [
[email protected]0be9b242013-10-28 06:28:38256 'examples/sample_app/sample_app.cc',
[email protected]f7374ed2013-11-06 18:44:18257 'examples/sample_app/spinning_cube.cc',
258 'examples/sample_app/spinning_cube.h',
[email protected]6cf6ca52013-10-10 20:52:11259 ],
260 },
[email protected]6838e3c2013-10-11 20:16:22261 {
262 'target_name': 'mojo_bindings',
263 'type': 'static_library',
264 'include_dirs': [
265 '..'
266 ],
267 'sources': [
268 'public/bindings/lib/bindings.h',
269 'public/bindings/lib/bindings_internal.h',
270 'public/bindings/lib/bindings_serialization.cc',
271 'public/bindings/lib/bindings_serialization.h',
[email protected]658b86b12013-11-06 21:23:23272 'public/bindings/lib/bindings_support.cc',
273 'public/bindings/lib/bindings_support.h',
[email protected]6838e3c2013-10-11 20:16:22274 'public/bindings/lib/buffer.cc',
275 'public/bindings/lib/buffer.h',
[email protected]658b86b12013-11-06 21:23:23276 'public/bindings/lib/connector.cc',
277 'public/bindings/lib/connector.h',
[email protected]6838e3c2013-10-11 20:16:22278 'public/bindings/lib/message.cc',
279 'public/bindings/lib/message.h',
280 'public/bindings/lib/message_builder.cc',
281 'public/bindings/lib/message_builder.h',
[email protected]658b86b12013-11-06 21:23:23282 'public/bindings/lib/message_queue.cc',
283 'public/bindings/lib/message_queue.h',
[email protected]6838e3c2013-10-11 20:16:22284 ],
285 },
286 {
287 'target_name': 'mojo_bindings_test',
288 'type': 'executable',
289 'include_dirs': [
290 '..'
291 ],
292 'dependencies': [
293 'mojo_bindings',
294 ],
295 'sources': [
[email protected]cbf932bb2013-11-06 17:31:32296 'public/bindings/sample/generated/sample_service.cc',
[email protected]6838e3c2013-10-11 20:16:22297 'public/bindings/sample/generated/sample_service.h',
[email protected]cbf932bb2013-11-06 17:31:32298 'public/bindings/sample/generated/sample_service_internal.h',
[email protected]6838e3c2013-10-11 20:16:22299 'public/bindings/sample/sample_test.cc',
300 ],
301 },
[email protected]ab900db2013-10-31 21:03:40302 {
303 'target_name': 'native_viewport',
304 'type': 'static_library',
305 'dependencies': [
306 '../base/base.gyp:base',
[email protected]1cd36682013-11-03 05:25:00307 '../gpu/gpu.gyp:command_buffer_service',
308 '../gpu/gpu.gyp:gles2_implementation',
309 '../ui/events/events.gyp:events',
[email protected]ab900db2013-10-31 21:03:40310 '../ui/gfx/gfx.gyp:gfx',
[email protected]988e5eb2013-11-06 06:01:47311 '../ui/gl/gl.gyp:gl',
[email protected]ab900db2013-10-31 21:03:40312 ],
313 'sources': [
[email protected]29ccd8e2013-11-01 16:44:56314 'services/native_viewport/android/mojo_viewport.cc',
315 'services/native_viewport/android/mojo_viewport.h',
[email protected]ab900db2013-10-31 21:03:40316 'services/native_viewport/native_viewport.h',
317 'services/native_viewport/native_viewport_android.cc',
318 'services/native_viewport/native_viewport_controller.cc',
319 'services/native_viewport/native_viewport_controller.h',
[email protected]988e5eb2013-11-06 06:01:47320 'services/native_viewport/native_viewport_mac.mm',
[email protected]ab900db2013-10-31 21:03:40321 'services/native_viewport/native_viewport_stub.cc',
322 'services/native_viewport/native_viewport_win.cc',
323 'services/native_viewport/native_viewport_x11.cc',
324 ],
325 'conditions': [
[email protected]988e5eb2013-11-06 06:01:47326 ['OS=="win" or OS=="android" or OS=="linux" or OS=="mac"', {
[email protected]ab900db2013-10-31 21:03:40327 'sources!': [
328 'services/native_viewport/native_viewport_stub.cc',
329 ],
[email protected]29ccd8e2013-11-01 16:44:56330 }],
331 ['OS=="android"', {
332 'dependencies': [
333 'mojo_jni_headers',
334 ],
335 }],
[email protected]ab900db2013-10-31 21:03:40336 ],
337 },
[email protected]02657da2013-09-16 02:55:18338 ],
[email protected]786d75c2013-10-24 20:29:35339 'conditions': [
340 ['OS=="android"', {
341 'targets': [
342 {
[email protected]29ccd8e2013-11-01 16:44:56343 'target_name': 'native_viewport_java',
344 'type': 'none',
345 'dependencies': [
346 '../base/base.gyp:base_java',
347 ],
348 'variables': {
349 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
350 },
351 'includes': [ '../build/java.gypi' ],
352 },
353 {
[email protected]adeb6f72013-10-25 08:05:02354 'target_name': 'java_set_jni_headers',
355 'type': 'none',
356 'variables': {
357 'jni_gen_package': 'mojo',
358 'input_java_class': 'java/util/HashSet.class',
359 },
360 'includes': [ '../build/jar_file_jni_generator.gypi' ],
361 },
362 {
363 'target_name': 'mojo_jni_headers',
364 'type': 'none',
365 'dependencies': [
366 'java_set_jni_headers',
367 ],
368 'direct_dependent_settings': {
369 'include_dirs': [
370 '<(SHARED_INTERMEDIATE_DIR)/mojo',
371 ],
372 },
373 'sources': [
[email protected]29ccd8e2013-11-01 16:44:56374 'services/native_viewport/android/src/org/chromium/mojo/MojoViewport.java',
[email protected]0be9b242013-10-28 06:28:38375 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
[email protected]adeb6f72013-10-25 08:05:02376 ],
377 'variables': {
378 'jni_gen_package': 'mojo'
379 },
380 'includes': [ '../build/jni_generator.gypi' ],
381 },
382 {
[email protected]786d75c2013-10-24 20:29:35383 'target_name': 'libmojo_shell',
384 'type': 'shared_library',
385 'dependencies': [
386 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02387 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46388 '../ui/gfx/gfx.gyp:gfx',
389 '../ui/gl/gl.gyp:gl',
[email protected]adeb6f72013-10-25 08:05:02390 'mojo_jni_headers',
[email protected]786d75c2013-10-24 20:29:35391 'mojo_shell_lib',
392 ],
393 'sources': [
394 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02395 'shell/android/mojo_main.cc',
396 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35397 ],
398 },
399 {
400 'target_name': 'mojo_shell_apk',
401 'type': 'none',
402 'dependencies': [
403 '../base/base.gyp:base_java',
404 '../net/net.gyp:net_java',
[email protected]29ccd8e2013-11-01 16:44:56405 'native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35406 'libmojo_shell',
407 ],
408 'variables': {
409 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38410 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
411 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35412 'native_lib_target': 'libmojo_shell',
413 },
414 'includes': [ '../build/java_apk.gypi' ],
415 }
416 ],
417 }],
418 ],
[email protected]02657da2013-09-16 02:55:18419}