OLD | NEW |
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 { | 5 { |
| 6 'includes': [ |
| 7 'mojo_variables.gypi', |
| 8 ], |
6 'target_defaults' : { | 9 'target_defaults' : { |
7 'include_dirs': [ | 10 'include_dirs': [ |
8 '..', | 11 '..', |
9 ], | 12 ], |
10 }, | 13 }, |
11 'variables': { | 14 'variables': { |
12 'chromium_code': 1, | |
13 'mojo_public_test_interfaces_mojom_files': [ | 15 'mojo_public_test_interfaces_mojom_files': [ |
14 'public/interfaces/bindings/tests/math_calculator.mojom', | 16 'public/interfaces/bindings/tests/math_calculator.mojom', |
15 'public/interfaces/bindings/tests/no_module.mojom', | 17 'public/interfaces/bindings/tests/no_module.mojom', |
16 'public/interfaces/bindings/tests/ping_service.mojom', | 18 'public/interfaces/bindings/tests/ping_service.mojom', |
17 'public/interfaces/bindings/tests/rect.mojom', | 19 'public/interfaces/bindings/tests/rect.mojom', |
18 'public/interfaces/bindings/tests/regression_tests.mojom', | 20 'public/interfaces/bindings/tests/regression_tests.mojom', |
19 'public/interfaces/bindings/tests/sample_factory.mojom', | 21 'public/interfaces/bindings/tests/sample_factory.mojom', |
20 'public/interfaces/bindings/tests/sample_import.mojom', | 22 'public/interfaces/bindings/tests/sample_import.mojom', |
21 'public/interfaces/bindings/tests/sample_import2.mojom', | 23 'public/interfaces/bindings/tests/sample_import2.mojom', |
22 'public/interfaces/bindings/tests/sample_interfaces.mojom', | 24 'public/interfaces/bindings/tests/sample_interfaces.mojom', |
23 'public/interfaces/bindings/tests/sample_service.mojom', | 25 'public/interfaces/bindings/tests/sample_service.mojom', |
24 'public/interfaces/bindings/tests/scoping.mojom', | 26 'public/interfaces/bindings/tests/scoping.mojom', |
25 'public/interfaces/bindings/tests/serialization_test_structs.mojom', | 27 'public/interfaces/bindings/tests/serialization_test_structs.mojom', |
26 'public/interfaces/bindings/tests/test_constants.mojom', | 28 'public/interfaces/bindings/tests/test_constants.mojom', |
27 'public/interfaces/bindings/tests/test_native_types.mojom', | 29 'public/interfaces/bindings/tests/test_native_types.mojom', |
28 'public/interfaces/bindings/tests/test_sync_methods.mojom', | 30 'public/interfaces/bindings/tests/test_sync_methods.mojom', |
29 ] | 31 ] |
30 }, | 32 }, |
31 'targets': [ | 33 'targets': [ |
32 { | 34 { |
33 'target_name': 'mojo_public', | 35 'target_name': 'mojo_public', |
34 'type': 'none', | 36 'type': 'none', |
35 'dependencies': [ | 37 'dependencies': [ |
36 'mojo_js_bindings', | 38 'mojo_js_bindings', |
37 'mojo_public_system', | |
38 'mojo_public_test_interfaces', | 39 'mojo_public_test_interfaces', |
39 'mojo_public_test_utils', | 40 'mojo_public_test_utils', |
| 41 'mojo_system', |
| 42 ], |
| 43 }, |
| 44 { |
| 45 # Targets that (a) need to obtain the settings that mojo_system passes on |
| 46 # to its direct dependents but (b) are not themselves in a position to |
| 47 # hardcode a dependency to mojo_system vs. mojo_system_impl (e.g., |
| 48 # because they are components) should depend on this target. |
| 49 'target_name': 'mojo_system_placeholder', |
| 50 'type': 'none', |
| 51 }, |
| 52 { |
| 53 'target_name': 'mojo_system', |
| 54 'type': 'static_library', |
| 55 'defines': [ |
| 56 'MOJO_SYSTEM_IMPLEMENTATION', |
| 57 ], |
| 58 'all_dependent_settings': { |
| 59 'conditions': [ |
| 60 # We need to be able to call the MojoSetSystemThunks() function in |
| 61 # system_thunks.cc |
| 62 ['OS=="android"', { |
| 63 'ldflags!': [ |
| 64 '-Wl,--exclude-libs=ALL', |
| 65 ], |
| 66 }], |
| 67 ], |
| 68 }, |
| 69 'sources': [ |
| 70 'public/platform/native/system_thunks.cc', |
| 71 'public/platform/native/system_thunks.h', |
| 72 ], |
| 73 'dependencies': [ |
| 74 'mojo_system_headers', |
40 ], | 75 ], |
41 }, | 76 }, |
42 { | 77 { |
43 # GN version: //mojo/public/c/system | 78 # GN version: //mojo/public/c/system |
44 'target_name': 'mojo_public_system', | 79 'target_name': 'mojo_system_headers', |
45 'type': '<(component)', | 80 'type': 'none', |
46 'sources': [ | 81 'sources': [ |
47 'public/c/system/buffer.h', | 82 'public/c/system/buffer.h', |
48 'public/c/system/core.h', | 83 'public/c/system/core.h', |
49 'public/c/system/data_pipe.h', | 84 'public/c/system/data_pipe.h', |
50 'public/c/system/functions.h', | 85 'public/c/system/functions.h', |
51 'public/c/system/macros.h', | 86 'public/c/system/macros.h', |
52 'public/c/system/message_pipe.h', | 87 'public/c/system/message_pipe.h', |
53 'public/c/system/platform_handle.h', | 88 'public/c/system/platform_handle.h', |
54 'public/c/system/system_export.h', | 89 'public/c/system/system_export.h', |
55 'public/c/system/thunks.cc', | |
56 'public/c/systme/thunks.h', | |
57 'public/c/system/types.h', | 90 'public/c/system/types.h', |
58 'public/c/system/wait_set.h', | 91 'public/c/system/wait_set.h', |
59 ], | 92 ], |
60 'defines': [ | |
61 'MOJO_SYSTEM_IMPLEMENTATION', | |
62 ], | |
63 }, | 93 }, |
64 { | 94 { |
65 # GN version: //mojo/public/cpp/system | 95 # GN version: //mojo/public/cpp/system |
66 'target_name': 'mojo_cpp_system', | 96 'target_name': 'mojo_cpp_system', |
67 'type': 'static_library', | 97 'type': 'static_library', |
68 'sources': [ | 98 'sources': [ |
69 'public/cpp/system/buffer.cc', | 99 'public/cpp/system/buffer.cc', |
70 'public/cpp/system/buffer.h', | 100 'public/cpp/system/buffer.h', |
71 'public/cpp/system/core.h', | 101 'public/cpp/system/core.h', |
72 'public/cpp/system/data_pipe.h', | 102 'public/cpp/system/data_pipe.h', |
73 'public/cpp/system/functions.h', | 103 'public/cpp/system/functions.h', |
74 'public/cpp/system/handle.h', | 104 'public/cpp/system/handle.h', |
75 'public/cpp/system/message.h', | 105 'public/cpp/system/message.h', |
76 'public/cpp/system/message_pipe.h', | 106 'public/cpp/system/message_pipe.h', |
77 'public/cpp/system/platform_handle.cc', | 107 'public/cpp/system/platform_handle.cc', |
78 'public/cpp/system/platform_handle.h', | 108 'public/cpp/system/platform_handle.h', |
79 'public/cpp/system/watcher.cc', | 109 'public/cpp/system/watcher.cc', |
80 'public/cpp/system/watcher.h', | 110 'public/cpp/system/watcher.h', |
81 ], | 111 ], |
82 'dependencies': [ | 112 'dependencies': [ |
83 '../base/base.gyp:base', | 113 '../base/base.gyp:base', |
84 'mojo_public_system', | 114 'mojo_system_headers', |
85 ], | 115 ], |
86 }, | 116 }, |
87 { | 117 { |
88 # GN version: //mojo/public/cpp/bindings | 118 # GN version: //mojo/public/cpp/bindings |
89 'target_name': 'mojo_cpp_bindings', | 119 'target_name': 'mojo_cpp_bindings', |
90 'type': 'static_library', | 120 'type': 'static_library', |
91 'include_dirs': [ | 121 'include_dirs': [ |
92 '..' | 122 '..' |
93 ], | 123 ], |
94 'sources': [ | 124 'sources': [ |
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 { | 240 { |
211 # GN version: //mojo/message_pump | 241 # GN version: //mojo/message_pump |
212 'target_name': 'mojo_message_pump_lib', | 242 'target_name': 'mojo_message_pump_lib', |
213 'type': '<(component)', | 243 'type': '<(component)', |
214 'defines': [ | 244 'defines': [ |
215 'MOJO_MESSAGE_PUMP_IMPLEMENTATION', | 245 'MOJO_MESSAGE_PUMP_IMPLEMENTATION', |
216 ], | 246 ], |
217 'dependencies': [ | 247 'dependencies': [ |
218 '../base/base.gyp:base', | 248 '../base/base.gyp:base', |
219 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 249 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
220 'mojo_cpp_system', | 250 '<(mojo_system_for_component)', |
221 ], | 251 ], |
222 'export_dependent_settings': [ | 252 'export_dependent_settings': [ |
223 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 253 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
224 ], | 254 ], |
225 'sources': [ | 255 'sources': [ |
226 'message_pump/handle_watcher.cc', | 256 'message_pump/handle_watcher.cc', |
227 'message_pump/handle_watcher.h', | 257 'message_pump/handle_watcher.h', |
228 'message_pump/message_pump_mojo.cc', | 258 'message_pump/message_pump_mojo.cc', |
229 'message_pump/message_pump_mojo.h', | 259 'message_pump/message_pump_mojo.h', |
230 'message_pump/message_pump_mojo_handler.h', | 260 'message_pump/message_pump_mojo_handler.h', |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
502 }, | 532 }, |
503 'sources': [ | 533 'sources': [ |
504 'public/interfaces/bindings/tests/test_wtf_types.mojom', | 534 'public/interfaces/bindings/tests/test_wtf_types.mojom', |
505 ], | 535 ], |
506 'includes': [ 'mojom_bindings_generator.gypi' ], | 536 'includes': [ 'mojom_bindings_generator.gypi' ], |
507 }, | 537 }, |
508 ], | 538 ], |
509 }], | 539 }], |
510 ], | 540 ], |
511 } | 541 } |
OLD | NEW |