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 'variables': { |
10 '../third_party/mojo/mojo_variables.gypi', | 10 'chromium_code': 1, |
11 ], | 11 'conditions': [ |
| 12 # |
| 13 # The following mojo_system-prefixed variables are used to express a |
| 14 # dependency on the mojo system APIs. |
| 15 # |
| 16 # In a component == "shared_library" build, everything can link against |
| 17 # mojo_system_impl because it is built as a shared library. However, in a |
| 18 # component != "shared_library" build, mojo_system_impl is linked into an |
| 19 # executable (e.g., mojo_shell), and must be injected into other shared |
| 20 # libraries (i.e., Mojo Apps) that need the mojo system API. |
| 21 # |
| 22 # For component targets, add <(mojo_system_for_component) to your |
| 23 # dependencies section. For loadable module targets (e.g., a Mojo App), |
| 24 # add <(mojo_system_for_loadable_module) to your dependencies section. |
| 25 # |
| 26 # NOTE: component != "shared_library" implies that we are generating a |
| 27 # static library, and in that case, it is expected that the target |
| 28 # listing the component as a dependency will specify either mojo_system |
| 29 # or mojo_system_impl to link against. This enables multiple targets to |
| 30 # link against the same component library without having to agree on |
| 31 # which Mojo system library they are using. |
| 32 # |
| 33 ['component=="shared_library"', { |
| 34 'mojo_system_for_component': "<(DEPTH)/mojo/mojo_edk.gyp:mojo_system_imp
l", |
| 35 }, { |
| 36 'mojo_system_for_component': "<(DEPTH)/third_party/mojo/mojo_public.gyp:
mojo_system_placeholder", |
| 37 }], |
| 38 ], |
| 39 }, |
12 'targets': [ | 40 'targets': [ |
13 { | 41 { |
14 'target_name': 'mojo_base', | 42 'target_name': 'mojo_base', |
15 'type': 'none', | 43 'type': 'none', |
16 'dependencies': [ | 44 'dependencies': [ |
17 # NOTE: If adding a new dependency here, please consider whether it | 45 # NOTE: If adding a new dependency here, please consider whether it |
18 # should also be added to the list of Mojo-related dependencies of | 46 # 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 | 47 # 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 | 48 # target on iOS due to the presence of the js targets, which cause v8 |
21 # to be built. | 49 # to be built. |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
123 { | 151 { |
124 # GN version: //mojo/common:mojo_common_unittests | 152 # GN version: //mojo/common:mojo_common_unittests |
125 'target_name': 'mojo_common_unittests', | 153 'target_name': 'mojo_common_unittests', |
126 'type': 'executable', | 154 'type': 'executable', |
127 'dependencies': [ | 155 'dependencies': [ |
128 '../base/base.gyp:base', | 156 '../base/base.gyp:base', |
129 '../base/base.gyp:test_support_base', | 157 '../base/base.gyp:test_support_base', |
130 '../base/base.gyp:base_message_loop_tests', | 158 '../base/base.gyp:base_message_loop_tests', |
131 '../testing/gtest.gyp:gtest', | 159 '../testing/gtest.gyp:gtest', |
132 '../url/url.gyp:url_lib', | 160 '../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', | 161 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings', |
137 '../third_party/mojo/mojo_public.gyp:mojo_public_test_utils', | 162 '../third_party/mojo/mojo_public.gyp:mojo_public_test_utils', |
138 'mojo_common_lib', | 163 'mojo_common_lib', |
| 164 'mojo_edk.gyp:mojo_system_impl', |
| 165 'mojo_edk.gyp:mojo_common_test_support', |
| 166 'mojo_edk.gyp:mojo_run_all_unittests', |
139 'mojo_environment_chromium', | 167 'mojo_environment_chromium', |
140 'mojo_message_pump_lib', | 168 'mojo_message_pump_lib', |
141 'mojo_url_type_converters', | 169 'mojo_url_type_converters', |
142 ], | 170 ], |
143 'sources': [ | 171 'sources': [ |
144 'common/common_type_converters_unittest.cc', | 172 'common/common_type_converters_unittest.cc', |
145 'message_pump/handle_watcher_unittest.cc', | 173 'message_pump/handle_watcher_unittest.cc', |
146 'message_pump/message_pump_mojo_unittest.cc', | 174 'message_pump/message_pump_mojo_unittest.cc', |
147 ], | 175 ], |
148 }, | 176 }, |
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
279 'test/test_utils_posix.cc', | 307 'test/test_utils_posix.cc', |
280 'test/test_utils_win.cc', | 308 'test/test_utils_win.cc', |
281 ], | 309 ], |
282 }, | 310 }, |
283 { | 311 { |
284 # GN version: //mojo/shell/public/cpp/tests | 312 # GN version: //mojo/shell/public/cpp/tests |
285 'target_name': 'mojo_public_application_unittests', | 313 'target_name': 'mojo_public_application_unittests', |
286 'type': 'executable', | 314 'type': 'executable', |
287 'dependencies': [ | 315 'dependencies': [ |
288 'mojo_application_base', | 316 'mojo_application_base', |
| 317 'mojo_edk.gyp:mojo_run_all_unittests', |
289 '../base/base.gyp:base', | 318 '../base/base.gyp:base', |
290 '../testing/gtest.gyp:gtest', | 319 '../testing/gtest.gyp:gtest', |
291 '../third_party/mojo/mojo_edk.gyp:mojo_run_all_unittests', | |
292 '../third_party/mojo/mojo_public.gyp:mojo_utility', | 320 '../third_party/mojo/mojo_public.gyp:mojo_utility', |
293 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', | 321 '../third_party/mojo/mojo_public.gyp:mojo_environment_standalone', |
294 ], | 322 ], |
295 'sources': [ | 323 'sources': [ |
296 'shell/public/cpp/tests/service_registry_unittest.cc', | 324 'shell/public/cpp/tests/service_registry_unittest.cc', |
297 ], | 325 ], |
298 }, | 326 }, |
299 ], | 327 ], |
300 'conditions': [ | 328 'conditions': [ |
301 ['OS=="android"', { | 329 ['OS=="android"', { |
(...skipping 14 matching lines...) Expand all Loading... |
316 }, | 344 }, |
317 'includes': [ '../build/jni_generator.gypi' ], | 345 'includes': [ '../build/jni_generator.gypi' ], |
318 }, | 346 }, |
319 { | 347 { |
320 'target_name': 'libmojo_system_java', | 348 'target_name': 'libmojo_system_java', |
321 'type': 'static_library', | 349 'type': 'static_library', |
322 'dependencies': [ | 350 'dependencies': [ |
323 '../base/base.gyp:base', | 351 '../base/base.gyp:base', |
324 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', | 352 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn
amic_annotations', |
325 'mojo_common_lib', | 353 'mojo_common_lib', |
326 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl', | 354 'mojo_edk.gyp:mojo_system_impl', |
327 'mojo_environment_chromium', | 355 'mojo_environment_chromium', |
328 'mojo_jni_headers', | 356 'mojo_jni_headers', |
329 ], | 357 ], |
330 'sources': [ | 358 'sources': [ |
331 'android/system/core_impl.cc', | 359 'android/system/core_impl.cc', |
332 'android/system/core_impl.h', | 360 'android/system/core_impl.h', |
333 ], | 361 ], |
334 }, | 362 }, |
335 { | 363 { |
336 'target_name': 'mojo_java_set_jni_headers', | 364 'target_name': 'mojo_java_set_jni_headers', |
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
368 '../build/isolate.gypi', | 396 '../build/isolate.gypi', |
369 ], | 397 ], |
370 'sources': [ | 398 'sources': [ |
371 'mojo_common_unittests.isolate', | 399 'mojo_common_unittests.isolate', |
372 ], | 400 ], |
373 }, | 401 }, |
374 ], | 402 ], |
375 }], | 403 }], |
376 ] | 404 ] |
377 } | 405 } |
OLD | NEW |