blob: 5f5a0851e9a17ffa3e71d8028fcb22ec9eee1ca3 [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{
[email protected]f02343052014-01-14 14:43:566 'target_defaults': {
7 'conditions': [
8 ['mojo_shell_debug_url != ""', {
9 'defines': [
10 'MOJO_SHELL_DEBUG=1',
11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
12 ],
13 }],
14 ],
15 },
[email protected]02657da2013-09-16 02:55:1816 'variables': {
[email protected]3d58663b2013-09-28 00:30:0417 'chromium_code': 1,
[email protected]f02343052014-01-14 14:43:5618 'mojo_shell_debug_url%': "",
[email protected]02657da2013-09-16 02:55:1819 },
[email protected]3cf4aad2013-12-01 17:27:2520 'includes': [
[email protected]de3d0b02013-12-03 23:18:2521 'mojo_apps.gypi',
[email protected]3cf4aad2013-12-01 17:27:2522 'mojo_examples.gypi',
23 'mojo_public.gypi',
24 'mojo_services.gypi',
25 ],
[email protected]02657da2013-09-16 02:55:1826 'targets': [
27 {
28 'target_name': 'mojo',
29 'type': 'none',
[email protected]3d58663b2013-09-28 00:30:0430 'dependencies': [
[email protected]8de52462014-03-11 15:48:3931 'mojo_apps_js_unittests',
[email protected]4b1172e2014-01-15 22:26:3132 'mojo_compositor_app',
[email protected]cbf7e962013-11-07 20:35:5233 'mojo_common_lib',
34 'mojo_common_unittests',
[email protected]9a1526b2014-04-30 05:27:0635 'mojo_cpp_bindings',
[email protected]93830742013-11-08 12:17:2436 'mojo_js',
[email protected]9a1526b2014-04-30 05:27:0637 'mojo_js_bindings',
[email protected]de3d0b02013-12-03 23:18:2538 'mojo_js_unittests',
[email protected]15429ab2014-04-04 00:43:2239 'mojo_message_generator',
[email protected]3a734732014-04-15 03:14:2540 'mojo_native_viewport_service',
[email protected]6bcc45b2014-03-22 04:11:1241 'mojo_pepper_container_app',
[email protected]6eb908a2014-02-13 17:54:5442 'mojo_public_test_utils',
[email protected]0b438a62014-01-12 06:19:0343 'mojo_public_bindings_unittests',
[email protected]0d37563e2014-01-14 16:27:5144 'mojo_public_environment_unittests',
[email protected]0b438a62014-01-12 06:19:0345 'mojo_public_system_perftests',
46 'mojo_public_system_unittests',
47 'mojo_public_utility_unittests',
[email protected]67f839c92013-12-11 03:26:4048 'mojo_sample_app',
[email protected]fadab2eb2014-02-27 23:41:3449 'mojo_service_manager',
50 'mojo_service_manager_unittests',
[email protected]b4aef952013-11-26 23:25:4551 'mojo_shell',
52 'mojo_shell_lib',
53 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:4754 'mojo_system_impl',
[email protected]b4aef952013-11-26 23:25:4555 'mojo_system_unittests',
[email protected]273e2172013-12-10 07:24:1656 'mojo_utility',
[email protected]3d58663b2013-09-28 00:30:0457 ],
[email protected]331e4db2014-01-07 21:46:0458 'conditions': [
59 ['use_aura==1', {
60 'dependencies': [
61 'mojo_aura_demo',
[email protected]bddb2842014-01-27 22:38:1962 'mojo_launcher',
[email protected]d0012d1f2014-04-22 21:58:1063 'mojo_sample_view_manager_app',
[email protected]1fd496142014-01-29 05:16:0264 'mojo_view_manager',
[email protected]36c2077c2014-04-23 22:36:0365 'mojo_view_manager_unittests',
[email protected]331e4db2014-01-07 21:46:0466 ],
67 }],
[email protected]70c03642014-04-23 16:02:3268 ['OS == "android"', {
69 'dependencies': [
70 'mojo_public_java',
71 'mojo_system_java',
72 'libmojo_system_java',
73 'mojo_test_apk',
74 ],
75 }],
[email protected]331e4db2014-01-07 21:46:0476 ]
[email protected]3d58663b2013-09-28 00:30:0477 },
78 {
[email protected]65eedf72014-04-28 11:53:1679 'target_name': 'mojo_external_service_bindings',
80 'type': 'static_library',
81 'sources': [
82 'shell/external_service.mojom',
83 ],
84 'variables': {
85 'mojom_base_output_dir': 'mojo',
86 },
87 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
88 'export_dependent_settings': [
[email protected]9a1526b2014-04-30 05:27:0689 'mojo_cpp_bindings',
[email protected]65eedf72014-04-28 11:53:1690 ],
91 'dependencies': [
[email protected]9a1526b2014-04-30 05:27:0692 'mojo_cpp_bindings',
[email protected]65eedf72014-04-28 11:53:1693 ],
94 },
95 {
[email protected]4b4068d2013-11-11 21:12:0396 'target_name': 'mojo_run_all_unittests',
97 'type': 'static_library',
98 'dependencies': [
99 '../base/base.gyp:base',
100 '../base/base.gyp:test_support_base',
[email protected]d16a5b42013-12-03 17:47:24101 '../testing/gtest.gyp:gtest',
[email protected]5fd29c12013-12-10 07:13:47102 'mojo_system_impl',
[email protected]1477ef4c2014-02-13 20:40:53103 'mojo_test_support',
104 'mojo_test_support_impl',
[email protected]4b4068d2013-11-11 21:12:03105 ],
106 'sources': [
107 'common/test/run_all_unittests.cc',
108 ],
109 },
110 {
[email protected]5f8471fb2013-11-26 23:07:24111 'target_name': 'mojo_run_all_perftests',
112 'type': 'static_library',
113 'dependencies': [
114 '../base/base.gyp:test_support_base',
[email protected]5fd29c12013-12-10 07:13:47115 'mojo_system_impl',
[email protected]1477ef4c2014-02-13 20:40:53116 'mojo_test_support',
117 'mojo_test_support_impl',
[email protected]5f8471fb2013-11-26 23:07:24118 ],
119 'sources': [
120 'common/test/run_all_perftests.cc',
121 ],
122 },
123 {
[email protected]5fd29c12013-12-10 07:13:47124 'target_name': 'mojo_system_impl',
[email protected]6cf6ca52013-10-10 20:52:11125 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:04126 'dependencies': [
127 '../base/base.gyp:base',
[email protected]44992e72014-03-04 07:44:13128 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]3d58663b2013-09-28 00:30:04129 ],
[email protected]6cf6ca52013-10-10 20:52:11130 'defines': [
[email protected]5fd29c12013-12-10 07:13:47131 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
[email protected]3a734732014-04-15 03:14:25132 'MOJO_SYSTEM_IMPLEMENTATION',
133 'MOJO_USE_SYSTEM_IMPL',
[email protected]6cf6ca52013-10-10 20:52:11134 ],
[email protected]3d58663b2013-09-28 00:30:04135 'sources': [
[email protected]f13fe442014-03-19 00:05:26136 'embedder/embedder.cc',
137 'embedder/embedder.h',
138 'embedder/platform_channel_pair.cc',
139 'embedder/platform_channel_pair.h',
140 'embedder/platform_channel_pair_posix.cc',
141 'embedder/platform_channel_pair_win.cc',
[email protected]d4698f42014-04-05 08:30:23142 'embedder/platform_channel_utils_posix.cc',
143 'embedder/platform_channel_utils_posix.h',
[email protected]f13fe442014-03-19 00:05:26144 'embedder/platform_handle.cc',
145 'embedder/platform_handle.h',
146 'embedder/scoped_platform_handle.h',
[email protected]ccf8453d2013-11-07 17:49:50147 'system/channel.cc',
148 'system/channel.h',
[email protected]32446982013-12-16 20:58:48149 'system/constants.h',
[email protected]3a734732014-04-15 03:14:25150 'system/core.cc',
151 'system/core.h',
[email protected]82d1954d2013-12-13 22:23:19152 'system/data_pipe.cc',
153 'system/data_pipe.h',
[email protected]ae3d3572013-12-14 00:00:53154 'system/data_pipe_consumer_dispatcher.cc',
155 'system/data_pipe_consumer_dispatcher.h',
[email protected]82d1954d2013-12-13 22:23:19156 'system/data_pipe_producer_dispatcher.cc',
157 'system/data_pipe_producer_dispatcher.h',
[email protected]3d58663b2013-09-28 00:30:04158 'system/dispatcher.cc',
159 'system/dispatcher.h',
[email protected]3a734732014-04-15 03:14:25160 'system/entrypoints.cc',
[email protected]3f623282014-03-31 02:07:46161 'system/handle_table.cc',
162 'system/handle_table.h',
[email protected]00798012013-12-16 20:39:30163 'system/local_data_pipe.cc',
164 'system/local_data_pipe.h',
[email protected]989f8bc2013-10-16 00:24:37165 'system/local_message_pipe_endpoint.cc',
166 'system/local_message_pipe_endpoint.h',
[email protected]cfa16b3412014-04-01 11:20:12167 'system/mapping_table.cc',
168 'system/mapping_table.h',
[email protected]3d58663b2013-09-28 00:30:04169 'system/memory.cc',
170 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:34171 'system/message_in_transit.cc',
172 'system/message_in_transit.h',
[email protected]311a9a12014-03-03 23:17:23173 'system/message_in_transit_queue.cc',
174 'system/message_in_transit_queue.h',
[email protected]3d58663b2013-09-28 00:30:04175 'system/message_pipe.cc',
176 'system/message_pipe.h',
177 'system/message_pipe_dispatcher.cc',
178 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:37179 'system/message_pipe_endpoint.cc',
180 'system/message_pipe_endpoint.h',
[email protected]ccf8453d2013-11-07 17:49:50181 'system/proxy_message_pipe_endpoint.cc',
182 'system/proxy_message_pipe_endpoint.h',
[email protected]497626502014-02-27 18:13:25183 'system/raw_channel.cc',
[email protected]5a0d0062013-10-11 19:07:18184 'system/raw_channel.h',
185 'system/raw_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50186 'system/raw_channel_win.cc',
[email protected]ac1df702014-03-21 20:45:27187 'system/raw_shared_buffer.cc',
188 'system/raw_shared_buffer.h',
189 'system/raw_shared_buffer_posix.cc',
190 'system/raw_shared_buffer_win.cc',
[email protected]be7edee2014-03-22 07:01:52191 'system/shared_buffer_dispatcher.cc',
192 'system/shared_buffer_dispatcher.h',
[email protected]3d58663b2013-09-28 00:30:04193 'system/simple_dispatcher.cc',
194 'system/simple_dispatcher.h',
[email protected]68d3f6b2014-05-03 03:40:21195 'system/transport_data.cc',
196 'system/transport_data.h',
[email protected]3d58663b2013-09-28 00:30:04197 'system/waiter.cc',
198 'system/waiter.h',
199 'system/waiter_list.cc',
200 'system/waiter_list.h',
[email protected]8579fe02014-01-16 23:51:10201 # Test-only code:
202 # TODO(vtl): It's a little unfortunate that these end up in the same
203 # component as non-test-only code. In the static build, this code should
204 # hopefully be dead-stripped.
[email protected]f13fe442014-03-19 00:05:26205 'embedder/test_embedder.cc',
206 'embedder/test_embedder.h',
[email protected]3d58663b2013-09-28 00:30:04207 ],
[email protected]3a734732014-04-15 03:14:25208 'all_dependent_settings': {
209 # Ensures that dependent projects import the core functions on Windows.
210 'defines': ['MOJO_USE_SYSTEM_IMPL'],
211 }
[email protected]3d58663b2013-09-28 00:30:04212 },
213 {
214 'target_name': 'mojo_system_unittests',
215 'type': 'executable',
216 'dependencies': [
[email protected]3a734732014-04-15 03:14:25217 '../base/base.gyp:base',
[email protected]3d58663b2013-09-28 00:30:04218 '../base/base.gyp:run_all_unittests',
219 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02220 'mojo_common_test_support',
[email protected]5fd29c12013-12-10 07:13:47221 'mojo_system_impl',
[email protected]3d58663b2013-09-28 00:30:04222 ],
223 'sources': [
[email protected]f13fe442014-03-19 00:05:26224 'embedder/embedder_unittest.cc',
[email protected]9e1d94922014-03-25 18:51:56225 'embedder/platform_channel_pair_posix_unittest.cc',
[email protected]c1531f52014-04-25 15:19:32226 'system/channel_unittest.cc',
[email protected]3a734732014-04-15 03:14:25227 'system/core_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04228 'system/core_test_base.cc',
229 'system/core_test_base.h',
[email protected]92fb7f42013-12-17 22:38:30230 'system/data_pipe_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04231 'system/dispatcher_unittest.cc',
[email protected]92fb7f42013-12-17 22:38:30232 'system/local_data_pipe_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04233 'system/message_pipe_dispatcher_unittest.cc',
234 'system/message_pipe_unittest.cc',
[email protected]1ad40142013-12-12 13:20:02235 'system/multiprocess_message_pipe_unittest.cc',
[email protected]44992e72014-03-04 07:44:13236 'system/raw_channel_unittest.cc',
[email protected]ac1df702014-03-21 20:45:27237 'system/raw_shared_buffer_unittest.cc',
[email protected]f764b25b2014-03-06 10:31:47238 'system/remote_message_pipe_unittest.cc',
[email protected]40063092014-03-24 22:46:09239 'system/shared_buffer_dispatcher_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04240 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57241 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04242 'system/test_utils.h',
243 'system/waiter_list_unittest.cc',
244 'system/waiter_test_utils.cc',
245 'system/waiter_test_utils.h',
246 'system/waiter_unittest.cc',
247 ],
[email protected]02657da2013-09-16 02:55:18248 },
[email protected]6cf6ca52013-10-10 20:52:11249 {
[email protected]826360a32014-01-22 22:19:27250 'target_name': 'mojo_gles2_impl',
[email protected]99e508a42013-12-04 01:15:09251 'type': '<(component)',
252 'dependencies': [
[email protected]826360a32014-01-22 22:19:27253 '../base/base.gyp:base',
254 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]68780862014-02-07 00:25:07255 '../gpu/gpu.gyp:command_buffer_client',
256 '../gpu/gpu.gyp:command_buffer_common',
257 '../gpu/gpu.gyp:gles2_cmd_helper',
258 '../gpu/gpu.gyp:gles2_implementation',
[email protected]826360a32014-01-22 22:19:27259 'mojo_gles2',
[email protected]c329ad72014-01-23 04:02:49260 'mojo_gles2_bindings',
261 'mojo_environment_chromium',
[email protected]3a734732014-04-15 03:14:25262 'mojo_system_impl',
[email protected]99e508a42013-12-04 01:15:09263 ],
264 'defines': [
[email protected]826360a32014-01-22 22:19:27265 'MOJO_GLES2_IMPL_IMPLEMENTATION',
[email protected]99e508a42013-12-04 01:15:09266 ],
267 'sources': [
[email protected]68780862014-02-07 00:25:07268 'gles2/command_buffer_client_impl.cc',
269 'gles2/command_buffer_client_impl.h',
[email protected]826360a32014-01-22 22:19:27270 'gles2/gles2_impl_export.h',
271 'gles2/gles2_support_impl.cc',
272 'gles2/gles2_support_impl.h',
[email protected]68780862014-02-07 00:25:07273 'gles2/gles2_context.cc',
274 'gles2/gles2_context.h',
[email protected]99e508a42013-12-04 01:15:09275 ],
276 },
277 {
[email protected]1477ef4c2014-02-13 20:40:53278 'target_name': 'mojo_test_support_impl',
279 'type': 'static_library',
280 'dependencies': [
281 '../base/base.gyp:base',
282 ],
283 'sources': [
284 'common/test/test_support_impl.cc',
285 'common/test/test_support_impl.h',
286 ],
287 },
288 {
[email protected]3cf4aad2013-12-01 17:27:25289 'target_name': 'mojo_common_lib',
290 'type': '<(component)',
291 'defines': [
292 'MOJO_COMMON_IMPLEMENTATION',
293 ],
294 'dependencies': [
295 '../base/base.gyp:base',
296 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]3a734732014-04-15 03:14:25297 'mojo_system_impl',
298 ],
299 'export_dependent_settings': [
300 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
301 'mojo_system_impl',
[email protected]3cf4aad2013-12-01 17:27:25302 ],
303 'sources': [
[email protected]f68c1462014-04-24 18:17:53304 'common/channel_init.cc',
305 'common/channel_init.h',
[email protected]2229d4252013-12-08 06:53:47306 'common/common_type_converters.cc',
307 'common/common_type_converters.h',
[email protected]26d8482f2014-04-02 03:39:59308 'common/environment_data.cc',
309 'common/environment_data.h',
[email protected]3cf4aad2013-12-01 17:27:25310 'common/handle_watcher.cc',
311 'common/handle_watcher.h',
312 'common/message_pump_mojo.cc',
313 'common/message_pump_mojo.h',
314 'common/message_pump_mojo_handler.h',
[email protected]433f7d82014-03-15 00:53:48315 'common/time_helper.cc',
316 'common/time_helper.h',
[email protected]3cf4aad2013-12-01 17:27:25317 ],
[email protected]3cf4aad2013-12-01 17:27:25318 },
319 {
[email protected]1ad40142013-12-12 13:20:02320 'target_name': 'mojo_common_test_support',
321 'type': 'static_library',
322 'dependencies': [
323 '../base/base.gyp:base',
324 '../base/base.gyp:test_support_base',
325 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02326 'mojo_system_impl',
327 ],
328 'sources': [
[email protected]3bc13792014-03-08 22:58:37329 'common/test/multiprocess_test_helper.cc',
330 'common/test/multiprocess_test_helper.h',
[email protected]b8e55f62014-02-22 21:01:54331 'common/test/test_utils.h',
332 'common/test/test_utils_posix.cc',
333 'common/test/test_utils_win.cc',
[email protected]1ad40142013-12-12 13:20:02334 ],
335 },
336 {
[email protected]3cf4aad2013-12-01 17:27:25337 'target_name': 'mojo_common_unittests',
338 'type': 'executable',
339 'dependencies': [
340 '../base/base.gyp:base',
341 '../base/base.gyp:base_message_loop_tests',
342 '../testing/gtest.gyp:gtest',
[email protected]9a1526b2014-04-30 05:27:06343 'mojo_cpp_bindings',
[email protected]0d37563e2014-01-14 16:27:51344 'mojo_environment_chromium',
[email protected]3cf4aad2013-12-01 17:27:25345 'mojo_common_lib',
[email protected]1ad40142013-12-12 13:20:02346 'mojo_common_test_support',
[email protected]6eb908a2014-02-13 17:54:54347 'mojo_public_test_utils',
[email protected]3cf4aad2013-12-01 17:27:25348 'mojo_run_all_unittests',
[email protected]3cf4aad2013-12-01 17:27:25349 ],
350 'sources': [
[email protected]2229d4252013-12-08 06:53:47351 'common/common_type_converters_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25352 'common/handle_watcher_unittest.cc',
353 'common/message_pump_mojo_unittest.cc',
[email protected]3bc13792014-03-08 22:58:37354 'common/test/multiprocess_test_helper_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25355 ],
[email protected]3cf4aad2013-12-01 17:27:25356 },
357 {
[email protected]0d37563e2014-01-14 16:27:51358 'target_name': 'mojo_environment_chromium',
359 'type': 'static_library',
360 'dependencies': [
[email protected]512e35e92014-04-08 17:35:55361 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51362 'mojo_environment_chromium_impl',
363 ],
364 'sources': [
365 'environment/default_async_waiter.cc',
366 'environment/buffer_tls.cc',
367 'environment/environment.cc',
368 ],
369 'include_dirs': [
370 '..',
371 ],
372 'export_dependent_settings': [
373 'mojo_environment_chromium_impl',
374 ],
375 },
376 {
377 'target_name': 'mojo_environment_chromium_impl',
378 'type': '<(component)',
379 'defines': [
380 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
381 ],
382 'dependencies': [
383 '../base/base.gyp:base',
384 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
385 'mojo_common_lib'
386 ],
387 'sources': [
388 'environment/default_async_waiter_impl.cc',
389 'environment/default_async_waiter_impl.h',
390 'environment/buffer_tls_impl.cc',
391 'environment/buffer_tls_impl.h',
392 ],
393 'include_dirs': [
394 '..',
395 ],
396 },
397 {
[email protected]fadab2eb2014-02-27 23:41:34398 'target_name': 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00399 'type': '<(component)',
400 'defines': [
401 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
402 ],
[email protected]fadab2eb2014-02-27 23:41:34403 'dependencies': [
404 '../base/base.gyp:base',
[email protected]d656e102014-03-04 18:29:48405 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]fadab2eb2014-02-27 23:41:34406 '../net/net.gyp:net',
407 '../url/url.gyp:url_lib',
[email protected]26d8482f2014-04-02 03:39:59408 'mojo_common_lib',
[email protected]5d90df52014-03-27 04:16:00409 'mojo_environment_chromium',
[email protected]fadab2eb2014-02-27 23:41:34410 'mojo_shell_bindings',
[email protected]3a734732014-04-15 03:14:25411 'mojo_system_impl',
[email protected]fadab2eb2014-02-27 23:41:34412 ],
413 'sources': [
[email protected]34c758b2014-05-06 09:10:00414 'service_manager/background_service_loader.cc',
415 'service_manager/background_service_loader.h',
[email protected]d656e102014-03-04 18:29:48416 'service_manager/service_loader.h',
[email protected]fadab2eb2014-02-27 23:41:34417 'service_manager/service_manager.cc',
418 'service_manager/service_manager.h',
[email protected]5d90df52014-03-27 04:16:00419 'service_manager/service_manager_export.h',
[email protected]fadab2eb2014-02-27 23:41:34420 ],
[email protected]d656e102014-03-04 18:29:48421 'export_dependent_settings': [
422 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]5d90df52014-03-27 04:16:00423 'mojo_shell_bindings',
[email protected]d656e102014-03-04 18:29:48424 ],
[email protected]fadab2eb2014-02-27 23:41:34425 },
426 {
[email protected]e2682412014-04-07 22:04:42427 'target_name': 'mojo_spy',
428 'type': 'static_library',
429 'dependencies': [
430 '../base/base.gyp:base',
431 '../base/base.gyp:base_static',
[email protected]dd6ca972014-04-30 08:07:50432 '../net/net.gyp:http_server',
[email protected]e2682412014-04-07 22:04:42433 '../url/url.gyp:url_lib',
434 'mojo_service_manager',
435 ],
436 'sources': [
437 'spy/spy.cc',
438 'spy/spy.h',
[email protected]dd6ca972014-04-30 08:07:50439 'spy/websocket_server.cc',
440 'spy/websocket_server.h',
[email protected]e2682412014-04-07 22:04:42441 ],
442 },
443 {
[email protected]786d75c2013-10-24 20:29:35444 'target_name': 'mojo_shell_lib',
445 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11446 'dependencies': [
447 '../base/base.gyp:base',
[email protected]57d12ab2014-03-14 15:06:55448 '../base/base.gyp:base_static',
[email protected]1124dea02014-04-29 19:31:23449 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]eba6f512013-10-19 00:17:09450 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08451 '../url/url.gyp:url_lib',
[email protected]65eedf72014-04-28 11:53:16452 'mojo_external_service_bindings',
[email protected]826360a32014-01-22 22:19:27453 'mojo_gles2_impl',
[email protected]cfda411c2014-03-21 17:51:28454 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00455 'mojo_shell_bindings',
[email protected]5fd29c12013-12-10 07:13:47456 'mojo_system_impl',
[email protected]2e5f3a02013-12-21 07:12:37457 'mojo_native_viewport_service',
[email protected]e2682412014-04-07 22:04:42458 'mojo_spy',
[email protected]6cf6ca52013-10-10 20:52:11459 ],
[email protected]69a0a132014-03-26 16:45:02460 'variables': {
461 'mojom_base_output_dir': 'mojo',
462 },
[email protected]352ed67c2014-04-04 21:11:21463 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
[email protected]6cf6ca52013-10-10 20:52:11464 'sources': [
[email protected]4e559292014-03-18 00:05:15465 'shell/app_child_process.cc',
466 'shell/app_child_process.h',
[email protected]5dcd57c32014-03-20 17:37:19467 'shell/app_child_process.mojom',
[email protected]4e559292014-03-18 00:05:15468 'shell/app_child_process_host.cc',
469 'shell/app_child_process_host.h',
[email protected]57d12ab2014-03-14 15:06:55470 'shell/child_process.cc',
471 'shell/child_process.h',
472 'shell/child_process_host.cc',
473 'shell/child_process_host.h',
[email protected]6e50d5e42013-10-27 02:45:46474 'shell/context.cc',
475 'shell/context.h',
[email protected]65eedf72014-04-28 11:53:16476 'shell/dbus_service_loader_linux.cc',
477 'shell/dbus_service_loader_linux.h',
[email protected]df47c492014-01-03 22:50:15478 'shell/dynamic_service_loader.cc',
479 'shell/dynamic_service_loader.h',
[email protected]e01f3a02014-03-15 00:57:43480 'shell/dynamic_service_runner.h',
[email protected]40932702013-11-20 22:29:30481 'shell/init.cc',
482 'shell/init.h',
[email protected]e01f3a02014-03-15 00:57:43483 'shell/in_process_dynamic_service_runner.cc',
484 'shell/in_process_dynamic_service_runner.h',
[email protected]dcd9a9cd2014-02-03 09:15:41485 'shell/keep_alive.cc',
486 'shell/keep_alive.h',
[email protected]0be9b242013-10-28 06:28:38487 'shell/loader.cc',
488 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30489 'shell/network_delegate.cc',
490 'shell/network_delegate.h',
[email protected]4e559292014-03-18 00:05:15491 'shell/out_of_process_dynamic_service_runner.cc',
492 'shell/out_of_process_dynamic_service_runner.h',
[email protected]adeb6f72013-10-25 08:05:02493 'shell/run.cc',
494 'shell/run.h',
[email protected]09d040f2013-12-20 20:44:59495 'shell/storage.cc',
496 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11497 'shell/switches.cc',
498 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09499 'shell/task_runners.cc',
500 'shell/task_runners.h',
[email protected]57d12ab2014-03-14 15:06:55501 'shell/test_child_process.cc',
502 'shell/test_child_process.h',
[email protected]0be9b242013-10-28 06:28:38503 'shell/url_request_context_getter.cc',
504 'shell/url_request_context_getter.h',
[email protected]6cf6ca52013-10-10 20:52:11505 ],
[email protected]65eedf72014-04-28 11:53:16506 'conditions': [
507 ['OS=="linux"', {
508 'dependencies': [
509 '../build/linux/system.gyp:dbus',
510 '../dbus/dbus.gyp:dbus',
511 ],
512 }],
[email protected]1124dea02014-04-29 19:31:23513 ['use_aura==1', {
514 'dependencies': [
515 # These are only necessary as long as we hard code use of ViewManager.
516 '../skia/skia.gyp:skia',
517 'mojo_shell_client',
518 'mojo_view_manager',
519 ],
520 }],
521 ],
522 },
523 {
524 'target_name': 'mojo_shell_test_support',
525 'type': 'static_library',
526 'dependencies': [
527 '../base/base.gyp:base',
528 '../base/base.gyp:base_static',
529 '../url/url.gyp:url_lib',
530 'mojo_service_manager',
531 'mojo_shell_lib',
532 'mojo_system_impl',
533 ],
534 'sources': [
535 'shell/shell_test_helper.cc',
536 'shell/shell_test_helper.h',
[email protected]65eedf72014-04-28 11:53:16537 ],
[email protected]6cf6ca52013-10-10 20:52:11538 },
539 {
[email protected]786d75c2013-10-24 20:29:35540 'target_name': 'mojo_shell',
541 'type': 'executable',
542 'dependencies': [
543 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02544 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35545 '../url/url.gyp:url_lib',
[email protected]c1e5c782013-11-12 05:10:07546 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51547 'mojo_environment_chromium',
[email protected]5d90df52014-03-27 04:16:00548 'mojo_service_manager',
[email protected]786d75c2013-10-24 20:29:35549 'mojo_shell_lib',
[email protected]5fd29c12013-12-10 07:13:47550 'mojo_system_impl',
[email protected]786d75c2013-10-24 20:29:35551 ],
552 'sources': [
[email protected]adeb6f72013-10-25 08:05:02553 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35554 ],
[email protected]786d75c2013-10-24 20:29:35555 },
[email protected]df47c492014-01-03 22:50:15556 {
[email protected]fadab2eb2014-02-27 23:41:34557 'target_name': 'mojo_service_manager_unittests',
[email protected]df47c492014-01-03 22:50:15558 'type': 'executable',
559 'dependencies': [
560 '../base/base.gyp:base',
561 '../testing/gtest.gyp:gtest',
[email protected]5d90df52014-03-27 04:16:00562 '../url/url.gyp:url_lib',
[email protected]26d8482f2014-04-02 03:39:59563 'mojo_common_lib',
[email protected]9a1526b2014-04-30 05:27:06564 'mojo_cpp_bindings',
[email protected]5d90df52014-03-27 04:16:00565 'mojo_environment_chromium',
[email protected]df47c492014-01-03 22:50:15566 'mojo_run_all_unittests',
[email protected]fadab2eb2014-02-27 23:41:34567 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00568 'mojo_shell_client',
[email protected]df47c492014-01-03 22:50:15569 ],
[email protected]69a0a132014-03-26 16:45:02570 'variables': {
571 'mojom_base_output_dir': 'mojo',
572 },
[email protected]352ed67c2014-04-04 21:11:21573 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
[email protected]df47c492014-01-03 22:50:15574 'sources': [
[email protected]fadab2eb2014-02-27 23:41:34575 'service_manager/service_manager_unittest.cc',
576 'service_manager/test.mojom',
[email protected]df47c492014-01-03 22:50:15577 ],
578 },
[email protected]f8c8cc12014-03-07 23:48:32579 {
580 'target_name': 'mojo_js_bindings_lib',
581 'type': 'static_library',
582 'dependencies': [
583 '../base/base.gyp:base',
584 '../gin/gin.gyp:gin',
585 '../v8/tools/gyp/v8.gyp:v8',
586 'mojo_common_lib',
[email protected]f8c8cc12014-03-07 23:48:32587 ],
588 'export_dependent_settings': [
589 '../base/base.gyp:base',
590 '../gin/gin.gyp:gin',
591 'mojo_common_lib',
[email protected]f8c8cc12014-03-07 23:48:32592 ],
593 'sources': [
594 'bindings/js/core.cc',
595 'bindings/js/core.h',
596 'bindings/js/handle.cc',
597 'bindings/js/handle.h',
598 'bindings/js/support.cc',
599 'bindings/js/support.h',
[email protected]5a8150a2014-04-16 02:10:42600 'bindings/js/unicode.cc',
601 'bindings/js/unicode.h',
[email protected]f8c8cc12014-03-07 23:48:32602 'bindings/js/waiting_callback.cc',
603 'bindings/js/waiting_callback.h',
604 ],
605 },
[email protected]8de52462014-03-11 15:48:39606 {
607 'target_name': 'mojo_js_unittests',
608 'type': 'executable',
609 'dependencies': [
610 '../gin/gin.gyp:gin_test',
[email protected]a27695c22014-04-25 05:17:31611 'mojo_common_test_support',
[email protected]8de52462014-03-11 15:48:39612 'mojo_js_bindings_lib',
613 'mojo_run_all_unittests',
[email protected]e1e974b2014-04-16 02:05:57614 'mojo_public_test_interfaces',
[email protected]8de52462014-03-11 15:48:39615 ],
616 'sources': [
617 'bindings/js/run_js_tests.cc',
618 ],
619 },
[email protected]15429ab2014-04-04 00:43:22620 {
621 'target_name': 'mojo_message_generator',
622 'type': 'executable',
623 'dependencies': [
624 '../base/base.gyp:base',
625 '../testing/gtest.gyp:gtest',
[email protected]15429ab2014-04-04 00:43:22626 'mojo_common_lib',
[email protected]9a1526b2014-04-30 05:27:06627 'mojo_cpp_bindings',
[email protected]15429ab2014-04-04 00:43:22628 'mojo_environment_chromium',
[email protected]15429ab2014-04-04 00:43:22629 'mojo_system_impl',
630 ],
631 'sources': [
632 'tools/message_generator.cc',
633 ],
634 },
[email protected]78ecb7c2014-05-06 22:34:24635 {
636 'target_name': 'mojo_cc_support',
637 'type': 'static_library',
638 'dependencies': [
639 '../base/base.gyp:base',
640 '../cc/cc.gyp:cc',
641 '../skia/skia.gyp:skia',
642 '../gpu/gpu.gyp:gles2_implementation',
643 'mojo_gles2',
644 ],
645 'sources': [
646 'cc/context_provider_mojo.cc',
647 'cc/context_provider_mojo.h',
648 ],
649 },
[email protected]02657da2013-09-16 02:55:18650 ],
[email protected]786d75c2013-10-24 20:29:35651 'conditions': [
652 ['OS=="android"', {
653 'targets': [
654 {
[email protected]70c03642014-04-23 16:02:32655 'target_name': 'mojo_jni_headers',
656 'type': 'none',
657 'dependencies': [
658 'mojo_java_set_jni_headers',
659 ],
660 'sources': [
661 'android/javatests/src/org/chromium/mojo/system/CoreTest.java',
662 'android/system/src/org/chromium/mojo/system/CoreImpl.java',
663 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
664 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
665 ],
666 'variables': {
667 'jni_gen_package': 'mojo',
668 'jni_generator_ptr_type': 'long',
669 },
670 'includes': [ '../build/jni_generator.gypi' ],
671 },
672 {
673 'target_name': 'mojo_system_java',
674 'type': 'none',
675 'dependencies': [
676 '../base/base.gyp:base_java',
677 'mojo_public_java',
678 ],
679 'variables': {
680 'java_in_dir': '<(DEPTH)/mojo/android/system',
681 },
682 'includes': [ '../build/java.gypi' ],
683 },
684 {
685 'target_name': 'libmojo_system_java',
686 'type': 'static_library',
687 'dependencies': [
688 '../base/base.gyp:base',
689 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
690 'mojo_common_lib',
691 'mojo_environment_chromium',
692 'mojo_jni_headers',
693 'mojo_shell_bindings',
694 'mojo_shell_lib',
695 ],
696 'sources': [
697 'android/system/core_impl.cc',
698 'android/system/core_impl.h',
699 ],
700 },
701 {
702 'target_name': 'libmojo_java_unittest',
703 'type': 'shared_library',
704 'dependencies': [
705 '../base/base.gyp:base',
706 'libmojo_system_java',
707 'mojo_jni_headers',
708 ],
709 'sources': [
710 'android/javatests/core_test.cc',
711 'android/javatests/core_test.h',
712 'android/javatests/init_library.cc',
713 ],
714 },
715 {
716 'target_name': 'mojo_test_apk',
717 'type': 'none',
718 'dependencies': [
719 'mojo_system_java',
720 '../base/base.gyp:base_java_test_support',
721 ],
722 'variables': {
723 'apk_name': 'MojoTest',
724 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
725 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
726 'native_lib_target': 'libmojo_java_unittest',
727 'is_test_apk': 1,
[email protected]10955d32014-04-30 11:22:41728 # Given that this apk tests itself, it needs to bring emma with it
729 # when instrumented.
730 'conditions': [
731 ['emma_coverage != 0', {
732 'emma_instrument': 1,
733 }],
734 ],
[email protected]70c03642014-04-23 16:02:32735 },
736 'includes': [ '../build/java_apk.gypi' ],
737 },
738 {
[email protected]99e508a42013-12-04 01:15:09739 'target_name': 'mojo_native_viewport_java',
[email protected]29ccd8e2013-11-01 16:44:56740 'type': 'none',
741 'dependencies': [
742 '../base/base.gyp:base_java',
743 ],
744 'variables': {
745 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
746 },
747 'includes': [ '../build/java.gypi' ],
748 },
749 {
[email protected]67f839c92013-12-11 03:26:40750 'target_name': 'mojo_java_set_jni_headers',
[email protected]adeb6f72013-10-25 08:05:02751 'type': 'none',
752 'variables': {
753 'jni_gen_package': 'mojo',
[email protected]de857502014-01-10 15:08:04754 'jni_generator_ptr_type': 'long',
[email protected]adeb6f72013-10-25 08:05:02755 'input_java_class': 'java/util/HashSet.class',
756 },
757 'includes': [ '../build/jar_file_jni_generator.gypi' ],
758 },
759 {
[email protected]786d75c2013-10-24 20:29:35760 'target_name': 'libmojo_shell',
761 'type': 'shared_library',
762 'dependencies': [
763 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02764 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46765 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:15766 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]570c26d2013-10-30 04:07:46767 '../ui/gl/gl.gyp:gl',
[email protected]c1e5c782013-11-12 05:10:07768 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51769 'mojo_environment_chromium',
[email protected]adeb6f72013-10-25 08:05:02770 'mojo_jni_headers',
[email protected]09d040f2013-12-20 20:44:59771 'mojo_shell_bindings',
772 'mojo_shell_lib',
[email protected]786d75c2013-10-24 20:29:35773 ],
774 'sources': [
775 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02776 'shell/android/mojo_main.cc',
777 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35778 ],
779 },
780 {
781 'target_name': 'mojo_shell_apk',
782 'type': 'none',
783 'dependencies': [
784 '../base/base.gyp:base_java',
785 '../net/net.gyp:net_java',
[email protected]99e508a42013-12-04 01:15:09786 'mojo_native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35787 'libmojo_shell',
788 ],
789 'variables': {
790 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38791 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
792 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35793 'native_lib_target': 'libmojo_shell',
794 },
795 'includes': [ '../build/java_apk.gypi' ],
796 }
797 ],
798 }],
[email protected]8110218d2014-05-01 23:30:06799 ['OS=="linux"', {
800 'targets': [
801 {
802 'target_name': 'mojo_dbus_service',
803 'type': 'static_library',
804 'dependencies': [
805 '../base/base.gyp:base',
806 '../build/linux/system.gyp:dbus',
807 '../dbus/dbus.gyp:dbus',
808 'mojo_common_lib',
809 'mojo_external_service_bindings',
810 'mojo_shell_client',
811 'mojo_system_impl',
812 ],
813 'sources': [
814 'dbus/dbus_external_service.h',
815 'dbus/dbus_external_service.cc',
816 ],
817 },
818 ],
819 }],
[email protected]9eb072b62014-03-19 20:35:16820 ['test_isolation_mode != "noop"', {
821 'targets': [
822 {
823 'target_name': 'mojo_js_unittests_run',
824 'type': 'none',
825 'dependencies': [
826 'mojo_js_unittests',
827 ],
828 'includes': [
829 '../build/isolate.gypi',
830 'mojo_js_unittests.isolate',
831 ],
832 'sources': [
833 'mojo_js_unittests.isolate',
834 ],
835 },
836 ],
837 }],
[email protected]78ecb7c2014-05-06 22:34:24838 ['use_aura==1', {
839 'targets': [
840 {
841 'target_name': 'mojo_aura_support',
842 'type': 'static_library',
843 'dependencies': [
844 '../cc/cc.gyp:cc',
845 '../ui/aura/aura.gyp:aura',
846 '../ui/events/events.gyp:events',
847 '../ui/events/events.gyp:events_base',
848 '../ui/compositor/compositor.gyp:compositor',
849 '../ui/gl/gl.gyp:gl',
850 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
851 'mojo_cc_support',
852 'mojo_gles2',
853 'mojo_native_viewport_bindings',
854 ],
855 'sources': [
856 'aura/context_factory_mojo.cc',
857 'aura/context_factory_mojo.h',
858 'aura/screen_mojo.cc',
859 'aura/screen_mojo.h',
860 'aura/window_tree_host_mojo.cc',
861 'aura/window_tree_host_mojo.h',
862 ],
863 },
864 ],
865 }],
[email protected]786d75c2013-10-24 20:29:35866 ],
[email protected]02657da2013-09-16 02:55:18867}