Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(484)

Side by Side Diff: mojo/mojo.gyp

Issue 231353002: Make mojo_system static and mojo_system_impl a component, never use both (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Get content builds to work Created 6 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': { 6 'target_defaults': {
7 'conditions': [ 7 'conditions': [
8 ['mojo_shell_debug_url != ""', { 8 ['mojo_shell_debug_url != ""', {
9 'defines': [ 9 'defines': [
10 'MOJO_SHELL_DEBUG=1', 10 'MOJO_SHELL_DEBUG=1',
(...skipping 18 matching lines...) Expand all
29 'type': 'none', 29 'type': 'none',
30 'dependencies': [ 30 'dependencies': [
31 'mojo_apps_js_unittests', 31 'mojo_apps_js_unittests',
32 'mojo_bindings', 32 'mojo_bindings',
33 'mojo_compositor_app', 33 'mojo_compositor_app',
34 'mojo_common_lib', 34 'mojo_common_lib',
35 'mojo_common_unittests', 35 'mojo_common_unittests',
36 'mojo_js', 36 'mojo_js',
37 'mojo_js_unittests', 37 'mojo_js_unittests',
38 'mojo_message_generator', 38 'mojo_message_generator',
39 'mojo_native_viewport_service',
39 'mojo_pepper_container_app', 40 'mojo_pepper_container_app',
40 'mojo_public_test_utils', 41 'mojo_public_test_utils',
41 'mojo_public_bindings_unittests', 42 'mojo_public_bindings_unittests',
42 'mojo_public_environment_unittests', 43 'mojo_public_environment_unittests',
43 'mojo_public_system_perftests', 44 'mojo_public_system_perftests',
44 'mojo_public_system_unittests', 45 'mojo_public_system_unittests',
45 'mojo_public_utility_unittests', 46 'mojo_public_utility_unittests',
46 'mojo_sample_app', 47 'mojo_sample_app',
47 'mojo_service_manager', 48 'mojo_service_manager',
48 'mojo_service_manager_unittests', 49 'mojo_service_manager_unittests',
(...skipping 14 matching lines...) Expand all
63 }], 64 }],
64 ] 65 ]
65 }, 66 },
66 { 67 {
67 'target_name': 'mojo_run_all_unittests', 68 'target_name': 'mojo_run_all_unittests',
68 'type': 'static_library', 69 'type': 'static_library',
69 'dependencies': [ 70 'dependencies': [
70 '../base/base.gyp:base', 71 '../base/base.gyp:base',
71 '../base/base.gyp:test_support_base', 72 '../base/base.gyp:test_support_base',
72 '../testing/gtest.gyp:gtest', 73 '../testing/gtest.gyp:gtest',
73 'mojo_system',
74 'mojo_system_impl', 74 'mojo_system_impl',
75 'mojo_test_support', 75 'mojo_test_support',
76 'mojo_test_support_impl', 76 'mojo_test_support_impl',
77 ], 77 ],
78 'sources': [ 78 'sources': [
79 'common/test/run_all_unittests.cc', 79 'common/test/run_all_unittests.cc',
80 ], 80 ],
81 }, 81 },
82 { 82 {
83 'target_name': 'mojo_run_all_perftests', 83 'target_name': 'mojo_run_all_perftests',
84 'type': 'static_library', 84 'type': 'static_library',
85 'dependencies': [ 85 'dependencies': [
86 '../base/base.gyp:test_support_base', 86 '../base/base.gyp:test_support_base',
87 'mojo_system',
88 'mojo_system_impl', 87 'mojo_system_impl',
89 'mojo_test_support', 88 'mojo_test_support',
90 'mojo_test_support_impl', 89 'mojo_test_support_impl',
91 ], 90 ],
92 'sources': [ 91 'sources': [
93 'common/test/run_all_perftests.cc', 92 'common/test/run_all_perftests.cc',
94 ], 93 ],
95 }, 94 },
96 { 95 {
97 'target_name': 'mojo_system_impl', 96 'target_name': 'mojo_system_impl',
98 'type': '<(component)', 97 'type': '<(component)',
99 'dependencies': [ 98 'dependencies': [
100 'mojo_system',
101 '../base/base.gyp:base', 99 '../base/base.gyp:base',
102 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 100 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
103 ], 101 ],
104 'defines': [ 102 'defines': [
105 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', 103 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
104 'MOJO_SYSTEM_IMPLEMENTATION',
106 ], 105 ],
107 'sources': [ 106 'sources': [
108 'embedder/embedder.cc', 107 'embedder/embedder.cc',
109 'embedder/embedder.h', 108 'embedder/embedder.h',
110 'embedder/platform_channel_pair.cc', 109 'embedder/platform_channel_pair.cc',
111 'embedder/platform_channel_pair.h', 110 'embedder/platform_channel_pair.h',
112 'embedder/platform_channel_pair_posix.cc', 111 'embedder/platform_channel_pair_posix.cc',
113 'embedder/platform_channel_pair_win.cc', 112 'embedder/platform_channel_pair_win.cc',
114 'embedder/platform_channel_utils_posix.cc', 113 'embedder/platform_channel_utils_posix.cc',
115 'embedder/platform_channel_utils_posix.h', 114 'embedder/platform_channel_utils_posix.h',
116 'embedder/platform_handle.cc', 115 'embedder/platform_handle.cc',
117 'embedder/platform_handle.h', 116 'embedder/platform_handle.h',
118 'embedder/scoped_platform_handle.h', 117 'embedder/scoped_platform_handle.h',
119 'system/channel.cc', 118 'system/channel.cc',
120 'system/channel.h', 119 'system/channel.h',
121 'system/constants.h', 120 'system/constants.h',
122 'system/core_impl.cc', 121 'system/core.cc',
123 'system/core_impl.h', 122 'system/core.h',
124 'system/data_pipe.cc', 123 'system/data_pipe.cc',
125 'system/data_pipe.h', 124 'system/data_pipe.h',
126 'system/data_pipe_consumer_dispatcher.cc', 125 'system/data_pipe_consumer_dispatcher.cc',
127 'system/data_pipe_consumer_dispatcher.h', 126 'system/data_pipe_consumer_dispatcher.h',
128 'system/data_pipe_producer_dispatcher.cc', 127 'system/data_pipe_producer_dispatcher.cc',
129 'system/data_pipe_producer_dispatcher.h', 128 'system/data_pipe_producer_dispatcher.h',
130 'system/dispatcher.cc', 129 'system/dispatcher.cc',
131 'system/dispatcher.h', 130 'system/dispatcher.h',
131 'system/entrypoints.cc',
132 'system/handle_table.cc', 132 'system/handle_table.cc',
133 'system/handle_table.h', 133 'system/handle_table.h',
134 'system/local_data_pipe.cc', 134 'system/local_data_pipe.cc',
135 'system/local_data_pipe.h', 135 'system/local_data_pipe.h',
136 'system/local_message_pipe_endpoint.cc', 136 'system/local_message_pipe_endpoint.cc',
137 'system/local_message_pipe_endpoint.h', 137 'system/local_message_pipe_endpoint.h',
138 'system/mapping_table.cc', 138 'system/mapping_table.cc',
139 'system/mapping_table.h', 139 'system/mapping_table.h',
140 'system/memory.cc', 140 'system/memory.cc',
141 'system/memory.h', 141 'system/memory.h',
(...skipping 30 matching lines...) Expand all
172 # component as non-test-only code. In the static build, this code should 172 # component as non-test-only code. In the static build, this code should
173 # hopefully be dead-stripped. 173 # hopefully be dead-stripped.
174 'embedder/test_embedder.cc', 174 'embedder/test_embedder.cc',
175 'embedder/test_embedder.h', 175 'embedder/test_embedder.h',
176 ], 176 ],
177 }, 177 },
178 { 178 {
179 'target_name': 'mojo_system_unittests', 179 'target_name': 'mojo_system_unittests',
180 'type': 'executable', 180 'type': 'executable',
181 'dependencies': [ 181 'dependencies': [
182 '../base/base.gyp:base',
182 '../base/base.gyp:run_all_unittests', 183 '../base/base.gyp:run_all_unittests',
183 '../testing/gtest.gyp:gtest', 184 '../testing/gtest.gyp:gtest',
184 'mojo_common_test_support', 185 'mojo_common_test_support',
185 'mojo_system',
186 'mojo_system_impl', 186 'mojo_system_impl',
187 ], 187 ],
188 'sources': [ 188 'sources': [
189 'embedder/embedder_unittest.cc', 189 'embedder/embedder_unittest.cc',
190 'embedder/platform_channel_pair_posix_unittest.cc', 190 'embedder/platform_channel_pair_posix_unittest.cc',
191 'system/core_impl_unittest.cc', 191 'system/core_unittest.cc',
192 'system/core_test_base.cc', 192 'system/core_test_base.cc',
193 'system/core_test_base.h', 193 'system/core_test_base.h',
194 'system/data_pipe_unittest.cc', 194 'system/data_pipe_unittest.cc',
195 'system/dispatcher_unittest.cc', 195 'system/dispatcher_unittest.cc',
196 'system/local_data_pipe_unittest.cc', 196 'system/local_data_pipe_unittest.cc',
197 'system/message_pipe_dispatcher_unittest.cc', 197 'system/message_pipe_dispatcher_unittest.cc',
198 'system/message_pipe_unittest.cc', 198 'system/message_pipe_unittest.cc',
199 'system/multiprocess_message_pipe_unittest.cc', 199 'system/multiprocess_message_pipe_unittest.cc',
200 'system/raw_channel_unittest.cc', 200 'system/raw_channel_unittest.cc',
201 'system/raw_shared_buffer_unittest.cc', 201 'system/raw_shared_buffer_unittest.cc',
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 }, 250 },
251 { 251 {
252 'target_name': 'mojo_common_lib', 252 'target_name': 'mojo_common_lib',
253 'type': '<(component)', 253 'type': '<(component)',
254 'defines': [ 254 'defines': [
255 'MOJO_COMMON_IMPLEMENTATION', 255 'MOJO_COMMON_IMPLEMENTATION',
256 ], 256 ],
257 'dependencies': [ 257 'dependencies': [
258 '../base/base.gyp:base', 258 '../base/base.gyp:base',
259 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 259 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
260 'mojo_system',
261 ], 260 ],
262 'sources': [ 261 'sources': [
263 'common/common_type_converters.cc', 262 'common/common_type_converters.cc',
264 'common/common_type_converters.h', 263 'common/common_type_converters.h',
265 'common/environment_data.cc', 264 'common/environment_data.cc',
266 'common/environment_data.h', 265 'common/environment_data.h',
267 'common/handle_watcher.cc', 266 'common/handle_watcher.cc',
268 'common/handle_watcher.h', 267 'common/handle_watcher.h',
269 'common/message_pump_mojo.cc', 268 'common/message_pump_mojo.cc',
270 'common/message_pump_mojo.h', 269 'common/message_pump_mojo.h',
271 'common/message_pump_mojo_handler.h', 270 'common/message_pump_mojo_handler.h',
272 'common/time_helper.cc', 271 'common/time_helper.cc',
273 'common/time_helper.h', 272 'common/time_helper.h',
274 ], 273 ],
275 }, 274 },
276 { 275 {
277 'target_name': 'mojo_common_test_support', 276 'target_name': 'mojo_common_test_support',
278 'type': 'static_library', 277 'type': 'static_library',
279 'dependencies': [ 278 'dependencies': [
280 '../base/base.gyp:base', 279 '../base/base.gyp:base',
281 '../base/base.gyp:test_support_base', 280 '../base/base.gyp:test_support_base',
282 '../testing/gtest.gyp:gtest', 281 '../testing/gtest.gyp:gtest',
283 'mojo_system',
284 'mojo_system_impl', 282 'mojo_system_impl',
285 ], 283 ],
286 'sources': [ 284 'sources': [
287 'common/test/multiprocess_test_helper.cc', 285 'common/test/multiprocess_test_helper.cc',
288 'common/test/multiprocess_test_helper.h', 286 'common/test/multiprocess_test_helper.h',
289 'common/test/test_utils.h', 287 'common/test/test_utils.h',
290 'common/test/test_utils_posix.cc', 288 'common/test/test_utils_posix.cc',
291 'common/test/test_utils_win.cc', 289 'common/test/test_utils_win.cc',
292 ], 290 ],
293 }, 291 },
294 { 292 {
295 'target_name': 'mojo_common_unittests', 293 'target_name': 'mojo_common_unittests',
296 'type': 'executable', 294 'type': 'executable',
297 'dependencies': [ 295 'dependencies': [
298 '../base/base.gyp:base', 296 '../base/base.gyp:base',
299 '../base/base.gyp:base_message_loop_tests', 297 '../base/base.gyp:base_message_loop_tests',
300 '../testing/gtest.gyp:gtest', 298 '../testing/gtest.gyp:gtest',
301 'mojo_bindings', 299 'mojo_bindings',
302 'mojo_environment_chromium', 300 'mojo_environment_chromium',
303 'mojo_common_lib', 301 'mojo_common_lib',
304 'mojo_common_test_support', 302 'mojo_common_test_support',
305 'mojo_public_test_utils', 303 'mojo_public_test_utils',
306 'mojo_run_all_unittests', 304 'mojo_run_all_unittests',
307 'mojo_system',
308 'mojo_system_impl', 305 'mojo_system_impl',
309 ], 306 ],
310 'sources': [ 307 'sources': [
311 'common/common_type_converters_unittest.cc', 308 'common/common_type_converters_unittest.cc',
312 'common/handle_watcher_unittest.cc', 309 'common/handle_watcher_unittest.cc',
313 'common/message_pump_mojo_unittest.cc', 310 'common/message_pump_mojo_unittest.cc',
314 'common/test/multiprocess_test_helper_unittest.cc', 311 'common/test/multiprocess_test_helper_unittest.cc',
315 ], 312 ],
316 }, 313 },
317 { 314 {
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
398 'target_name': 'mojo_shell_lib', 395 'target_name': 'mojo_shell_lib',
399 'type': 'static_library', 396 'type': 'static_library',
400 'dependencies': [ 397 'dependencies': [
401 '../base/base.gyp:base', 398 '../base/base.gyp:base',
402 '../base/base.gyp:base_static', 399 '../base/base.gyp:base_static',
403 '../net/net.gyp:net', 400 '../net/net.gyp:net',
404 '../url/url.gyp:url_lib', 401 '../url/url.gyp:url_lib',
405 'mojo_gles2_impl', 402 'mojo_gles2_impl',
406 'mojo_service_manager', 403 'mojo_service_manager',
407 'mojo_shell_bindings', 404 'mojo_shell_bindings',
408 'mojo_system',
409 'mojo_system_impl', 405 'mojo_system_impl',
410 'mojo_native_viewport_service', 406 'mojo_native_viewport_service',
411 'mojo_spy', 407 'mojo_spy',
412 ], 408 ],
413 'variables': { 409 'variables': {
414 'mojom_base_output_dir': 'mojo', 410 'mojom_base_output_dir': 'mojo',
415 }, 411 },
416 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 412 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
417 'sources': [ 413 'sources': [
418 'shell/app_child_process.cc', 414 'shell/app_child_process.cc',
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
459 'target_name': 'mojo_shell', 455 'target_name': 'mojo_shell',
460 'type': 'executable', 456 'type': 'executable',
461 'dependencies': [ 457 'dependencies': [
462 '../base/base.gyp:base', 458 '../base/base.gyp:base',
463 '../ui/gl/gl.gyp:gl', 459 '../ui/gl/gl.gyp:gl',
464 '../url/url.gyp:url_lib', 460 '../url/url.gyp:url_lib',
465 'mojo_common_lib', 461 'mojo_common_lib',
466 'mojo_environment_chromium', 462 'mojo_environment_chromium',
467 'mojo_service_manager', 463 'mojo_service_manager',
468 'mojo_shell_lib', 464 'mojo_shell_lib',
469 'mojo_system',
470 'mojo_system_impl', 465 'mojo_system_impl',
471 ], 466 ],
472 'sources': [ 467 'sources': [
473 'shell/desktop/mojo_main.cc', 468 'shell/desktop/mojo_main.cc',
474 ], 469 ],
475 }, 470 },
476 { 471 {
477 'target_name': 'mojo_service_manager_unittests', 472 'target_name': 'mojo_service_manager_unittests',
478 'type': 'executable', 473 'type': 'executable',
479 'dependencies': [ 474 'dependencies': [
480 '../base/base.gyp:base', 475 '../base/base.gyp:base',
481 '../testing/gtest.gyp:gtest', 476 '../testing/gtest.gyp:gtest',
482 '../url/url.gyp:url_lib', 477 '../url/url.gyp:url_lib',
483 'mojo_bindings', 478 'mojo_bindings',
484 'mojo_common_lib', 479 'mojo_common_lib',
485 'mojo_environment_chromium', 480 'mojo_environment_chromium',
486 'mojo_run_all_unittests', 481 'mojo_run_all_unittests',
487 'mojo_service_manager', 482 'mojo_service_manager',
488 'mojo_shell_client', 483 'mojo_shell_client',
489 'mojo_system',
490 ], 484 ],
491 'variables': { 485 'variables': {
492 'mojom_base_output_dir': 'mojo', 486 'mojom_base_output_dir': 'mojo',
493 }, 487 },
494 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 488 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
495 'sources': [ 489 'sources': [
496 'service_manager/service_manager_unittest.cc', 490 'service_manager/service_manager_unittest.cc',
497 'service_manager/test.mojom', 491 'service_manager/test.mojom',
498 ], 492 ],
499 }, 493 },
500 { 494 {
501 'target_name': 'mojo_js_bindings_lib', 495 'target_name': 'mojo_js_bindings_lib',
502 'type': 'static_library', 496 'type': 'static_library',
503 'dependencies': [ 497 'dependencies': [
504 '../base/base.gyp:base', 498 '../base/base.gyp:base',
505 '../gin/gin.gyp:gin', 499 '../gin/gin.gyp:gin',
506 '../v8/tools/gyp/v8.gyp:v8', 500 '../v8/tools/gyp/v8.gyp:v8',
507 'mojo_common_lib', 501 'mojo_common_lib',
508 'mojo_system',
509 ], 502 ],
510 'export_dependent_settings': [ 503 'export_dependent_settings': [
511 '../base/base.gyp:base', 504 '../base/base.gyp:base',
512 '../gin/gin.gyp:gin', 505 '../gin/gin.gyp:gin',
513 'mojo_common_lib', 506 'mojo_common_lib',
514 'mojo_system',
515 ], 507 ],
516 'sources': [ 508 'sources': [
517 'bindings/js/core.cc', 509 'bindings/js/core.cc',
518 'bindings/js/core.h', 510 'bindings/js/core.h',
519 'bindings/js/handle.cc', 511 'bindings/js/handle.cc',
520 'bindings/js/handle.h', 512 'bindings/js/handle.h',
521 'bindings/js/support.cc', 513 'bindings/js/support.cc',
522 'bindings/js/support.h', 514 'bindings/js/support.h',
523 'bindings/js/waiting_callback.cc', 515 'bindings/js/waiting_callback.cc',
524 'bindings/js/waiting_callback.h', 516 'bindings/js/waiting_callback.h',
(...skipping 14 matching lines...) Expand all
539 }, 531 },
540 { 532 {
541 'target_name': 'mojo_message_generator', 533 'target_name': 'mojo_message_generator',
542 'type': 'executable', 534 'type': 'executable',
543 'dependencies': [ 535 'dependencies': [
544 '../base/base.gyp:base', 536 '../base/base.gyp:base',
545 '../testing/gtest.gyp:gtest', 537 '../testing/gtest.gyp:gtest',
546 'mojo_bindings', 538 'mojo_bindings',
547 'mojo_common_lib', 539 'mojo_common_lib',
548 'mojo_environment_chromium', 540 'mojo_environment_chromium',
549 'mojo_system',
550 'mojo_system_impl', 541 'mojo_system_impl',
551 ], 542 ],
552 'sources': [ 543 'sources': [
553 'tools/message_generator.cc', 544 'tools/message_generator.cc',
554 ], 545 ],
555 }, 546 },
556 ], 547 ],
557 'conditions': [ 548 'conditions': [
558 ['OS=="android"', { 549 ['OS=="android"', {
559 'targets': [ 550 'targets': [
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 'mojo_js_unittests.isolate', 638 'mojo_js_unittests.isolate',
648 ], 639 ],
649 'sources': [ 640 'sources': [
650 'mojo_js_unittests.isolate', 641 'mojo_js_unittests.isolate',
651 ], 642 ],
652 }, 643 },
653 ], 644 ],
654 }], 645 }],
655 ], 646 ],
656 } 647 }
OLDNEW
« no previous file with comments | « mojo/embedder/test_embedder.cc ('k') | mojo/mojo_apps.gypi » ('j') | mojo/mojo_public.gypi » ('J')

Powered by Google App Engine
This is Rietveld 408576698