blob: dd167b8e387def81600c98ab2337004ca195f76c [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]5e1a8322014-05-09 22:35:5178 ['OS == "linux"', {
79 'dependencies': [
80 'mojo_dbus_echo',
81 'mojo_dbus_echo_service',
82 ],
83 }],
[email protected]331e4db2014-01-07 21:46:0484 ]
[email protected]3d58663b2013-09-28 00:30:0485 },
86 {
[email protected]65eedf72014-04-28 11:53:1687 'target_name': 'mojo_external_service_bindings',
88 'type': 'static_library',
89 'sources': [
90 'shell/external_service.mojom',
91 ],
92 'variables': {
93 'mojom_base_output_dir': 'mojo',
94 },
95 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
96 'export_dependent_settings': [
[email protected]9a1526b2014-04-30 05:27:0697 'mojo_cpp_bindings',
[email protected]65eedf72014-04-28 11:53:1698 ],
99 'dependencies': [
[email protected]9a1526b2014-04-30 05:27:06100 'mojo_cpp_bindings',
[email protected]65eedf72014-04-28 11:53:16101 ],
102 },
103 {
[email protected]4b4068d2013-11-11 21:12:03104 'target_name': 'mojo_run_all_unittests',
105 'type': 'static_library',
106 'dependencies': [
107 '../base/base.gyp:base',
108 '../base/base.gyp:test_support_base',
[email protected]d16a5b42013-12-03 17:47:24109 '../testing/gtest.gyp:gtest',
[email protected]5fd29c12013-12-10 07:13:47110 'mojo_system_impl',
[email protected]1477ef4c2014-02-13 20:40:53111 'mojo_test_support',
112 'mojo_test_support_impl',
[email protected]4b4068d2013-11-11 21:12:03113 ],
114 'sources': [
115 'common/test/run_all_unittests.cc',
116 ],
117 },
118 {
[email protected]5f8471fb2013-11-26 23:07:24119 'target_name': 'mojo_run_all_perftests',
120 'type': 'static_library',
121 'dependencies': [
122 '../base/base.gyp:test_support_base',
[email protected]5fd29c12013-12-10 07:13:47123 'mojo_system_impl',
[email protected]1477ef4c2014-02-13 20:40:53124 'mojo_test_support',
125 'mojo_test_support_impl',
[email protected]5f8471fb2013-11-26 23:07:24126 ],
127 'sources': [
128 'common/test/run_all_perftests.cc',
129 ],
130 },
131 {
[email protected]5fd29c12013-12-10 07:13:47132 'target_name': 'mojo_system_impl',
[email protected]6cf6ca52013-10-10 20:52:11133 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:04134 'dependencies': [
135 '../base/base.gyp:base',
[email protected]44992e72014-03-04 07:44:13136 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]3d58663b2013-09-28 00:30:04137 ],
[email protected]6cf6ca52013-10-10 20:52:11138 'defines': [
[email protected]5fd29c12013-12-10 07:13:47139 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
[email protected]3a734732014-04-15 03:14:25140 'MOJO_SYSTEM_IMPLEMENTATION',
141 'MOJO_USE_SYSTEM_IMPL',
[email protected]6cf6ca52013-10-10 20:52:11142 ],
[email protected]3d58663b2013-09-28 00:30:04143 'sources': [
[email protected]f13fe442014-03-19 00:05:26144 'embedder/embedder.cc',
145 'embedder/embedder.h',
146 'embedder/platform_channel_pair.cc',
147 'embedder/platform_channel_pair.h',
148 'embedder/platform_channel_pair_posix.cc',
149 'embedder/platform_channel_pair_win.cc',
[email protected]d4698f42014-04-05 08:30:23150 'embedder/platform_channel_utils_posix.cc',
151 'embedder/platform_channel_utils_posix.h',
[email protected]f13fe442014-03-19 00:05:26152 'embedder/platform_handle.cc',
153 'embedder/platform_handle.h',
[email protected]1f738cb2014-05-13 00:03:49154 'embedder/platform_handle_vector.cc',
155 'embedder/platform_handle_vector.h',
[email protected]f13fe442014-03-19 00:05:26156 'embedder/scoped_platform_handle.h',
[email protected]ccf8453d2013-11-07 17:49:50157 'system/channel.cc',
158 'system/channel.h',
[email protected]32446982013-12-16 20:58:48159 'system/constants.h',
[email protected]3a734732014-04-15 03:14:25160 'system/core.cc',
161 'system/core.h',
[email protected]82d1954d2013-12-13 22:23:19162 'system/data_pipe.cc',
163 'system/data_pipe.h',
[email protected]ae3d3572013-12-14 00:00:53164 'system/data_pipe_consumer_dispatcher.cc',
165 'system/data_pipe_consumer_dispatcher.h',
[email protected]82d1954d2013-12-13 22:23:19166 'system/data_pipe_producer_dispatcher.cc',
167 'system/data_pipe_producer_dispatcher.h',
[email protected]3d58663b2013-09-28 00:30:04168 'system/dispatcher.cc',
169 'system/dispatcher.h',
[email protected]3a734732014-04-15 03:14:25170 'system/entrypoints.cc',
[email protected]3f623282014-03-31 02:07:46171 'system/handle_table.cc',
172 'system/handle_table.h',
[email protected]00798012013-12-16 20:39:30173 'system/local_data_pipe.cc',
174 'system/local_data_pipe.h',
[email protected]989f8bc2013-10-16 00:24:37175 'system/local_message_pipe_endpoint.cc',
176 'system/local_message_pipe_endpoint.h',
[email protected]cfa16b3412014-04-01 11:20:12177 'system/mapping_table.cc',
178 'system/mapping_table.h',
[email protected]3d58663b2013-09-28 00:30:04179 'system/memory.cc',
180 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:34181 'system/message_in_transit.cc',
182 'system/message_in_transit.h',
[email protected]311a9a12014-03-03 23:17:23183 'system/message_in_transit_queue.cc',
184 'system/message_in_transit_queue.h',
[email protected]3d58663b2013-09-28 00:30:04185 'system/message_pipe.cc',
186 'system/message_pipe.h',
187 'system/message_pipe_dispatcher.cc',
188 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:37189 'system/message_pipe_endpoint.cc',
190 'system/message_pipe_endpoint.h',
[email protected]d1e0c2212014-05-13 22:40:06191 'system/platform_handle_dispatcher.cc',
192 'system/platform_handle_dispatcher.h',
[email protected]ccf8453d2013-11-07 17:49:50193 'system/proxy_message_pipe_endpoint.cc',
194 'system/proxy_message_pipe_endpoint.h',
[email protected]497626502014-02-27 18:13:25195 'system/raw_channel.cc',
[email protected]5a0d0062013-10-11 19:07:18196 'system/raw_channel.h',
197 'system/raw_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50198 'system/raw_channel_win.cc',
[email protected]ac1df702014-03-21 20:45:27199 'system/raw_shared_buffer.cc',
200 'system/raw_shared_buffer.h',
201 'system/raw_shared_buffer_posix.cc',
202 'system/raw_shared_buffer_win.cc',
[email protected]be7edee2014-03-22 07:01:52203 'system/shared_buffer_dispatcher.cc',
204 'system/shared_buffer_dispatcher.h',
[email protected]3d58663b2013-09-28 00:30:04205 'system/simple_dispatcher.cc',
206 'system/simple_dispatcher.h',
[email protected]68d3f6b2014-05-03 03:40:21207 'system/transport_data.cc',
208 'system/transport_data.h',
[email protected]3d58663b2013-09-28 00:30:04209 'system/waiter.cc',
210 'system/waiter.h',
211 'system/waiter_list.cc',
212 'system/waiter_list.h',
[email protected]8579fe02014-01-16 23:51:10213 # Test-only code:
214 # TODO(vtl): It's a little unfortunate that these end up in the same
215 # component as non-test-only code. In the static build, this code should
216 # hopefully be dead-stripped.
[email protected]f13fe442014-03-19 00:05:26217 'embedder/test_embedder.cc',
218 'embedder/test_embedder.h',
[email protected]3d58663b2013-09-28 00:30:04219 ],
[email protected]3a734732014-04-15 03:14:25220 'all_dependent_settings': {
221 # Ensures that dependent projects import the core functions on Windows.
222 'defines': ['MOJO_USE_SYSTEM_IMPL'],
223 }
[email protected]3d58663b2013-09-28 00:30:04224 },
225 {
226 'target_name': 'mojo_system_unittests',
227 'type': 'executable',
228 'dependencies': [
[email protected]3a734732014-04-15 03:14:25229 '../base/base.gyp:base',
[email protected]3d58663b2013-09-28 00:30:04230 '../base/base.gyp:run_all_unittests',
231 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02232 'mojo_common_test_support',
[email protected]5fd29c12013-12-10 07:13:47233 'mojo_system_impl',
[email protected]3d58663b2013-09-28 00:30:04234 ],
235 'sources': [
[email protected]f13fe442014-03-19 00:05:26236 'embedder/embedder_unittest.cc',
[email protected]9e1d94922014-03-25 18:51:56237 'embedder/platform_channel_pair_posix_unittest.cc',
[email protected]c1531f52014-04-25 15:19:32238 'system/channel_unittest.cc',
[email protected]3a734732014-04-15 03:14:25239 'system/core_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04240 'system/core_test_base.cc',
241 'system/core_test_base.h',
[email protected]92fb7f42013-12-17 22:38:30242 'system/data_pipe_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04243 'system/dispatcher_unittest.cc',
[email protected]92fb7f42013-12-17 22:38:30244 'system/local_data_pipe_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04245 'system/message_pipe_dispatcher_unittest.cc',
246 'system/message_pipe_unittest.cc',
[email protected]1ad40142013-12-12 13:20:02247 'system/multiprocess_message_pipe_unittest.cc',
[email protected]d1e0c2212014-05-13 22:40:06248 'system/platform_handle_dispatcher_unittest.cc',
[email protected]44992e72014-03-04 07:44:13249 'system/raw_channel_unittest.cc',
[email protected]ac1df702014-03-21 20:45:27250 'system/raw_shared_buffer_unittest.cc',
[email protected]f764b25b2014-03-06 10:31:47251 'system/remote_message_pipe_unittest.cc',
[email protected]40063092014-03-24 22:46:09252 'system/shared_buffer_dispatcher_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04253 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57254 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04255 'system/test_utils.h',
256 'system/waiter_list_unittest.cc',
257 'system/waiter_test_utils.cc',
258 'system/waiter_test_utils.h',
259 'system/waiter_unittest.cc',
260 ],
[email protected]02657da2013-09-16 02:55:18261 },
[email protected]6cf6ca52013-10-10 20:52:11262 {
[email protected]826360a32014-01-22 22:19:27263 'target_name': 'mojo_gles2_impl',
[email protected]99e508a42013-12-04 01:15:09264 'type': '<(component)',
265 'dependencies': [
[email protected]826360a32014-01-22 22:19:27266 '../base/base.gyp:base',
267 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]68780862014-02-07 00:25:07268 '../gpu/gpu.gyp:command_buffer_client',
269 '../gpu/gpu.gyp:command_buffer_common',
270 '../gpu/gpu.gyp:gles2_cmd_helper',
271 '../gpu/gpu.gyp:gles2_implementation',
[email protected]826360a32014-01-22 22:19:27272 'mojo_gles2',
[email protected]c329ad72014-01-23 04:02:49273 'mojo_gles2_bindings',
274 'mojo_environment_chromium',
[email protected]3a734732014-04-15 03:14:25275 'mojo_system_impl',
[email protected]99e508a42013-12-04 01:15:09276 ],
277 'defines': [
[email protected]826360a32014-01-22 22:19:27278 'MOJO_GLES2_IMPL_IMPLEMENTATION',
[email protected]99e508a42013-12-04 01:15:09279 ],
280 'sources': [
[email protected]68780862014-02-07 00:25:07281 'gles2/command_buffer_client_impl.cc',
282 'gles2/command_buffer_client_impl.h',
[email protected]826360a32014-01-22 22:19:27283 'gles2/gles2_impl_export.h',
284 'gles2/gles2_support_impl.cc',
285 'gles2/gles2_support_impl.h',
[email protected]68780862014-02-07 00:25:07286 'gles2/gles2_context.cc',
287 'gles2/gles2_context.h',
[email protected]99e508a42013-12-04 01:15:09288 ],
289 },
290 {
[email protected]1477ef4c2014-02-13 20:40:53291 'target_name': 'mojo_test_support_impl',
292 'type': 'static_library',
293 'dependencies': [
294 '../base/base.gyp:base',
295 ],
296 'sources': [
297 'common/test/test_support_impl.cc',
298 'common/test/test_support_impl.h',
299 ],
300 },
301 {
[email protected]3cf4aad2013-12-01 17:27:25302 'target_name': 'mojo_common_lib',
303 'type': '<(component)',
304 'defines': [
305 'MOJO_COMMON_IMPLEMENTATION',
306 ],
307 'dependencies': [
308 '../base/base.gyp:base',
309 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]3a734732014-04-15 03:14:25310 'mojo_system_impl',
311 ],
312 'export_dependent_settings': [
313 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
314 'mojo_system_impl',
[email protected]3cf4aad2013-12-01 17:27:25315 ],
316 'sources': [
[email protected]f68c1462014-04-24 18:17:53317 'common/channel_init.cc',
318 'common/channel_init.h',
[email protected]2229d4252013-12-08 06:53:47319 'common/common_type_converters.cc',
320 'common/common_type_converters.h',
[email protected]26d8482f2014-04-02 03:39:59321 'common/environment_data.cc',
322 'common/environment_data.h',
[email protected]3cf4aad2013-12-01 17:27:25323 'common/handle_watcher.cc',
324 'common/handle_watcher.h',
325 'common/message_pump_mojo.cc',
326 'common/message_pump_mojo.h',
327 'common/message_pump_mojo_handler.h',
[email protected]433f7d82014-03-15 00:53:48328 'common/time_helper.cc',
329 'common/time_helper.h',
[email protected]3cf4aad2013-12-01 17:27:25330 ],
[email protected]3cf4aad2013-12-01 17:27:25331 },
332 {
[email protected]1ad40142013-12-12 13:20:02333 'target_name': 'mojo_common_test_support',
334 'type': 'static_library',
335 'dependencies': [
336 '../base/base.gyp:base',
337 '../base/base.gyp:test_support_base',
338 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02339 'mojo_system_impl',
340 ],
341 'sources': [
[email protected]3bc13792014-03-08 22:58:37342 'common/test/multiprocess_test_helper.cc',
343 'common/test/multiprocess_test_helper.h',
[email protected]b8e55f62014-02-22 21:01:54344 'common/test/test_utils.h',
345 'common/test/test_utils_posix.cc',
346 'common/test/test_utils_win.cc',
[email protected]1ad40142013-12-12 13:20:02347 ],
348 },
349 {
[email protected]3cf4aad2013-12-01 17:27:25350 'target_name': 'mojo_common_unittests',
351 'type': 'executable',
352 'dependencies': [
353 '../base/base.gyp:base',
354 '../base/base.gyp:base_message_loop_tests',
355 '../testing/gtest.gyp:gtest',
[email protected]9a1526b2014-04-30 05:27:06356 'mojo_cpp_bindings',
[email protected]0d37563e2014-01-14 16:27:51357 'mojo_environment_chromium',
[email protected]3cf4aad2013-12-01 17:27:25358 'mojo_common_lib',
[email protected]1ad40142013-12-12 13:20:02359 'mojo_common_test_support',
[email protected]6eb908a2014-02-13 17:54:54360 'mojo_public_test_utils',
[email protected]3cf4aad2013-12-01 17:27:25361 'mojo_run_all_unittests',
[email protected]3cf4aad2013-12-01 17:27:25362 ],
363 'sources': [
[email protected]2229d4252013-12-08 06:53:47364 'common/common_type_converters_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25365 'common/handle_watcher_unittest.cc',
366 'common/message_pump_mojo_unittest.cc',
[email protected]3bc13792014-03-08 22:58:37367 'common/test/multiprocess_test_helper_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25368 ],
[email protected]3cf4aad2013-12-01 17:27:25369 },
370 {
[email protected]0d37563e2014-01-14 16:27:51371 'target_name': 'mojo_environment_chromium',
372 'type': 'static_library',
373 'dependencies': [
[email protected]512e35e92014-04-08 17:35:55374 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51375 'mojo_environment_chromium_impl',
376 ],
377 'sources': [
378 'environment/default_async_waiter.cc',
379 'environment/buffer_tls.cc',
380 'environment/environment.cc',
381 ],
382 'include_dirs': [
383 '..',
384 ],
385 'export_dependent_settings': [
386 'mojo_environment_chromium_impl',
387 ],
388 },
389 {
390 'target_name': 'mojo_environment_chromium_impl',
391 'type': '<(component)',
392 'defines': [
393 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
394 ],
395 'dependencies': [
396 '../base/base.gyp:base',
397 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
398 'mojo_common_lib'
399 ],
400 'sources': [
401 'environment/default_async_waiter_impl.cc',
402 'environment/default_async_waiter_impl.h',
403 'environment/buffer_tls_impl.cc',
404 'environment/buffer_tls_impl.h',
405 ],
406 'include_dirs': [
407 '..',
408 ],
409 },
410 {
[email protected]fadab2eb2014-02-27 23:41:34411 'target_name': 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00412 'type': '<(component)',
413 'defines': [
414 'MOJO_SERVICE_MANAGER_IMPLEMENTATION',
415 ],
[email protected]fadab2eb2014-02-27 23:41:34416 'dependencies': [
417 '../base/base.gyp:base',
[email protected]d656e102014-03-04 18:29:48418 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]fadab2eb2014-02-27 23:41:34419 '../net/net.gyp:net',
420 '../url/url.gyp:url_lib',
[email protected]26d8482f2014-04-02 03:39:59421 'mojo_common_lib',
[email protected]5d90df52014-03-27 04:16:00422 'mojo_environment_chromium',
[email protected]fadab2eb2014-02-27 23:41:34423 'mojo_shell_bindings',
[email protected]3a734732014-04-15 03:14:25424 'mojo_system_impl',
[email protected]fadab2eb2014-02-27 23:41:34425 ],
426 'sources': [
[email protected]34c758b2014-05-06 09:10:00427 'service_manager/background_service_loader.cc',
428 'service_manager/background_service_loader.h',
[email protected]d656e102014-03-04 18:29:48429 'service_manager/service_loader.h',
[email protected]fadab2eb2014-02-27 23:41:34430 'service_manager/service_manager.cc',
431 'service_manager/service_manager.h',
[email protected]5d90df52014-03-27 04:16:00432 'service_manager/service_manager_export.h',
[email protected]fadab2eb2014-02-27 23:41:34433 ],
[email protected]d656e102014-03-04 18:29:48434 'export_dependent_settings': [
435 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]5d90df52014-03-27 04:16:00436 'mojo_shell_bindings',
[email protected]d656e102014-03-04 18:29:48437 ],
[email protected]fadab2eb2014-02-27 23:41:34438 },
439 {
[email protected]e2682412014-04-07 22:04:42440 'target_name': 'mojo_spy',
441 'type': 'static_library',
442 'dependencies': [
443 '../base/base.gyp:base',
444 '../base/base.gyp:base_static',
[email protected]dd6ca972014-04-30 08:07:50445 '../net/net.gyp:http_server',
[email protected]e2682412014-04-07 22:04:42446 '../url/url.gyp:url_lib',
447 'mojo_service_manager',
448 ],
449 'sources': [
450 'spy/spy.cc',
451 'spy/spy.h',
[email protected]dd6ca972014-04-30 08:07:50452 'spy/websocket_server.cc',
453 'spy/websocket_server.h',
[email protected]e2682412014-04-07 22:04:42454 ],
455 },
456 {
[email protected]786d75c2013-10-24 20:29:35457 'target_name': 'mojo_shell_lib',
458 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11459 'dependencies': [
460 '../base/base.gyp:base',
[email protected]57d12ab2014-03-14 15:06:55461 '../base/base.gyp:base_static',
[email protected]1124dea02014-04-29 19:31:23462 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]eba6f512013-10-19 00:17:09463 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08464 '../url/url.gyp:url_lib',
[email protected]65eedf72014-04-28 11:53:16465 'mojo_external_service_bindings',
[email protected]826360a32014-01-22 22:19:27466 'mojo_gles2_impl',
[email protected]cfda411c2014-03-21 17:51:28467 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00468 'mojo_shell_bindings',
[email protected]5fd29c12013-12-10 07:13:47469 'mojo_system_impl',
[email protected]2e5f3a02013-12-21 07:12:37470 'mojo_native_viewport_service',
[email protected]e2682412014-04-07 22:04:42471 'mojo_spy',
[email protected]6cf6ca52013-10-10 20:52:11472 ],
[email protected]69a0a132014-03-26 16:45:02473 'variables': {
474 'mojom_base_output_dir': 'mojo',
475 },
[email protected]352ed67c2014-04-04 21:11:21476 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
[email protected]6cf6ca52013-10-10 20:52:11477 'sources': [
[email protected]4e559292014-03-18 00:05:15478 'shell/app_child_process.cc',
479 'shell/app_child_process.h',
[email protected]5dcd57c32014-03-20 17:37:19480 'shell/app_child_process.mojom',
[email protected]4e559292014-03-18 00:05:15481 'shell/app_child_process_host.cc',
482 'shell/app_child_process_host.h',
[email protected]57d12ab2014-03-14 15:06:55483 'shell/child_process.cc',
484 'shell/child_process.h',
485 'shell/child_process_host.cc',
486 'shell/child_process_host.h',
[email protected]6e50d5e42013-10-27 02:45:46487 'shell/context.cc',
488 'shell/context.h',
[email protected]65eedf72014-04-28 11:53:16489 'shell/dbus_service_loader_linux.cc',
490 'shell/dbus_service_loader_linux.h',
[email protected]df47c492014-01-03 22:50:15491 'shell/dynamic_service_loader.cc',
492 'shell/dynamic_service_loader.h',
[email protected]e01f3a02014-03-15 00:57:43493 'shell/dynamic_service_runner.h',
[email protected]40932702013-11-20 22:29:30494 'shell/init.cc',
495 'shell/init.h',
[email protected]e01f3a02014-03-15 00:57:43496 'shell/in_process_dynamic_service_runner.cc',
497 'shell/in_process_dynamic_service_runner.h',
[email protected]dcd9a9cd2014-02-03 09:15:41498 'shell/keep_alive.cc',
499 'shell/keep_alive.h',
[email protected]0be9b242013-10-28 06:28:38500 'shell/loader.cc',
501 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30502 'shell/network_delegate.cc',
503 'shell/network_delegate.h',
[email protected]4e559292014-03-18 00:05:15504 'shell/out_of_process_dynamic_service_runner.cc',
505 'shell/out_of_process_dynamic_service_runner.h',
[email protected]adeb6f72013-10-25 08:05:02506 'shell/run.cc',
507 'shell/run.h',
[email protected]09d040f2013-12-20 20:44:59508 'shell/storage.cc',
509 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11510 'shell/switches.cc',
511 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09512 'shell/task_runners.cc',
513 'shell/task_runners.h',
[email protected]57d12ab2014-03-14 15:06:55514 'shell/test_child_process.cc',
515 'shell/test_child_process.h',
[email protected]0be9b242013-10-28 06:28:38516 'shell/url_request_context_getter.cc',
517 'shell/url_request_context_getter.h',
[email protected]08f1c5972014-05-09 16:26:06518 'shell/view_manager_loader.cc',
519 'shell/view_manager_loader.h',
[email protected]6cf6ca52013-10-10 20:52:11520 ],
[email protected]65eedf72014-04-28 11:53:16521 'conditions': [
522 ['OS=="linux"', {
523 'dependencies': [
524 '../build/linux/system.gyp:dbus',
525 '../dbus/dbus.gyp:dbus',
526 ],
527 }],
[email protected]1124dea02014-04-29 19:31:23528 ['use_aura==1', {
529 'dependencies': [
530 # These are only necessary as long as we hard code use of ViewManager.
531 '../skia/skia.gyp:skia',
[email protected]08f1c5972014-05-09 16:26:06532 'mojo_gles2',
[email protected]1124dea02014-04-29 19:31:23533 'mojo_shell_client',
534 'mojo_view_manager',
[email protected]5e1a8322014-05-09 22:35:51535 'mojo_view_manager_bindings',
[email protected]1124dea02014-04-29 19:31:23536 ],
[email protected]08f1c5972014-05-09 16:26:06537 }, { # use_aura==0
538 'sources!': [
539 'shell/view_manager_loader.cc',
540 'shell/view_manager_loader.h',
541 ],
[email protected]1124dea02014-04-29 19:31:23542 }],
543 ],
544 },
545 {
546 'target_name': 'mojo_shell_test_support',
547 'type': 'static_library',
548 'dependencies': [
549 '../base/base.gyp:base',
550 '../base/base.gyp:base_static',
551 '../url/url.gyp:url_lib',
552 'mojo_service_manager',
553 'mojo_shell_lib',
554 'mojo_system_impl',
555 ],
556 'sources': [
557 'shell/shell_test_helper.cc',
558 'shell/shell_test_helper.h',
[email protected]65eedf72014-04-28 11:53:16559 ],
[email protected]6cf6ca52013-10-10 20:52:11560 },
561 {
[email protected]786d75c2013-10-24 20:29:35562 'target_name': 'mojo_shell',
563 'type': 'executable',
564 'dependencies': [
565 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02566 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35567 '../url/url.gyp:url_lib',
[email protected]c1e5c782013-11-12 05:10:07568 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51569 'mojo_environment_chromium',
[email protected]5d90df52014-03-27 04:16:00570 'mojo_service_manager',
[email protected]786d75c2013-10-24 20:29:35571 'mojo_shell_lib',
[email protected]5fd29c12013-12-10 07:13:47572 'mojo_system_impl',
[email protected]786d75c2013-10-24 20:29:35573 ],
574 'sources': [
[email protected]adeb6f72013-10-25 08:05:02575 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35576 ],
[email protected]786d75c2013-10-24 20:29:35577 },
[email protected]df47c492014-01-03 22:50:15578 {
[email protected]fadab2eb2014-02-27 23:41:34579 'target_name': 'mojo_service_manager_unittests',
[email protected]df47c492014-01-03 22:50:15580 'type': 'executable',
581 'dependencies': [
582 '../base/base.gyp:base',
583 '../testing/gtest.gyp:gtest',
[email protected]5d90df52014-03-27 04:16:00584 '../url/url.gyp:url_lib',
[email protected]26d8482f2014-04-02 03:39:59585 'mojo_common_lib',
[email protected]9a1526b2014-04-30 05:27:06586 'mojo_cpp_bindings',
[email protected]5d90df52014-03-27 04:16:00587 'mojo_environment_chromium',
[email protected]df47c492014-01-03 22:50:15588 'mojo_run_all_unittests',
[email protected]fadab2eb2014-02-27 23:41:34589 'mojo_service_manager',
[email protected]5d90df52014-03-27 04:16:00590 'mojo_shell_client',
[email protected]df47c492014-01-03 22:50:15591 ],
[email protected]69a0a132014-03-26 16:45:02592 'variables': {
593 'mojom_base_output_dir': 'mojo',
594 },
[email protected]352ed67c2014-04-04 21:11:21595 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
[email protected]df47c492014-01-03 22:50:15596 'sources': [
[email protected]fadab2eb2014-02-27 23:41:34597 'service_manager/service_manager_unittest.cc',
598 'service_manager/test.mojom',
[email protected]df47c492014-01-03 22:50:15599 ],
600 },
[email protected]f8c8cc12014-03-07 23:48:32601 {
602 'target_name': 'mojo_js_bindings_lib',
603 'type': 'static_library',
604 'dependencies': [
605 '../base/base.gyp:base',
606 '../gin/gin.gyp:gin',
607 '../v8/tools/gyp/v8.gyp:v8',
608 'mojo_common_lib',
[email protected]f8c8cc12014-03-07 23:48:32609 ],
610 'export_dependent_settings': [
611 '../base/base.gyp:base',
612 '../gin/gin.gyp:gin',
613 'mojo_common_lib',
[email protected]f8c8cc12014-03-07 23:48:32614 ],
615 'sources': [
616 'bindings/js/core.cc',
617 'bindings/js/core.h',
618 'bindings/js/handle.cc',
619 'bindings/js/handle.h',
620 'bindings/js/support.cc',
621 'bindings/js/support.h',
[email protected]5a8150a2014-04-16 02:10:42622 'bindings/js/unicode.cc',
623 'bindings/js/unicode.h',
[email protected]f8c8cc12014-03-07 23:48:32624 'bindings/js/waiting_callback.cc',
625 'bindings/js/waiting_callback.h',
626 ],
627 },
[email protected]8de52462014-03-11 15:48:39628 {
629 'target_name': 'mojo_js_unittests',
630 'type': 'executable',
631 'dependencies': [
632 '../gin/gin.gyp:gin_test',
[email protected]a27695c22014-04-25 05:17:31633 'mojo_common_test_support',
[email protected]8de52462014-03-11 15:48:39634 'mojo_js_bindings_lib',
635 'mojo_run_all_unittests',
[email protected]e1e974b2014-04-16 02:05:57636 'mojo_public_test_interfaces',
[email protected]8de52462014-03-11 15:48:39637 ],
638 'sources': [
639 'bindings/js/run_js_tests.cc',
640 ],
641 },
[email protected]15429ab2014-04-04 00:43:22642 {
643 'target_name': 'mojo_message_generator',
644 'type': 'executable',
645 'dependencies': [
646 '../base/base.gyp:base',
647 '../testing/gtest.gyp:gtest',
[email protected]15429ab2014-04-04 00:43:22648 'mojo_common_lib',
[email protected]9a1526b2014-04-30 05:27:06649 'mojo_cpp_bindings',
[email protected]15429ab2014-04-04 00:43:22650 'mojo_environment_chromium',
[email protected]15429ab2014-04-04 00:43:22651 'mojo_system_impl',
652 ],
653 'sources': [
654 'tools/message_generator.cc',
655 ],
656 },
[email protected]78ecb7c2014-05-06 22:34:24657 {
658 'target_name': 'mojo_cc_support',
659 'type': 'static_library',
660 'dependencies': [
661 '../base/base.gyp:base',
662 '../cc/cc.gyp:cc',
663 '../skia/skia.gyp:skia',
664 '../gpu/gpu.gyp:gles2_implementation',
665 'mojo_gles2',
666 ],
667 'sources': [
668 'cc/context_provider_mojo.cc',
669 'cc/context_provider_mojo.h',
670 ],
671 },
[email protected]02657da2013-09-16 02:55:18672 ],
[email protected]786d75c2013-10-24 20:29:35673 'conditions': [
674 ['OS=="android"', {
675 'targets': [
676 {
[email protected]70c03642014-04-23 16:02:32677 'target_name': 'mojo_jni_headers',
678 'type': 'none',
679 'dependencies': [
680 'mojo_java_set_jni_headers',
681 ],
682 'sources': [
683 'android/javatests/src/org/chromium/mojo/system/CoreTest.java',
684 'android/system/src/org/chromium/mojo/system/CoreImpl.java',
685 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
686 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
687 ],
688 'variables': {
689 'jni_gen_package': 'mojo',
690 'jni_generator_ptr_type': 'long',
691 },
692 'includes': [ '../build/jni_generator.gypi' ],
693 },
694 {
695 'target_name': 'mojo_system_java',
696 'type': 'none',
697 'dependencies': [
698 '../base/base.gyp:base_java',
699 'mojo_public_java',
700 ],
701 'variables': {
702 'java_in_dir': '<(DEPTH)/mojo/android/system',
703 },
704 'includes': [ '../build/java.gypi' ],
705 },
706 {
707 'target_name': 'libmojo_system_java',
708 'type': 'static_library',
709 'dependencies': [
710 '../base/base.gyp:base',
711 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
712 'mojo_common_lib',
713 'mojo_environment_chromium',
714 'mojo_jni_headers',
715 'mojo_shell_bindings',
716 'mojo_shell_lib',
717 ],
718 'sources': [
719 'android/system/core_impl.cc',
720 'android/system/core_impl.h',
721 ],
722 },
723 {
724 'target_name': 'libmojo_java_unittest',
725 'type': 'shared_library',
726 'dependencies': [
727 '../base/base.gyp:base',
728 'libmojo_system_java',
729 'mojo_jni_headers',
730 ],
731 'sources': [
732 'android/javatests/core_test.cc',
733 'android/javatests/core_test.h',
734 'android/javatests/init_library.cc',
735 ],
736 },
737 {
738 'target_name': 'mojo_test_apk',
739 'type': 'none',
740 'dependencies': [
741 'mojo_system_java',
742 '../base/base.gyp:base_java_test_support',
743 ],
744 'variables': {
745 'apk_name': 'MojoTest',
746 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
747 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
748 'native_lib_target': 'libmojo_java_unittest',
749 'is_test_apk': 1,
[email protected]10955d32014-04-30 11:22:41750 # Given that this apk tests itself, it needs to bring emma with it
751 # when instrumented.
752 'conditions': [
753 ['emma_coverage != 0', {
754 'emma_instrument': 1,
755 }],
756 ],
[email protected]70c03642014-04-23 16:02:32757 },
758 'includes': [ '../build/java_apk.gypi' ],
759 },
760 {
[email protected]99e508a42013-12-04 01:15:09761 'target_name': 'mojo_native_viewport_java',
[email protected]29ccd8e2013-11-01 16:44:56762 'type': 'none',
763 'dependencies': [
764 '../base/base.gyp:base_java',
765 ],
766 'variables': {
767 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
768 },
769 'includes': [ '../build/java.gypi' ],
770 },
771 {
[email protected]67f839c92013-12-11 03:26:40772 'target_name': 'mojo_java_set_jni_headers',
[email protected]adeb6f72013-10-25 08:05:02773 'type': 'none',
774 'variables': {
775 'jni_gen_package': 'mojo',
[email protected]de857502014-01-10 15:08:04776 'jni_generator_ptr_type': 'long',
[email protected]adeb6f72013-10-25 08:05:02777 'input_java_class': 'java/util/HashSet.class',
778 },
779 'includes': [ '../build/jar_file_jni_generator.gypi' ],
780 },
781 {
[email protected]786d75c2013-10-24 20:29:35782 'target_name': 'libmojo_shell',
783 'type': 'shared_library',
784 'dependencies': [
785 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02786 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46787 '../ui/gfx/gfx.gyp:gfx',
[email protected]b5e2d782013-12-18 21:01:15788 '../ui/gfx/gfx.gyp:gfx_geometry',
[email protected]570c26d2013-10-30 04:07:46789 '../ui/gl/gl.gyp:gl',
[email protected]c1e5c782013-11-12 05:10:07790 'mojo_common_lib',
[email protected]0d37563e2014-01-14 16:27:51791 'mojo_environment_chromium',
[email protected]adeb6f72013-10-25 08:05:02792 'mojo_jni_headers',
[email protected]09d040f2013-12-20 20:44:59793 'mojo_shell_bindings',
794 'mojo_shell_lib',
[email protected]786d75c2013-10-24 20:29:35795 ],
796 'sources': [
797 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02798 'shell/android/mojo_main.cc',
799 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35800 ],
801 },
802 {
803 'target_name': 'mojo_shell_apk',
804 'type': 'none',
805 'dependencies': [
806 '../base/base.gyp:base_java',
807 '../net/net.gyp:net_java',
[email protected]99e508a42013-12-04 01:15:09808 'mojo_native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35809 'libmojo_shell',
810 ],
811 'variables': {
812 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38813 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
814 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35815 'native_lib_target': 'libmojo_shell',
816 },
817 'includes': [ '../build/java_apk.gypi' ],
818 }
819 ],
820 }],
[email protected]8110218d2014-05-01 23:30:06821 ['OS=="linux"', {
822 'targets': [
823 {
824 'target_name': 'mojo_dbus_service',
825 'type': 'static_library',
826 'dependencies': [
827 '../base/base.gyp:base',
828 '../build/linux/system.gyp:dbus',
829 '../dbus/dbus.gyp:dbus',
830 'mojo_common_lib',
831 'mojo_external_service_bindings',
832 'mojo_shell_client',
833 'mojo_system_impl',
834 ],
835 'sources': [
836 'dbus/dbus_external_service.h',
837 'dbus/dbus_external_service.cc',
838 ],
839 },
840 ],
841 }],
[email protected]9eb072b62014-03-19 20:35:16842 ['test_isolation_mode != "noop"', {
843 'targets': [
844 {
845 'target_name': 'mojo_js_unittests_run',
846 'type': 'none',
847 'dependencies': [
848 'mojo_js_unittests',
849 ],
850 'includes': [
851 '../build/isolate.gypi',
852 'mojo_js_unittests.isolate',
853 ],
854 'sources': [
855 'mojo_js_unittests.isolate',
856 ],
857 },
858 ],
859 }],
[email protected]78ecb7c2014-05-06 22:34:24860 ['use_aura==1', {
861 'targets': [
862 {
863 'target_name': 'mojo_aura_support',
864 'type': 'static_library',
865 'dependencies': [
866 '../cc/cc.gyp:cc',
867 '../ui/aura/aura.gyp:aura',
868 '../ui/events/events.gyp:events',
869 '../ui/events/events.gyp:events_base',
870 '../ui/compositor/compositor.gyp:compositor',
871 '../ui/gl/gl.gyp:gl',
872 '../webkit/common/gpu/webkit_gpu.gyp:webkit_gpu',
873 'mojo_cc_support',
874 'mojo_gles2',
875 'mojo_native_viewport_bindings',
876 ],
877 'sources': [
878 'aura/context_factory_mojo.cc',
879 'aura/context_factory_mojo.h',
880 'aura/screen_mojo.cc',
881 'aura/screen_mojo.h',
882 'aura/window_tree_host_mojo.cc',
883 'aura/window_tree_host_mojo.h',
884 ],
885 },
886 ],
887 }],
[email protected]786d75c2013-10-24 20:29:35888 ],
[email protected]02657da2013-09-16 02:55:18889}