blob: 8eea5476c8576cdb1fd01749b9521025f5b71b9a [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]9b9ec2f2014-05-07 17:17:1557 'mojo_view_manager_lib',
58 'mojo_view_manager_lib_unittests',
[email protected]3d58663b2013-09-28 00:30:0459 ],
[email protected]331e4db2014-01-07 21:46:0460 'conditions': [
61 ['use_aura==1', {
62 'dependencies': [
63 'mojo_aura_demo',
[email protected]bddb2842014-01-27 22:38:1964 'mojo_launcher',
[email protected]d0012d1f2014-04-22 21:58:1065 'mojo_sample_view_manager_app',
[email protected]1fd496142014-01-29 05:16:0266 'mojo_view_manager',
[email protected]36c2077c2014-04-23 22:36:0367 'mojo_view_manager_unittests',
[email protected]331e4db2014-01-07 21:46:0468 ],
69 }],
[email protected]70c03642014-04-23 16:02:3270 ['OS == "android"', {
71 'dependencies': [
72 'mojo_public_java',
73 'mojo_system_java',
74 'libmojo_system_java',
75 'mojo_test_apk',
76 ],
77 }],
[email protected]331e4db2014-01-07 21:46:0478 ]
[email protected]3d58663b2013-09-28 00:30:0479 },
80 {
[email protected]65eedf72014-04-28 11:53:1681 'target_name': 'mojo_external_service_bindings',
82 'type': 'static_library',
83 'sources': [
84 'shell/external_service.mojom',
85 ],
86 'variables': {
87 'mojom_base_output_dir': 'mojo',
88 },
89 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
90 'export_dependent_settings': [
[email protected]9a1526b2014-04-30 05:27:0691 'mojo_cpp_bindings',
[email protected]65eedf72014-04-28 11:53:1692 ],
93 'dependencies': [
[email protected]9a1526b2014-04-30 05:27:0694 'mojo_cpp_bindings',
[email protected]65eedf72014-04-28 11:53:1695 ],
96 },
97 {
[email protected]4b4068d2013-11-11 21:12:0398 'target_name': 'mojo_run_all_unittests',
99 'type': 'static_library',
100 'dependencies': [
101 '../base/base.gyp:base',
102 '../base/base.gyp:test_support_base',
[email protected]d16a5b42013-12-03 17:47:24103 '../testing/gtest.gyp:gtest',
[email protected]5fd29c12013-12-10 07:13:47104 'mojo_system_impl',
[email protected]1477ef4c2014-02-13 20:40:53105 'mojo_test_support',
106 'mojo_test_support_impl',
[email protected]4b4068d2013-11-11 21:12:03107 ],
108 'sources': [
109 'common/test/run_all_unittests.cc',
110 ],
111 },
112 {
[email protected]5f8471fb2013-11-26 23:07:24113 'target_name': 'mojo_run_all_perftests',
114 'type': 'static_library',
115 'dependencies': [
116 '../base/base.gyp:test_support_base',
[email protected]5fd29c12013-12-10 07:13:47117 'mojo_system_impl',
[email protected]1477ef4c2014-02-13 20:40:53118 'mojo_test_support',
119 'mojo_test_support_impl',
[email protected]5f8471fb2013-11-26 23:07:24120 ],
121 'sources': [
122 'common/test/run_all_perftests.cc',
123 ],
124 },
125 {
[email protected]5fd29c12013-12-10 07:13:47126 'target_name': 'mojo_system_impl',
[email protected]6cf6ca52013-10-10 20:52:11127 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:04128 'dependencies': [
129 '../base/base.gyp:base',
[email protected]44992e72014-03-04 07:44:13130 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]3d58663b2013-09-28 00:30:04131 ],
[email protected]6cf6ca52013-10-10 20:52:11132 'defines': [
[email protected]5fd29c12013-12-10 07:13:47133 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
[email protected]3a734732014-04-15 03:14:25134 'MOJO_SYSTEM_IMPLEMENTATION',
135 'MOJO_USE_SYSTEM_IMPL',
[email protected]6cf6ca52013-10-10 20:52:11136 ],
[email protected]3d58663b2013-09-28 00:30:04137 'sources': [
[email protected]f13fe442014-03-19 00:05:26138 'embedder/embedder.cc',
139 'embedder/embedder.h',
140 'embedder/platform_channel_pair.cc',
141 'embedder/platform_channel_pair.h',
142 'embedder/platform_channel_pair_posix.cc',
143 'embedder/platform_channel_pair_win.cc',
[email protected]d4698f42014-04-05 08:30:23144 'embedder/platform_channel_utils_posix.cc',
145 'embedder/platform_channel_utils_posix.h',
[email protected]f13fe442014-03-19 00:05:26146 'embedder/platform_handle.cc',
147 'embedder/platform_handle.h',
148 'embedder/scoped_platform_handle.h',
[email protected]ccf8453d2013-11-07 17:49:50149 'system/channel.cc',
150 'system/channel.h',
[email protected]32446982013-12-16 20:58:48151 'system/constants.h',
[email protected]3a734732014-04-15 03:14:25152 'system/core.cc',
153 'system/core.h',
[email protected]82d1954d2013-12-13 22:23:19154 'system/data_pipe.cc',
155 'system/data_pipe.h',
[email protected]ae3d3572013-12-14 00:00:53156 'system/data_pipe_consumer_dispatcher.cc',
157 'system/data_pipe_consumer_dispatcher.h',
[email protected]82d1954d2013-12-13 22:23:19158 'system/data_pipe_producer_dispatcher.cc',
159 'system/data_pipe_producer_dispatcher.h',
[email protected]3d58663b2013-09-28 00:30:04160 'system/dispatcher.cc',
161 'system/dispatcher.h',
[email protected]3a734732014-04-15 03:14:25162 'system/entrypoints.cc',
[email protected]3f623282014-03-31 02:07:46163 'system/handle_table.cc',
164 'system/handle_table.h',
[email protected]00798012013-12-16 20:39:30165 'system/local_data_pipe.cc',
166 'system/local_data_pipe.h',
[email protected]989f8bc2013-10-16 00:24:37167 'system/local_message_pipe_endpoint.cc',
168 'system/local_message_pipe_endpoint.h',
[email protected]cfa16b3412014-04-01 11:20:12169 'system/mapping_table.cc',
170 'system/mapping_table.h',
[email protected]3d58663b2013-09-28 00:30:04171 'system/memory.cc',
172 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:34173 'system/message_in_transit.cc',
174 'system/message_in_transit.h',
[email protected]311a9a12014-03-03 23:17:23175 'system/message_in_transit_queue.cc',
176 'system/message_in_transit_queue.h',
[email protected]3d58663b2013-09-28 00:30:04177 'system/message_pipe.cc',
178 'system/message_pipe.h',
179 'system/message_pipe_dispatcher.cc',
180 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:37181 'system/message_pipe_endpoint.cc',
182 'system/message_pipe_endpoint.h',
[email protected]ccf8453d2013-11-07 17:49:50183 'system/proxy_message_pipe_endpoint.cc',
184 'system/proxy_message_pipe_endpoint.h',
[email protected]497626502014-02-27 18:13:25185 'system/raw_channel.cc',
[email protected]5a0d0062013-10-11 19:07:18186 'system/raw_channel.h',
187 'system/raw_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50188 'system/raw_channel_win.cc',
[email protected]ac1df702014-03-21 20:45:27189 'system/raw_shared_buffer.cc',
190 'system/raw_shared_buffer.h',
191 'system/raw_shared_buffer_posix.cc',
192 'system/raw_shared_buffer_win.cc',
[email protected]be7edee2014-03-22 07:01:52193 'system/shared_buffer_dispatcher.cc',
194 'system/shared_buffer_dispatcher.h',
[email protected]3d58663b2013-09-28 00:30:04195 'system/simple_dispatcher.cc',
196 'system/simple_dispatcher.h',
[email protected]68d3f6b2014-05-03 03:40:21197 'system/transport_data.cc',
198 'system/transport_data.h',
[email protected]3d58663b2013-09-28 00:30:04199 'system/waiter.cc',
200 'system/waiter.h',
201 'system/waiter_list.cc',
202 'system/waiter_list.h',
[email protected]8579fe02014-01-16 23:51:10203 # Test-only code:
204 # TODO(vtl): It's a little unfortunate that these end up in the same
205 # component as non-test-only code. In the static build, this code should
206 # hopefully be dead-stripped.
[email protected]f13fe442014-03-19 00:05:26207 'embedder/test_embedder.cc',
208 'embedder/test_embedder.h',
[email protected]3d58663b2013-09-28 00:30:04209 ],
[email protected]3a734732014-04-15 03:14:25210 'all_dependent_settings': {
211 # Ensures that dependent projects import the core functions on Windows.
212 'defines': ['MOJO_USE_SYSTEM_IMPL'],
213 }
[email protected]3d58663b2013-09-28 00:30:04214 },
215 {
216 'target_name': 'mojo_system_unittests',
217 'type': 'executable',
218 'dependencies': [
[email protected]3a734732014-04-15 03:14:25219 '../base/base.gyp:base',
[email protected]3d58663b2013-09-28 00:30:04220 '../base/base.gyp:run_all_unittests',
221 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02222 'mojo_common_test_support',
[email protected]5fd29c12013-12-10 07:13:47223 'mojo_system_impl',
[email protected]3d58663b2013-09-28 00:30:04224 ],
225 'sources': [
[email protected]f13fe442014-03-19 00:05:26226 'embedder/embedder_unittest.cc',
[email protected]9e1d94922014-03-25 18:51:56227 'embedder/platform_channel_pair_posix_unittest.cc',
[email protected]c1531f52014-04-25 15:19:32228 'system/channel_unittest.cc',
[email protected]3a734732014-04-15 03:14:25229 'system/core_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04230 'system/core_test_base.cc',
231 'system/core_test_base.h',
[email protected]92fb7f42013-12-17 22:38:30232 'system/data_pipe_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04233 'system/dispatcher_unittest.cc',
[email protected]92fb7f42013-12-17 22:38:30234 'system/local_data_pipe_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04235 'system/message_pipe_dispatcher_unittest.cc',
236 'system/message_pipe_unittest.cc',
[email protected]1ad40142013-12-12 13:20:02237 'system/multiprocess_message_pipe_unittest.cc',
[email protected]44992e72014-03-04 07:44:13238 'system/raw_channel_unittest.cc',
[email protected]ac1df702014-03-21 20:45:27239 'system/raw_shared_buffer_unittest.cc',
[email protected]f764b25b2014-03-06 10:31:47240 'system/remote_message_pipe_unittest.cc',
[email protected]40063092014-03-24 22:46:09241 'system/shared_buffer_dispatcher_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04242 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57243 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04244 'system/test_utils.h',
245 'system/waiter_list_unittest.cc',
246 'system/waiter_test_utils.cc',
247 'system/waiter_test_utils.h',
248 'system/waiter_unittest.cc',
249 ],
[email protected]02657da2013-09-16 02:55:18250 },
[email protected]6cf6ca52013-10-10 20:52:11251 {
[email protected]826360a32014-01-22 22:19:27252 'target_name': 'mojo_gles2_impl',
[email protected]99e508a42013-12-04 01:15:09253 'type': '<(component)',
254 'dependencies': [
[email protected]826360a32014-01-22 22:19:27255 '../base/base.gyp:base',
256 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]68780862014-02-07 00:25:07257 '../gpu/gpu.gyp:command_buffer_client',
258 '../gpu/gpu.gyp:command_buffer_common',
259 '../gpu/gpu.gyp:gles2_cmd_helper',
260 '../gpu/gpu.gyp:gles2_implementation',
[email protected]826360a32014-01-22 22:19:27261 'mojo_gles2',
[email protected]c329ad72014-01-23 04:02:49262 'mojo_gles2_bindings',
263 'mojo_environment_chromium',
[email protected]3a734732014-04-15 03:14:25264 'mojo_system_impl',
[email protected]99e508a42013-12-04 01:15:09265 ],
266 'defines': [
[email protected]826360a32014-01-22 22:19:27267 'MOJO_GLES2_IMPL_IMPLEMENTATION',
[email protected]99e508a42013-12-04 01:15:09268 ],
269 'sources': [
[email protected]68780862014-02-07 00:25:07270 'gles2/command_buffer_client_impl.cc',
271 'gles2/command_buffer_client_impl.h',
[email protected]826360a32014-01-22 22:19:27272 'gles2/gles2_impl_export.h',
273 'gles2/gles2_support_impl.cc',
274 'gles2/gles2_support_impl.h',
[email protected]68780862014-02-07 00:25:07275 'gles2/gles2_context.cc',
276 'gles2/gles2_context.h',
[email protected]99e508a42013-12-04 01:15:09277 ],
278 },
279 {
[email protected]1477ef4c2014-02-13 20:40:53280 'target_name': 'mojo_test_support_impl',
281 'type': 'static_library',
282 'dependencies': [
283 '../base/base.gyp:base',
284 ],
285 'sources': [
286 'common/test/test_support_impl.cc',
287 'common/test/test_support_impl.h',
288 ],
289 },
290 {
[email protected]3cf4aad2013-12-01 17:27:25291 'target_name': 'mojo_common_lib',
292 'type': '<(component)',
293 'defines': [
294 'MOJO_COMMON_IMPLEMENTATION',
295 ],
296 'dependencies': [
297 '../base/base.gyp:base',
298 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]3a734732014-04-15 03:14:25299 'mojo_system_impl',
300 ],
301 'export_dependent_settings': [
302 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
303 'mojo_system_impl',
[email protected]3cf4aad2013-12-01 17:27:25304 ],
305 'sources': [
[email protected]f68c1462014-04-24 18:17:53306 'common/channel_init.cc',
307 'common/channel_init.h',
[email protected]2229d4252013-12-08 06:53:47308 'common/common_type_converters.cc',
309 'common/common_type_converters.h',
[email protected]26d8482f2014-04-02 03:39:59310 'common/environment_data.cc',
311 'common/environment_data.h',
[email protected]3cf4aad2013-12-01 17:27:25312 'common/handle_watcher.cc',
313 'common/handle_watcher.h',
314 'common/message_pump_mojo.cc',
315 'common/message_pump_mojo.h',
316 'common/message_pump_mojo_handler.h',
[email protected]433f7d82014-03-15 00:53:48317 'common/time_helper.cc',
318 'common/time_helper.h',
[email protected]3cf4aad2013-12-01 17:27:25319 ],
[email protected]3cf4aad2013-12-01 17:27:25320 },
321 {
[email protected]1ad40142013-12-12 13:20:02322 'target_name': 'mojo_common_test_support',
323 'type': 'static_library',
324 'dependencies': [
325 '../base/base.gyp:base',
326 '../base/base.gyp:test_support_base',
327 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02328 'mojo_system_impl',
329 ],
330 'sources': [
[email protected]3bc13792014-03-08 22:58:37331 'common/test/multiprocess_test_helper.cc',
332 'common/test/multiprocess_test_helper.h',
[email protected]b8e55f62014-02-22 21:01:54333 'common/test/test_utils.h',
334 'common/test/test_utils_posix.cc',
335 'common/test/test_utils_win.cc',
[email protected]1ad40142013-12-12 13:20:02336 ],
337 },
338 {
[email protected]3cf4aad2013-12-01 17:27:25339 'target_name': 'mojo_common_unittests',
340 'type': 'executable',
341 'dependencies': [
342 '../base/base.gyp:base',
343 '../base/base.gyp:base_message_loop_tests',
344 '../testing/gtest.gyp:gtest',
[email protected]9a1526b2014-04-30 05:27:06345 'mojo_cpp_bindings',
[email protected]0d37563e2014-01-14 16:27:51346 'mojo_environment_chromium',
[email protected]3cf4aad2013-12-01 17:27:25347 'mojo_common_lib',
[email protected]1ad40142013-12-12 13:20:02348 'mojo_common_test_support',
[email protected]6eb908a2014-02-13 17:54:54349 'mojo_public_test_utils',
[email protected]3cf4aad2013-12-01 17:27:25350 'mojo_run_all_unittests',
[email protected]3cf4aad2013-12-01 17:27:25351 ],
352 'sources': [
[email protected]2229d4252013-12-08 06:53:47353 'common/common_type_converters_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25354 'common/handle_watcher_unittest.cc',
355 'common/message_pump_mojo_unittest.cc',
[email protected]3bc13792014-03-08 22:58:37356 'common/test/multiprocess_test_helper_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25357 ],
[email protected]3cf4aad2013-12-01 17:27:25358 },
359 {
[email protected]0d37563e2014-01-14 16:27:51360 'target_name': 'mojo_environment_chromium',
361 'type': 'static_library',
362 'dependencies': [
[email protected]512e35e92014-04-08 17:35:55363 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51364 'mojo_environment_chromium_impl',
365 ],
366 'sources': [
367 'environment/default_async_waiter.cc',
368 'environment/buffer_tls.cc',
369 'environment/environment.cc',
370 ],
371 'include_dirs': [
372 '..',
373 ],
374 'export_dependent_settings': [
375 'mojo_environment_chromium_impl',
376 ],
377 },
378 {
379 'target_name': 'mojo_environment_chromium_impl',
380 'type': '<(component)',
381 'defines': [
382 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
383 ],
384 'dependencies': [
385 '../base/base.gyp:base',
386 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
387 'mojo_common_lib'
388 ],
389 'sources': [
390 'environment/default_async_waiter_impl.cc',
391 'environment/default_async_waiter_impl.h',
392 'environment/buffer_tls_impl.cc',
393 'environment/buffer_tls_impl.h',
394 ],
395 'include_dirs': [
396 '..',
397 ],
398 },
399 {
[email protected]fadab2eb2014-02-27 23:41:34400 'target_name': 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00401 'type': '<(component)',
402 'defines': [
403 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
404 ],
[email protected]fadab2eb2014-02-27 23:41:34405 'dependencies': [
406 '../base/base.gyp:base',
[email protected]d656e102014-03-04 18:29:48407 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]fadab2eb2014-02-27 23:41:34408 '../net/net.gyp:net',
409 '../url/url.gyp:url_lib',
[email protected]26d8482f2014-04-02 03:39:59410 'mojo_common_lib',
[email protected]5d90df52014-03-27 04:16:00411 'mojo_environment_chromium',
[email protected]fadab2eb2014-02-27 23:41:34412 'mojo_shell_bindings',
[email protected]3a734732014-04-15 03:14:25413 'mojo_system_impl',
[email protected]fadab2eb2014-02-27 23:41:34414 ],
415 'sources': [
[email protected]34c758b2014-05-06 09:10:00416 'service_manager/background_service_loader.cc',
417 'service_manager/background_service_loader.h',
[email protected]d656e102014-03-04 18:29:48418 'service_manager/service_loader.h',
[email protected]fadab2eb2014-02-27 23:41:34419 'service_manager/service_manager.cc',
420 'service_manager/service_manager.h',
[email protected]5d90df52014-03-27 04:16:00421 'service_manager/service_manager_export.h',
[email protected]fadab2eb2014-02-27 23:41:34422 ],
[email protected]d656e102014-03-04 18:29:48423 'export_dependent_settings': [
424 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]5d90df52014-03-27 04:16:00425 'mojo_shell_bindings',
[email protected]d656e102014-03-04 18:29:48426 ],
[email protected]fadab2eb2014-02-27 23:41:34427 },
428 {
[email protected]e2682412014-04-07 22:04:42429 'target_name': 'mojo_spy',
430 'type': 'static_library',
431 'dependencies': [
432 '../base/base.gyp:base',
433 '../base/base.gyp:base_static',
[email protected]dd6ca972014-04-30 08:07:50434 '../net/net.gyp:http_server',
[email protected]e2682412014-04-07 22:04:42435 '../url/url.gyp:url_lib',
436 'mojo_service_manager',
437 ],
438 'sources': [
439 'spy/spy.cc',
440 'spy/spy.h',
[email protected]dd6ca972014-04-30 08:07:50441 'spy/websocket_server.cc',
442 'spy/websocket_server.h',
[email protected]e2682412014-04-07 22:04:42443 ],
444 },
445 {
[email protected]786d75c2013-10-24 20:29:35446 'target_name': 'mojo_shell_lib',
447 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11448 'dependencies': [
449 '../base/base.gyp:base',
[email protected]57d12ab2014-03-14 15:06:55450 '../base/base.gyp:base_static',
[email protected]1124dea02014-04-29 19:31:23451 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]eba6f512013-10-19 00:17:09452 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08453 '../url/url.gyp:url_lib',
[email protected]65eedf72014-04-28 11:53:16454 'mojo_external_service_bindings',
[email protected]826360a32014-01-22 22:19:27455 'mojo_gles2_impl',
[email protected]cfda411c2014-03-21 17:51:28456 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00457 'mojo_shell_bindings',
[email protected]5fd29c12013-12-10 07:13:47458 'mojo_system_impl',
[email protected]2e5f3a02013-12-21 07:12:37459 'mojo_native_viewport_service',
[email protected]e2682412014-04-07 22:04:42460 'mojo_spy',
[email protected]6cf6ca52013-10-10 20:52:11461 ],
[email protected]69a0a132014-03-26 16:45:02462 'variables': {
463 'mojom_base_output_dir': 'mojo',
464 },
[email protected]352ed67c2014-04-04 21:11:21465 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
[email protected]6cf6ca52013-10-10 20:52:11466 'sources': [
[email protected]4e559292014-03-18 00:05:15467 'shell/app_child_process.cc',
468 'shell/app_child_process.h',
[email protected]5dcd57c32014-03-20 17:37:19469 'shell/app_child_process.mojom',
[email protected]4e559292014-03-18 00:05:15470 'shell/app_child_process_host.cc',
471 'shell/app_child_process_host.h',
[email protected]57d12ab2014-03-14 15:06:55472 'shell/child_process.cc',
473 'shell/child_process.h',
474 'shell/child_process_host.cc',
475 'shell/child_process_host.h',
[email protected]6e50d5e42013-10-27 02:45:46476 'shell/context.cc',
477 'shell/context.h',
[email protected]65eedf72014-04-28 11:53:16478 'shell/dbus_service_loader_linux.cc',
479 'shell/dbus_service_loader_linux.h',
[email protected]df47c492014-01-03 22:50:15480 'shell/dynamic_service_loader.cc',
481 'shell/dynamic_service_loader.h',
[email protected]e01f3a02014-03-15 00:57:43482 'shell/dynamic_service_runner.h',
[email protected]40932702013-11-20 22:29:30483 'shell/init.cc',
484 'shell/init.h',
[email protected]e01f3a02014-03-15 00:57:43485 'shell/in_process_dynamic_service_runner.cc',
486 'shell/in_process_dynamic_service_runner.h',
[email protected]dcd9a9cd2014-02-03 09:15:41487 'shell/keep_alive.cc',
488 'shell/keep_alive.h',
[email protected]0be9b242013-10-28 06:28:38489 'shell/loader.cc',
490 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30491 'shell/network_delegate.cc',
492 'shell/network_delegate.h',
[email protected]4e559292014-03-18 00:05:15493 'shell/out_of_process_dynamic_service_runner.cc',
494 'shell/out_of_process_dynamic_service_runner.h',
[email protected]adeb6f72013-10-25 08:05:02495 'shell/run.cc',
496 'shell/run.h',
[email protected]09d040f2013-12-20 20:44:59497 'shell/storage.cc',
498 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11499 'shell/switches.cc',
500 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09501 'shell/task_runners.cc',
502 'shell/task_runners.h',
[email protected]57d12ab2014-03-14 15:06:55503 'shell/test_child_process.cc',
504 'shell/test_child_process.h',
[email protected]0be9b242013-10-28 06:28:38505 'shell/url_request_context_getter.cc',
506 'shell/url_request_context_getter.h',
[email protected]08f1c5972014-05-09 16:26:06507 'shell/view_manager_loader.cc',
508 'shell/view_manager_loader.h',
[email protected]6cf6ca52013-10-10 20:52:11509 ],
[email protected]65eedf72014-04-28 11:53:16510 'conditions': [
511 ['OS=="linux"', {
512 'dependencies': [
513 '../build/linux/system.gyp:dbus',
514 '../dbus/dbus.gyp:dbus',
515 ],
516 }],
[email protected]1124dea02014-04-29 19:31:23517 ['use_aura==1', {
518 'dependencies': [
519 # These are only necessary as long as we hard code use of ViewManager.
520 '../skia/skia.gyp:skia',
[email protected]08f1c5972014-05-09 16:26:06521 'mojo_gles2',
[email protected]1124dea02014-04-29 19:31:23522 'mojo_shell_client',
523 'mojo_view_manager',
524 ],
[email protected]08f1c5972014-05-09 16:26:06525 }, { # use_aura==0
526 'sources!': [
527 'shell/view_manager_loader.cc',
528 'shell/view_manager_loader.h',
529 ],
[email protected]1124dea02014-04-29 19:31:23530 }],
531 ],
532 },
533 {
534 'target_name': 'mojo_shell_test_support',
535 'type': 'static_library',
536 'dependencies': [
537 '../base/base.gyp:base',
538 '../base/base.gyp:base_static',
539 '../url/url.gyp:url_lib',
540 'mojo_service_manager',
541 'mojo_shell_lib',
542 'mojo_system_impl',
543 ],
544 'sources': [
545 'shell/shell_test_helper.cc',
546 'shell/shell_test_helper.h',
[email protected]65eedf72014-04-28 11:53:16547 ],
[email protected]6cf6ca52013-10-10 20:52:11548 },
549 {
[email protected]786d75c2013-10-24 20:29:35550 'target_name': 'mojo_shell',
551 'type': 'executable',
552 'dependencies': [
553 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02554 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35555 '../url/url.gyp:url_lib',
[email protected]c1e5c782013-11-12 05:10:07556 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51557 'mojo_environment_chromium',
[email protected]5d90df52014-03-27 04:16:00558 'mojo_service_manager',
[email protected]786d75c2013-10-24 20:29:35559 'mojo_shell_lib',
[email protected]5fd29c12013-12-10 07:13:47560 'mojo_system_impl',
[email protected]786d75c2013-10-24 20:29:35561 ],
562 'sources': [
[email protected]adeb6f72013-10-25 08:05:02563 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35564 ],
[email protected]786d75c2013-10-24 20:29:35565 },
[email protected]df47c492014-01-03 22:50:15566 {
[email protected]fadab2eb2014-02-27 23:41:34567 'target_name': 'mojo_service_manager_unittests',
[email protected]df47c492014-01-03 22:50:15568 'type': 'executable',
569 'dependencies': [
570 '../base/base.gyp:base',
571 '../testing/gtest.gyp:gtest',
[email protected]5d90df52014-03-27 04:16:00572 '../url/url.gyp:url_lib',
[email protected]26d8482f2014-04-02 03:39:59573 'mojo_common_lib',
[email protected]9a1526b2014-04-30 05:27:06574 'mojo_cpp_bindings',
[email protected]5d90df52014-03-27 04:16:00575 'mojo_environment_chromium',
[email protected]df47c492014-01-03 22:50:15576 'mojo_run_all_unittests',
[email protected]fadab2eb2014-02-27 23:41:34577 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00578 'mojo_shell_client',
[email protected]df47c492014-01-03 22:50:15579 ],
[email protected]69a0a132014-03-26 16:45:02580 'variables': {
581 'mojom_base_output_dir': 'mojo',
582 },
[email protected]352ed67c2014-04-04 21:11:21583 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
[email protected]df47c492014-01-03 22:50:15584 'sources': [
[email protected]fadab2eb2014-02-27 23:41:34585 'service_manager/service_manager_unittest.cc',
586 'service_manager/test.mojom',
[email protected]df47c492014-01-03 22:50:15587 ],
588 },
[email protected]f8c8cc12014-03-07 23:48:32589 {
590 'target_name': 'mojo_js_bindings_lib',
591 'type': 'static_library',
592 'dependencies': [
593 '../base/base.gyp:base',
594 '../gin/gin.gyp:gin',
595 '../v8/tools/gyp/v8.gyp:v8',
596 'mojo_common_lib',
[email protected]f8c8cc12014-03-07 23:48:32597 ],
598 'export_dependent_settings': [
599 '../base/base.gyp:base',
600 '../gin/gin.gyp:gin',
601 'mojo_common_lib',
[email protected]f8c8cc12014-03-07 23:48:32602 ],
603 'sources': [
604 'bindings/js/core.cc',
605 'bindings/js/core.h',
606 'bindings/js/handle.cc',
607 'bindings/js/handle.h',
608 'bindings/js/support.cc',
609 'bindings/js/support.h',
[email protected]5a8150a2014-04-16 02:10:42610 'bindings/js/unicode.cc',
611 'bindings/js/unicode.h',
[email protected]f8c8cc12014-03-07 23:48:32612 'bindings/js/waiting_callback.cc',
613 'bindings/js/waiting_callback.h',
614 ],
615 },
[email protected]8de52462014-03-11 15:48:39616 {
617 'target_name': 'mojo_js_unittests',
618 'type': 'executable',
619 'dependencies': [
620 '../gin/gin.gyp:gin_test',
[email protected]a27695c22014-04-25 05:17:31621 'mojo_common_test_support',
[email protected]8de52462014-03-11 15:48:39622 'mojo_js_bindings_lib',
623 'mojo_run_all_unittests',
[email protected]e1e974b2014-04-16 02:05:57624 'mojo_public_test_interfaces',
[email protected]8de52462014-03-11 15:48:39625 ],
626 'sources': [
627 'bindings/js/run_js_tests.cc',
628 ],
629 },
[email protected]15429ab2014-04-04 00:43:22630 {
631 'target_name': 'mojo_message_generator',
632 'type': 'executable',
633 'dependencies': [
634 '../base/base.gyp:base',
635 '../testing/gtest.gyp:gtest',
[email protected]15429ab2014-04-04 00:43:22636 'mojo_common_lib',
[email protected]9a1526b2014-04-30 05:27:06637 'mojo_cpp_bindings',
[email protected]15429ab2014-04-04 00:43:22638 'mojo_environment_chromium',
[email protected]15429ab2014-04-04 00:43:22639 'mojo_system_impl',
640 ],
641 'sources': [
642 'tools/message_generator.cc',
643 ],
644 },
[email protected]78ecb7c2014-05-06 22:34:24645 {
646 'target_name': 'mojo_cc_support',
647 'type': 'static_library',
648 'dependencies': [
649 '../base/base.gyp:base',
650 '../cc/cc.gyp:cc',
651 '../skia/skia.gyp:skia',
652 '../gpu/gpu.gyp:gles2_implementation',
653 'mojo_gles2',
654 ],
655 'sources': [
656 'cc/context_provider_mojo.cc',
657 'cc/context_provider_mojo.h',
658 ],
659 },
[email protected]02657da2013-09-16 02:55:18660 ],
[email protected]786d75c2013-10-24 20:29:35661 'conditions': [
662 ['OS=="android"', {
663 'targets': [
664 {
[email protected]70c03642014-04-23 16:02:32665 'target_name': 'mojo_jni_headers',
666 'type': 'none',
667 'dependencies': [
668 'mojo_java_set_jni_headers',
669 ],
670 'sources': [
671 'android/javatests/src/org/chromium/mojo/system/CoreTest.java',
672 'android/system/src/org/chromium/mojo/system/CoreImpl.java',
673 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
674 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
675 ],
676 'variables': {
677 'jni_gen_package': 'mojo',
678 'jni_generator_ptr_type': 'long',
679 },
680 'includes': [ '../build/jni_generator.gypi' ],
681 },
682 {
683 'target_name': 'mojo_system_java',
684 'type': 'none',
685 'dependencies': [
686 '../base/base.gyp:base_java',
687 'mojo_public_java',
688 ],
689 'variables': {
690 'java_in_dir': '<(DEPTH)/mojo/android/system',
691 },
692 'includes': [ '../build/java.gypi' ],
693 },
694 {
695 'target_name': 'libmojo_system_java',
696 'type': 'static_library',
697 'dependencies': [
698 '../base/base.gyp:base',
699 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
700 'mojo_common_lib',
701 'mojo_environment_chromium',
702 'mojo_jni_headers',
703 'mojo_shell_bindings',
704 'mojo_shell_lib',
705 ],
706 'sources': [
707 'android/system/core_impl.cc',
708 'android/system/core_impl.h',
709 ],
710 },
711 {
712 'target_name': 'libmojo_java_unittest',
713 'type': 'shared_library',
714 'dependencies': [
715 '../base/base.gyp:base',
716 'libmojo_system_java',
717 'mojo_jni_headers',
718 ],
719 'sources': [
720 'android/javatests/core_test.cc',
721 'android/javatests/core_test.h',
722 'android/javatests/init_library.cc',
723 ],
724 },
725 {
726 'target_name': 'mojo_test_apk',
727 'type': 'none',
728 'dependencies': [
729 'mojo_system_java',
730 '../base/base.gyp:base_java_test_support',
731 ],
732 'variables': {
733 'apk_name': 'MojoTest',
734 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
735 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
736 'native_lib_target': 'libmojo_java_unittest',
737 'is_test_apk': 1,
[email protected]10955d32014-04-30 11:22:41738 # Given that this apk tests itself, it needs to bring emma with it
739 # when instrumented.
740 'conditions': [
741 ['emma_coverage != 0', {
742 'emma_instrument': 1,
743 }],
744 ],
[email protected]70c03642014-04-23 16:02:32745 },
746 'includes': [ '../build/java_apk.gypi' ],
747 },
748 {
[email protected]99e508a42013-12-04 01:15:09749 'target_name': 'mojo_native_viewport_java',
[email protected]29ccd8e2013-11-01 16:44:56750 'type': 'none',
751 'dependencies': [
752 '../base/base.gyp:base_java',
753 ],
754 'variables': {
755 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
756 },
757 'includes': [ '../build/java.gypi' ],
758 },
759 {
[email protected]67f839c92013-12-11 03:26:40760 'target_name': 'mojo_java_set_jni_headers',
[email protected]adeb6f72013-10-25 08:05:02761 'type': 'none',
762 'variables': {
763 'jni_gen_package': 'mojo',
[email protected]de857502014-01-10 15:08:04764 'jni_generator_ptr_type': 'long',
[email protected]adeb6f72013-10-25 08:05:02765 'input_java_class': 'java/util/HashSet.class',
766 },
767 'includes': [ '../build/jar_file_jni_generator.gypi' ],
768 },
769 {
[email protected]786d75c2013-10-24 20:29:35770 'target_name': 'libmojo_shell',
771 'type': 'shared_library',
772 'dependencies': [
773 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02774 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46775 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:15776 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]570c26d2013-10-30 04:07:46777 '../ui/gl/gl.gyp:gl',
[email protected]c1e5c782013-11-12 05:10:07778 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51779 'mojo_environment_chromium',
[email protected]adeb6f72013-10-25 08:05:02780 'mojo_jni_headers',
[email protected]09d040f2013-12-20 20:44:59781 'mojo_shell_bindings',
782 'mojo_shell_lib',
[email protected]786d75c2013-10-24 20:29:35783 ],
784 'sources': [
785 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02786 'shell/android/mojo_main.cc',
787 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35788 ],
789 },
790 {
791 'target_name': 'mojo_shell_apk',
792 'type': 'none',
793 'dependencies': [
794 '../base/base.gyp:base_java',
795 '../net/net.gyp:net_java',
[email protected]99e508a42013-12-04 01:15:09796 'mojo_native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35797 'libmojo_shell',
798 ],
799 'variables': {
800 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38801 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
802 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35803 'native_lib_target': 'libmojo_shell',
804 },
805 'includes': [ '../build/java_apk.gypi' ],
806 }
807 ],
808 }],
[email protected]8110218d2014-05-01 23:30:06809 ['OS=="linux"', {
810 'targets': [
811 {
812 'target_name': 'mojo_dbus_service',
813 'type': 'static_library',
814 'dependencies': [
815 '../base/base.gyp:base',
816 '../build/linux/system.gyp:dbus',
817 '../dbus/dbus.gyp:dbus',
818 'mojo_common_lib',
819 'mojo_external_service_bindings',
820 'mojo_shell_client',
821 'mojo_system_impl',
822 ],
823 'sources': [
824 'dbus/dbus_external_service.h',
825 'dbus/dbus_external_service.cc',
826 ],
827 },
828 ],
829 }],
[email protected]9eb072b62014-03-19 20:35:16830 ['test_isolation_mode != "noop"', {
831 'targets': [
832 {
833 'target_name': 'mojo_js_unittests_run',
834 'type': 'none',
835 'dependencies': [
836 'mojo_js_unittests',
837 ],
838 'includes': [
839 '../build/isolate.gypi',
840 'mojo_js_unittests.isolate',
841 ],
842 'sources': [
843 'mojo_js_unittests.isolate',
844 ],
845 },
846 ],
847 }],
[email protected]78ecb7c2014-05-06 22:34:24848 ['use_aura==1', {
849 'targets': [
850 {
851 'target_name': 'mojo_aura_support',
852 'type': 'static_library',
853 'dependencies': [
854 '../cc/cc.gyp:cc',
855 '../ui/aura/aura.gyp:aura',
856 '../ui/events/events.gyp:events',
857 '../ui/events/events.gyp:events_base',
858 '../ui/compositor/compositor.gyp:compositor',
859 '../ui/gl/gl.gyp:gl',
860 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
861 'mojo_cc_support',
862 'mojo_gles2',
863 'mojo_native_viewport_bindings',
864 ],
865 'sources': [
866 'aura/context_factory_mojo.cc',
867 'aura/context_factory_mojo.h',
868 'aura/screen_mojo.cc',
869 'aura/screen_mojo.h',
870 'aura/window_tree_host_mojo.cc',
871 'aura/window_tree_host_mojo.h',
872 ],
873 },
874 ],
875 }],
[email protected]786d75c2013-10-24 20:29:35876 ],
[email protected]02657da2013-09-16 02:55:18877}