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

Side by Side Diff: mojo/mojo_base.gyp

Issue 632853002: Define gyp targets for mojo/public/* in mojo/public/mojo_public.gyp (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: ios fixes Created 6 years, 2 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
« no previous file with comments | « mojo/mojo_apps.gypi ('k') | mojo/mojo_examples.gypi » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 The Chromium Authors. All rights reserved. 1 # Copyright 2014 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 # Essential components (and their tests) that are needed to build 5 # Essential components (and their tests) that are needed to build
6 # Chrome should be here. Other components that are useful only in 6 # Chrome should be here. Other components that are useful only in
7 # Mojo land like mojo_shell should be in mojo.gyp. 7 # Mojo land like mojo_shell should be in mojo.gyp.
8 { 8 {
9 'includes': [ 9 'includes': [
10 'mojo_public.gypi',
11 'mojo_public_tests.gypi',
12 'mojo_variables.gypi', 10 'mojo_variables.gypi',
13 ], 11 ],
14 'targets': [ 12 'targets': [
15 { 13 {
16 'target_name': 'mojo_base', 14 'target_name': 'mojo_base',
17 'type': 'none', 15 'type': 'none',
18 'dependencies': [ 16 'dependencies': [
19 # NOTE: If adding a new dependency here, please consider whether it 17 # NOTE: If adding a new dependency here, please consider whether it
20 # should also be added to the list of Mojo-related dependencies of 18 # should also be added to the list of Mojo-related dependencies of
21 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base 19 # build/all.gyp:All on iOS, as All cannot depend on the mojo_base
22 # target on iOS due to the presence of the js targets, which cause v8 20 # target on iOS due to the presence of the js targets, which cause v8
23 # to be built. 21 # to be built.
24 'mojo_common_lib', 22 'mojo_common_lib',
25 'mojo_common_unittests', 23 'mojo_common_unittests',
26 'mojo_cpp_bindings',
27 'mojo_js_bindings',
28 'mojo_message_generator', 24 'mojo_message_generator',
29 'mojo_message_pipe_perftests', 25 'mojo_message_pipe_perftests',
30 'mojo_public_application_unittests', 26 'mojo_public_application_unittests',
31 'mojo_public_test_utils',
32 'mojo_public_bindings_unittests', 27 'mojo_public_bindings_unittests',
33 'mojo_public_environment_unittests', 28 'mojo_public_environment_unittests',
34 'mojo_public_system_perftests', 29 'mojo_public_system_perftests',
35 'mojo_public_system_unittests', 30 'mojo_public_system_unittests',
36 'mojo_public_utility_unittests', 31 'mojo_public_utility_unittests',
37 'mojo_system',
38 'mojo_system_impl', 32 'mojo_system_impl',
39 'mojo_system_unittests', 33 'mojo_system_unittests',
40 'mojo_utility',
41 ], 34 ],
42 'conditions': [ 35 'conditions': [
43 ['OS == "android"', { 36 ['OS == "android"', {
44 'dependencies': [ 37 'dependencies': [
45 'mojo_bindings_java', 38 'libmojo_system_java',
46 'mojo_public_java',
47 'mojo_system_java', 39 'mojo_system_java',
48 'libmojo_system_java',
49 'mojo_test_apk', 40 'mojo_test_apk',
41 'public/mojo_public.gyp:mojo_bindings_java',
42 'public/mojo_public.gyp:mojo_public_java',
50 ], 43 ],
51 }], 44 }],
52 ] 45 ]
53 }, 46 },
54 { 47 {
55 'target_name': 'mojo_none', 48 'target_name': 'mojo_none',
56 'type': 'none', 49 'type': 'none',
57 }, 50 },
58 { 51 {
59 # GN version: //mojo/common/test:run_all_unittests 52 # GN version: //mojo/common/test:run_all_unittests
60 'target_name': 'mojo_run_all_unittests', 53 'target_name': 'mojo_run_all_unittests',
61 'type': 'static_library', 54 'type': 'static_library',
62 'dependencies': [ 55 'dependencies': [
63 '../base/base.gyp:base', 56 '../base/base.gyp:base',
64 '../base/base.gyp:test_support_base', 57 '../base/base.gyp:test_support_base',
65 '../testing/gtest.gyp:gtest', 58 '../testing/gtest.gyp:gtest',
66 'mojo_system_impl', 59 'mojo_system_impl',
67 'mojo_test_support',
68 'mojo_test_support_impl', 60 'mojo_test_support_impl',
61 'public/mojo_public.gyp:mojo_test_support',
69 ], 62 ],
70 'sources': [ 63 'sources': [
71 'common/test/run_all_unittests.cc', 64 'common/test/run_all_unittests.cc',
72 ], 65 ],
73 }, 66 },
74 { 67 {
75 # GN version: //mojo/common/test:run_all_perftests 68 # GN version: //mojo/common/test:run_all_perftests
76 'target_name': 'mojo_run_all_perftests', 69 'target_name': 'mojo_run_all_perftests',
77 'type': 'static_library', 70 'type': 'static_library',
78 'dependencies': [ 71 'dependencies': [
79 '../base/base.gyp:test_support_base', 72 '../base/base.gyp:test_support_base',
80 'mojo_system_impl', 73 'mojo_system_impl',
81 'mojo_test_support',
82 'mojo_test_support_impl', 74 'mojo_test_support_impl',
75 'public/mojo_public.gyp:mojo_test_support',
83 ], 76 ],
84 'sources': [ 77 'sources': [
85 'common/test/run_all_perftests.cc', 78 'common/test/run_all_perftests.cc',
86 ], 79 ],
87 }, 80 },
81 # TODO(vtl): Reorganize the mojo_public_*_unittests.
82 {
83 # GN version: //mojo/public/cpp/bindings/tests:mojo_public_bindings_unitte sts
84 'target_name': 'mojo_public_bindings_unittests',
85 'type': 'executable',
86 'dependencies': [
87 '../testing/gtest.gyp:gtest',
88 'mojo_run_all_unittests',
89 'public/mojo_public.gyp:mojo_cpp_bindings',
90 'public/mojo_public.gyp:mojo_environment_standalone',
91 'public/mojo_public.gyp:mojo_public_bindings_test_utils',
92 'public/mojo_public.gyp:mojo_public_test_interfaces',
93 'public/mojo_public.gyp:mojo_public_test_utils',
94 'public/mojo_public.gyp:mojo_utility',
95 ],
96 'sources': [
97 'public/cpp/bindings/tests/array_unittest.cc',
98 'public/cpp/bindings/tests/bounds_checker_unittest.cc',
99 'public/cpp/bindings/tests/buffer_unittest.cc',
100 'public/cpp/bindings/tests/connector_unittest.cc',
101 'public/cpp/bindings/tests/handle_passing_unittest.cc',
102 'public/cpp/bindings/tests/interface_ptr_unittest.cc',
103 'public/cpp/bindings/tests/request_response_unittest.cc',
104 'public/cpp/bindings/tests/router_unittest.cc',
105 'public/cpp/bindings/tests/sample_service_unittest.cc',
106 'public/cpp/bindings/tests/serialization_warning_unittest.cc',
107 'public/cpp/bindings/tests/string_unittest.cc',
108 'public/cpp/bindings/tests/struct_unittest.cc',
109 'public/cpp/bindings/tests/type_conversion_unittest.cc',
110 'public/cpp/bindings/tests/validation_unittest.cc',
111 ],
112 },
113 {
114 # GN version: //mojo/public/cpp/environment/tests:mojo_public_environment_ unittests
115 'target_name': 'mojo_public_environment_unittests',
116 'type': 'executable',
117 'dependencies': [
118 '../testing/gtest.gyp:gtest',
119 'mojo_run_all_unittests',
120 'public/mojo_public.gyp:mojo_environment_standalone',
121 'public/mojo_public.gyp:mojo_public_test_utils',
122 'public/mojo_public.gyp:mojo_utility',
123 ],
124 'include_dirs': [ '..' ],
125 'sources': [
126 'public/cpp/environment/tests/async_waiter_unittest.cc',
127 'public/cpp/environment/tests/logger_unittest.cc',
128 'public/cpp/environment/tests/logging_unittest.cc',
129 ],
130 },
131 {
132 # GN version: //mojo/public/cpp/application/tests:mojo_public_application_ unittests
133 'target_name': 'mojo_public_application_unittests',
134 'type': 'executable',
135 'dependencies': [
136 '../base/base.gyp:base',
137 '../testing/gtest.gyp:gtest',
138 'mojo_run_all_unittests',
139 'public/mojo_public.gyp:mojo_application_standalone',
140 'public/mojo_public.gyp:mojo_utility',
141 'public/mojo_public.gyp:mojo_environment_standalone',
142 ],
143 'sources': [
144 'public/cpp/application/tests/service_registry_unittest.cc',
145 ],
146 },
147 {
148 # GN version: //mojo/public/cpp/application/tests:mojo_public_system_unitt ests
149 'target_name': 'mojo_public_system_unittests',
150 'type': 'executable',
151 'dependencies': [
152 '../testing/gtest.gyp:gtest',
153 'mojo_base.gyp:mojo_run_all_unittests',
154 'public/mojo_public.gyp:mojo_public_test_utils',
155 ],
156 'include_dirs': [ '..' ],
157 'sources': [
158 '<@(mojo_public_system_unittest_sources)',
159 ],
160 },
161 {
162 # GN version: //mojo/public/cpp/application/tests:mojo_public_utility_unit tests
163 'target_name': 'mojo_public_utility_unittests',
164 'type': 'executable',
165 'dependencies': [
166 '../testing/gtest.gyp:gtest',
167 'mojo_base.gyp:mojo_run_all_unittests',
168 'public/mojo_public.gyp:mojo_public_test_utils',
169 'public/mojo_public.gyp:mojo_utility',
170 ],
171 'include_dirs' : [ '..' ],
172 'sources': [
173 'public/cpp/utility/tests/mutex_unittest.cc',
174 'public/cpp/utility/tests/run_loop_unittest.cc',
175 'public/cpp/utility/tests/thread_unittest.cc',
176 ],
177 'conditions': [
178 # See crbug.com/342893:
179 ['OS=="win"', {
180 'sources!': [
181 'public/cpp/utility/tests/mutex_unittest.cc',
182 'public/cpp/utility/tests/thread_unittest.cc',
183 ],
184 }],
185 ],
186 },
187 {
188 # GN version: //mojo/public/c/system/tests:perftests
189 'target_name': 'mojo_public_system_perftests',
190 'type': 'executable',
191 'dependencies': [
192 '../base/base.gyp:base',
193 '../testing/gtest.gyp:gtest',
194 'mojo_run_all_perftests',
195 'public/mojo_public.gyp:mojo_public_test_utils',
196 'public/mojo_public.gyp:mojo_utility',
197 ],
198 'sources': [
199 'public/c/system/tests/core_perftest.cc',
200 ],
201 },
202
88 { 203 {
89 # GN version: //mojo/edk/system 204 # GN version: //mojo/edk/system
90 'target_name': 'mojo_system_impl', 205 'target_name': 'mojo_system_impl',
91 'type': '<(component)', 206 'type': '<(component)',
92 'dependencies': [ 207 'dependencies': [
93 '../base/base.gyp:base', 208 '../base/base.gyp:base',
94 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 209 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
95 ], 210 ],
96 'defines': [ 211 'defines': [
97 'MOJO_SYSTEM_IMPL_IMPLEMENTATION', 212 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
(...skipping 234 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 }, 447 },
333 { 448 {
334 # GN version: //mojo/common:mojo_common_unittests 449 # GN version: //mojo/common:mojo_common_unittests
335 'target_name': 'mojo_common_unittests', 450 'target_name': 'mojo_common_unittests',
336 'type': 'executable', 451 'type': 'executable',
337 'dependencies': [ 452 'dependencies': [
338 '../base/base.gyp:base', 453 '../base/base.gyp:base',
339 '../base/base.gyp:base_message_loop_tests', 454 '../base/base.gyp:base_message_loop_tests',
340 '../testing/gtest.gyp:gtest', 455 '../testing/gtest.gyp:gtest',
341 '../url/url.gyp:url_lib', 456 '../url/url.gyp:url_lib',
342 'mojo_cpp_bindings',
343 'mojo_environment_chromium',
344 'mojo_common_lib', 457 'mojo_common_lib',
345 'mojo_common_test_support', 458 'mojo_common_test_support',
346 'mojo_public_test_utils', 459 'mojo_environment_chromium',
347 'mojo_run_all_unittests', 460 'mojo_run_all_unittests',
461 'public/mojo_public.gyp:mojo_cpp_bindings',
462 'public/mojo_public.gyp:mojo_public_test_utils',
348 ], 463 ],
349 'sources': [ 464 'sources': [
350 'common/common_type_converters_unittest.cc', 465 'common/common_type_converters_unittest.cc',
351 'common/handle_watcher_unittest.cc', 466 'common/handle_watcher_unittest.cc',
352 'common/message_pump_mojo_unittest.cc', 467 'common/message_pump_mojo_unittest.cc',
353 'edk/test/multiprocess_test_helper_unittest.cc', 468 'edk/test/multiprocess_test_helper_unittest.cc',
354 ], 469 ],
355 'conditions': [ 470 'conditions': [
356 ['OS=="ios"', { 471 ['OS=="ios"', {
357 'sources!': [ 472 'sources!': [
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
405 }, 520 },
406 { 521 {
407 # GN version: //mojo/application 522 # GN version: //mojo/application
408 'target_name': 'mojo_application_chromium', 523 'target_name': 'mojo_application_chromium',
409 'type': 'static_library', 524 'type': 'static_library',
410 'sources': [ 525 'sources': [
411 'application/application_runner_chromium.cc', 526 'application/application_runner_chromium.cc',
412 'application/application_runner_chromium.h', 527 'application/application_runner_chromium.h',
413 ], 528 ],
414 'dependencies': [ 529 'dependencies': [
415 'mojo_application_base',
416 'mojo_common_lib', 530 'mojo_common_lib',
417 'mojo_environment_chromium', 531 'mojo_environment_chromium',
532 'public/mojo_public.gyp:mojo_application_base',
418 ], 533 ],
419 'export_dependent_settings': [ 534 'export_dependent_settings': [
420 'mojo_application_base', 535 'public/mojo_public.gyp:mojo_application_base',
421 ], 536 ],
422 }, 537 },
423 { 538 {
424 # GN version: //mojo/bindings/js 539 # GN version: //mojo/bindings/js
425 'target_name': 'mojo_js_bindings_lib', 540 'target_name': 'mojo_js_bindings_lib',
426 'type': 'static_library', 541 'type': 'static_library',
427 'dependencies': [ 542 'dependencies': [
428 '../base/base.gyp:base', 543 '../base/base.gyp:base',
429 '../gin/gin.gyp:gin', 544 '../gin/gin.gyp:gin',
430 '../v8/tools/gyp/v8.gyp:v8', 545 '../v8/tools/gyp/v8.gyp:v8',
(...skipping 20 matching lines...) Expand all
451 ], 566 ],
452 }, 567 },
453 { 568 {
454 # GN version: //mojo/tools:message_generator 569 # GN version: //mojo/tools:message_generator
455 'target_name': 'mojo_message_generator', 570 'target_name': 'mojo_message_generator',
456 'type': 'executable', 571 'type': 'executable',
457 'dependencies': [ 572 'dependencies': [
458 '../base/base.gyp:base', 573 '../base/base.gyp:base',
459 '../testing/gtest.gyp:gtest', 574 '../testing/gtest.gyp:gtest',
460 'mojo_common_lib', 575 'mojo_common_lib',
461 'mojo_cpp_bindings',
462 'mojo_environment_chromium', 576 'mojo_environment_chromium',
463 'mojo_system_impl', 577 'mojo_system_impl',
578 'public/mojo_public.gyp:mojo_cpp_bindings',
464 ], 579 ],
465 'sources': [ 580 'sources': [
466 'tools/message_generator.cc', 581 'tools/message_generator.cc',
467 ], 582 ],
468 }, 583 },
469 ], 584 ],
470 'conditions': [ 585 'conditions': [
471 ['OS=="android"', { 586 ['OS=="android"', {
472 'targets': [ 587 'targets': [
473 { 588 {
(...skipping 21 matching lines...) Expand all
495 'jni_gen_package': 'mojo', 610 'jni_gen_package': 'mojo',
496 'input_java_class': 'java/util/HashSet.class', 611 'input_java_class': 'java/util/HashSet.class',
497 }, 612 },
498 'includes': [ '../build/jar_file_jni_generator.gypi' ], 613 'includes': [ '../build/jar_file_jni_generator.gypi' ],
499 }, 614 },
500 { 615 {
501 'target_name': 'mojo_system_java', 616 'target_name': 'mojo_system_java',
502 'type': 'none', 617 'type': 'none',
503 'dependencies': [ 618 'dependencies': [
504 '../base/base.gyp:base_java', 619 '../base/base.gyp:base_java',
505 'mojo_public_java', 620 'public/mojo_public.gyp:mojo_public_java',
506 ], 621 ],
507 'variables': { 622 'variables': {
508 'java_in_dir': '<(DEPTH)/mojo/android/system', 623 'java_in_dir': '<(DEPTH)/mojo/android/system',
509 }, 624 },
510 'includes': [ '../build/java.gypi' ], 625 'includes': [ '../build/java.gypi' ],
511 }, 626 },
512 { 627 {
513 'target_name': 'libmojo_system_java', 628 'target_name': 'libmojo_system_java',
514 'type': 'static_library', 629 'type': 'static_library',
515 'dependencies': [ 630 'dependencies': [
516 '../base/base.gyp:base', 631 '../base/base.gyp:base',
517 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations', 632 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
518 'mojo_common_lib', 633 'mojo_common_lib',
519 'mojo_environment_chromium', 634 'mojo_environment_chromium',
520 'mojo_jni_headers', 635 'mojo_jni_headers',
521 » 'mojo_system_impl', 636 » 'mojo_system_impl',
522 ], 637 ],
523 'sources': [ 638 'sources': [
524 'android/system/core_impl.cc', 639 'android/system/core_impl.cc',
525 'android/system/core_impl.h', 640 'android/system/core_impl.h',
526 ], 641 ],
527 }, 642 },
528 { 643 {
529 'target_name': 'libmojo_java_unittest', 644 'target_name': 'libmojo_java_unittest',
530 'type': 'shared_library', 645 'type': 'shared_library',
531 'dependencies': [ 646 'dependencies': [
532 '../base/base.gyp:base', 647 '../base/base.gyp:base',
533 '../base/base.gyp:test_support_base', 648 '../base/base.gyp:test_support_base',
534 'libmojo_system_java', 649 'libmojo_system_java',
535 'mojo_jni_headers', 650 'mojo_jni_headers',
536 'mojo_public_bindings_test_utils', 651 'public/mojo_public.gyp:mojo_public_bindings_test_utils',
537 ], 652 ],
538 'defines': [ 653 'defines': [
539 'UNIT_TEST' # As exported from testing/gtest.gyp:gtest. 654 'UNIT_TEST' # As exported from testing/gtest.gyp:gtest.
540 ], 655 ],
541 'sources': [ 656 'sources': [
542 'android/javatests/mojo_test_case.cc', 657 'android/javatests/mojo_test_case.cc',
543 'android/javatests/mojo_test_case.h', 658 'android/javatests/mojo_test_case.h',
544 'android/javatests/init_library.cc', 659 'android/javatests/init_library.cc',
545 'android/javatests/validation_test_util.cc', 660 'android/javatests/validation_test_util.cc',
546 'android/javatests/validation_test_util.h', 661 'android/javatests/validation_test_util.h',
547 ], 662 ],
548 }, 663 },
549 { 664 {
550 'target_name': 'mojo_test_apk', 665 'target_name': 'mojo_test_apk',
551 'type': 'none', 666 'type': 'none',
552 'dependencies': [ 667 'dependencies': [
553 'mojo_bindings_java', 668 '../base/base.gyp:base_java_test_support',
554 'mojo_public_test_interfaces', 669 'public/mojo_public.gyp:mojo_bindings_java',
555 'mojo_system_java', 670 'mojo_system_java',
556 '../base/base.gyp:base_java_test_support', 671 'public/mojo_public.gyp:mojo_public_test_interfaces',
557 ], 672 ],
558 'variables': { 673 'variables': {
559 'apk_name': 'MojoTest', 674 'apk_name': 'MojoTest',
560 'java_in_dir': '<(DEPTH)/mojo/android/javatests', 675 'java_in_dir': '<(DEPTH)/mojo/android/javatests',
561 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk', 676 'resource_dir': '<(DEPTH)/mojo/android/javatests/apk',
562 'native_lib_target': 'libmojo_java_unittest', 677 'native_lib_target': 'libmojo_java_unittest',
563 'is_test_apk': 1, 678 'is_test_apk': 1,
564 # Given that this apk tests itself, it needs to bring emma with it 679 # Given that this apk tests itself, it needs to bring emma with it
565 # when instrumented. 680 # when instrumented.
566 'conditions': [ 681 'conditions': [
567 ['emma_coverage != 0', { 682 ['emma_coverage != 0', {
568 'emma_instrument': 1, 683 'emma_instrument': 1,
569 }], 684 }],
570 ], 685 ],
571 }, 686 },
572 'includes': [ '../build/java_apk.gypi' ], 687 'includes': [ '../build/java_apk.gypi' ],
573 }, 688 },
574 ] 689 ]
575 }], 690 }],
576 ] 691 ]
577 } 692 }
OLDNEW
« no previous file with comments | « mojo/mojo_apps.gypi ('k') | mojo/mojo_examples.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698