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