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 # 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 '../third_party/mojo/mojo_variables.gypi', | 10 'mojo_variables.gypi', |
11 ], | 11 ], |
12 'targets': [ | 12 'targets': [ |
13 { | 13 { |
14 'target_name': 'mojo_base', | 14 'target_name': 'mojo_base', |
15 'type': 'none', | 15 'type': 'none', |
16 'dependencies': [ | 16 'dependencies': [ |
17 # NOTE: If adding a new dependency here, please consider whether it | 17 # NOTE: If adding a new dependency here, please consider whether it |
18 # 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 |
19 # 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 |
20 # 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 |
21 # to be built. | 21 # to be built. |
22 'mojo_common_lib', | 22 'mojo_common_lib', |
23 'mojo_common_unittests', | 23 'mojo_common_unittests', |
24 ], | 24 ], |
25 'conditions': [ | 25 'conditions': [ |
26 ['OS == "android"', { | 26 ['OS == "android"', { |
27 'dependencies': [ | 27 'dependencies': [ |
28 '../third_party/mojo/mojo_public.gyp:mojo_bindings_java', | 28 'mojo_public.gyp:mojo_bindings_java', |
29 '../third_party/mojo/mojo_public.gyp:mojo_public_java', | 29 'mojo_public.gyp:mojo_public_java', |
30 ], | 30 ], |
31 }], | 31 }], |
32 ] | 32 ] |
33 }, | 33 }, |
34 { | 34 { |
35 'target_name': 'mojo_none', | 35 'target_name': 'mojo_none', |
36 'type': 'none', | 36 'type': 'none', |
37 }, | 37 }, |
38 { | 38 { |
39 # GN version: //mojo/message_pump | 39 # GN version: //mojo/message_pump |
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 { | 123 { |
124 # GN version: //mojo/common:mojo_common_unittests | 124 # GN version: //mojo/common:mojo_common_unittests |
125 'target_name': 'mojo_common_unittests', | 125 'target_name': 'mojo_common_unittests', |
126 'type': 'executable', | 126 'type': 'executable', |
127 'dependencies': [ | 127 'dependencies': [ |
128 '../base/base.gyp:base', | 128 '../base/base.gyp:base', |
129 '../base/base.gyp:test_support_base', | 129 '../base/base.gyp:test_support_base', |
130 '../base/base.gyp:base_message_loop_tests', | 130 '../base/base.gyp:base_message_loop_tests', |
131 '../testing/gtest.gyp:gtest', | 131 '../testing/gtest.gyp:gtest', |
132 '../url/url.gyp:url_lib', | 132 '../url/url.gyp:url_lib', |
133 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl', | |
134 '../third_party/mojo/mojo_edk.gyp:mojo_common_test_support', | |
135 '../third_party/mojo/mojo_edk.gyp:mojo_run_all_unittests', | |
136 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
137 '../third_party/mojo/mojo_public.gyp:mojo_public_test_utils', | |
138 'mojo_common_lib', | 133 'mojo_common_lib', |
| 134 'mojo_edk.gyp:mojo_system_impl', |
| 135 'mojo_edk.gyp:mojo_common_test_support', |
| 136 'mojo_edk.gyp:mojo_run_all_unittests', |
139 'mojo_environment_chromium', | 137 'mojo_environment_chromium', |
140 'mojo_message_pump_lib', | 138 'mojo_message_pump_lib', |
| 139 'mojo_public.gyp:mojo_cpp_bindings', |
| 140 'mojo_public.gyp:mojo_public_test_utils', |
141 'mojo_url_type_converters', | 141 'mojo_url_type_converters', |
142 ], | 142 ], |
143 'sources': [ | 143 'sources': [ |
144 'common/common_type_converters_unittest.cc', | 144 'common/common_type_converters_unittest.cc', |
145 'message_pump/handle_watcher_unittest.cc', | 145 'message_pump/handle_watcher_unittest.cc', |
146 'message_pump/message_pump_mojo_unittest.cc', | 146 'message_pump/message_pump_mojo_unittest.cc', |
147 ], | 147 ], |
148 }, | 148 }, |
149 { | 149 { |
150 # GN version: //mojo/environment:chromium | 150 # GN version: //mojo/environment:chromium |
151 'target_name': 'mojo_environment_chromium', | 151 'target_name': 'mojo_environment_chromium', |
152 'type': 'static_library', | 152 'type': 'static_library', |
153 'dependencies': [ | 153 'dependencies': [ |
154 'mojo_environment_chromium_impl', | 154 'mojo_environment_chromium_impl', |
155 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', | 155 'mojo_public.gyp:mojo_cpp_bindings', |
156 ], | 156 ], |
157 'sources': [ | 157 'sources': [ |
158 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) | 158 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.) |
159 "../mojo/public/cpp/environment/async_waiter.h", | 159 "../mojo/public/cpp/environment/async_waiter.h", |
160 "../mojo/public/cpp/environment/lib/async_waiter.cc", | 160 "../mojo/public/cpp/environment/lib/async_waiter.cc", |
161 "../mojo/public/cpp/environment/lib/logging.cc", | 161 "../mojo/public/cpp/environment/lib/logging.cc", |
162 "../mojo/public/cpp/environment/lib/scoped_task_tracking.cc", | 162 "../mojo/public/cpp/environment/lib/scoped_task_tracking.cc", |
163 "../mojo/public/cpp/environment/lib/scoped_task_tracking.cc", | 163 "../mojo/public/cpp/environment/lib/scoped_task_tracking.cc", |
164 "../mojo/public/cpp/environment/logging.h", | 164 "../mojo/public/cpp/environment/logging.h", |
165 "../mojo/public/cpp/environment/task_tracker.h", | 165 "../mojo/public/cpp/environment/task_tracker.h", |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 'shell/public/interfaces/shell.mojom', | 210 'shell/public/interfaces/shell.mojom', |
211 'shell/public/interfaces/shell_client.mojom', | 211 'shell/public/interfaces/shell_client.mojom', |
212 ], | 212 ], |
213 }, | 213 }, |
214 'dependencies': [ | 214 'dependencies': [ |
215 'mojo_services.gyp:network_service_bindings_generation', | 215 'mojo_services.gyp:network_service_bindings_generation', |
216 ], | 216 ], |
217 'export_dependent_settings': [ | 217 'export_dependent_settings': [ |
218 'mojo_services.gyp:network_service_bindings_generation', | 218 'mojo_services.gyp:network_service_bindings_generation', |
219 ], | 219 ], |
220 'includes': [ '../third_party/mojo/mojom_bindings_generator_explicit.gypi'
], | 220 'includes': [ 'mojom_bindings_generator_explicit.gypi' ], |
221 }, | 221 }, |
222 { | 222 { |
223 # GN version: //mojo/shell/public/cpp | 223 # GN version: //mojo/shell/public/cpp |
224 'target_name': 'mojo_application_base', | 224 'target_name': 'mojo_application_base', |
225 'type': 'static_library', | 225 'type': 'static_library', |
226 'sources': [ | 226 'sources': [ |
227 'shell/public/cpp/app_lifetime_helper.h', | 227 'shell/public/cpp/app_lifetime_helper.h', |
228 'shell/public/cpp/application_runner.h', | 228 'shell/public/cpp/application_runner.h', |
229 'shell/public/cpp/connect.h', | 229 'shell/public/cpp/connect.h', |
230 'shell/public/cpp/connection.h', | 230 'shell/public/cpp/connection.h', |
(...skipping 19 matching lines...) Expand all Loading... |
250 'mojo_message_pump_lib', | 250 'mojo_message_pump_lib', |
251 'mojo_services.gyp:network_type_converters', | 251 'mojo_services.gyp:network_type_converters', |
252 ], | 252 ], |
253 }, | 253 }, |
254 { | 254 { |
255 # GN version: //mojo/public/interfaces/application:application | 255 # GN version: //mojo/public/interfaces/application:application |
256 'target_name': 'mojo_application_bindings', | 256 'target_name': 'mojo_application_bindings', |
257 'type': 'static_library', | 257 'type': 'static_library', |
258 'dependencies': [ | 258 'dependencies': [ |
259 'mojo_application_bindings_mojom', | 259 'mojo_application_bindings_mojom', |
| 260 'mojo_public.gyp:mojo_cpp_bindings', |
260 'mojo_services.gyp:network_service_bindings_lib', | 261 'mojo_services.gyp:network_service_bindings_lib', |
261 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', | |
262 ], | 262 ], |
263 'export_dependent_settings': [ | 263 'export_dependent_settings': [ |
264 'mojo_services.gyp:network_service_bindings_lib', | 264 'mojo_services.gyp:network_service_bindings_lib', |
265 ], | 265 ], |
266 }, | 266 }, |
267 { | 267 { |
268 # GN version: //mojo/test:test_support | 268 # GN version: //mojo/test:test_support |
269 'target_name': 'mojo_test_support', | 269 'target_name': 'mojo_test_support', |
270 'type': 'static_library', | 270 'type': 'static_library', |
271 'dependencies': [ | 271 'dependencies': [ |
272 '../base/base.gyp:base', | 272 '../base/base.gyp:base', |
273 ], | 273 ], |
274 'sources': [ | 274 'sources': [ |
275 'test/test_utils.h', | 275 'test/test_utils.h', |
276 'test/test_utils_posix.cc', | 276 'test/test_utils_posix.cc', |
277 'test/test_utils_win.cc', | 277 'test/test_utils_win.cc', |
278 ], | 278 ], |
279 }, | 279 }, |
280 { | 280 { |
281 # GN version: //mojo/shell/public/cpp/tests | 281 # GN version: //mojo/shell/public/cpp/tests |
282 'target_name': 'mojo_public_application_unittests', | 282 'target_name': 'mojo_public_application_unittests', |
283 'type': 'executable', | 283 'type': 'executable', |
284 'dependencies': [ | 284 'dependencies': [ |
285 'mojo_application_base', | |
286 '../base/base.gyp:base', | 285 '../base/base.gyp:base', |
287 '../testing/gtest.gyp:gtest', | 286 '../testing/gtest.gyp:gtest', |
288 '../third_party/mojo/mojo_edk.gyp:mojo_run_all_unittests', | 287 'mojo_application_base', |
289 '../third_party/mojo/mojo_public.gyp:mojo_utility', | 288 'mojo_edk.gyp:mojo_run_all_unittests', |
290 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', | 289 'mojo_public.gyp:mojo_utility', |
| 290 'mojo_public.gyp:mojo_environment_standalone', |
291 ], | 291 ], |
292 'sources': [ | 292 'sources': [ |
293 'shell/public/cpp/tests/connection_impl_unittest.cc', | 293 'shell/public/cpp/tests/connection_impl_unittest.cc', |
294 ], | 294 ], |
295 }, | 295 }, |
296 ], | 296 ], |
297 'conditions': [ | 297 'conditions': [ |
298 ['OS=="android"', { | 298 ['OS=="android"', { |
299 'targets': [ | 299 'targets': [ |
300 { | 300 { |
(...skipping 12 matching lines...) Expand all Loading... |
313 }, | 313 }, |
314 'includes': [ '../build/jni_generator.gypi' ], | 314 'includes': [ '../build/jni_generator.gypi' ], |
315 }, | 315 }, |
316 { | 316 { |
317 'target_name': 'libmojo_system_java', | 317 'target_name': 'libmojo_system_java', |
318 'type': 'static_library', | 318 'type': 'static_library', |
319 'dependencies': [ | 319 'dependencies': [ |
320 '../base/base.gyp:base', | 320 '../base/base.gyp:base', |
321 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', | 321 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', |
322 'mojo_common_lib', | 322 'mojo_common_lib', |
323 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl', | 323 'mojo_edk.gyp:mojo_system_impl', |
324 'mojo_environment_chromium', | 324 'mojo_environment_chromium', |
325 'mojo_jni_headers', | 325 'mojo_jni_headers', |
326 ], | 326 ], |
327 'sources': [ | 327 'sources': [ |
328 'android/system/core_impl.cc', | 328 'android/system/core_impl.cc', |
329 'android/system/core_impl.h', | 329 'android/system/core_impl.h', |
330 ], | 330 ], |
331 }, | 331 }, |
332 { | 332 { |
333 'target_name': 'mojo_java_set_jni_headers', | 333 'target_name': 'mojo_java_set_jni_headers', |
334 'type': 'none', | 334 'type': 'none', |
335 'variables': { | 335 'variables': { |
336 'jni_gen_package': 'mojo', | 336 'jni_gen_package': 'mojo', |
337 'input_java_class': 'java/util/HashSet.class', | 337 'input_java_class': 'java/util/HashSet.class', |
338 }, | 338 }, |
339 'includes': [ '../build/jar_file_jni_generator.gypi' ], | 339 'includes': [ '../build/jar_file_jni_generator.gypi' ], |
340 }, | 340 }, |
341 { | 341 { |
342 'target_name': 'mojo_system_java', | 342 'target_name': 'mojo_system_java', |
343 'type': 'none', | 343 'type': 'none', |
344 'dependencies': [ | 344 'dependencies': [ |
345 '../base/base.gyp:base_java', | 345 '../base/base.gyp:base_java', |
346 'libmojo_system_java', | 346 'libmojo_system_java', |
347 '../third_party/mojo/mojo_public.gyp:mojo_public_java', | 347 'mojo_public.gyp:mojo_public_java', |
348 ], | 348 ], |
349 'variables': { | 349 'variables': { |
350 'java_in_dir': '<(DEPTH)/mojo/android/system', | 350 'java_in_dir': '<(DEPTH)/mojo/android/system', |
351 }, | 351 }, |
352 'includes': [ '../build/java.gypi' ], | 352 'includes': [ '../build/java.gypi' ], |
353 }, | 353 }, |
354 ], | 354 ], |
355 }], | 355 }], |
356 ['test_isolation_mode != "noop"', { | 356 ['test_isolation_mode != "noop"', { |
357 'targets': [ | 357 'targets': [ |
358 { | 358 { |
359 'target_name': 'mojo_common_unittests_run', | 359 'target_name': 'mojo_common_unittests_run', |
360 'type': 'none', | 360 'type': 'none', |
361 'dependencies': [ | 361 'dependencies': [ |
362 'mojo_common_unittests', | 362 'mojo_common_unittests', |
363 ], | 363 ], |
364 'includes': [ | 364 'includes': [ |
365 '../build/isolate.gypi', | 365 '../build/isolate.gypi', |
366 ], | 366 ], |
367 'sources': [ | 367 'sources': [ |
368 'mojo_common_unittests.isolate', | 368 'mojo_common_unittests.isolate', |
369 ], | 369 ], |
370 }, | 370 }, |
371 ], | 371 ], |
372 }], | 372 }], |
373 ] | 373 ] |
374 } | 374 } |
OLD | NEW |