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
3 # found in the LICENSE file.
5 # Essential components (and their tests) that are needed to build
6 # Chrome should be here. Other components that are useful only in
7 # Mojo land like mojo_shell should be in mojo.gyp.
10 '../third_party/mojo/mojo_variables.gypi',
14 'target_name': 'mojo_base',
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
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
23 'mojo_common_unittests',
28 '../third_party/mojo/mojo_public.gyp:mojo_bindings_java',
29 '../third_party/mojo/mojo_public.gyp:mojo_public_java',
35 'target_name': 'mojo_none',
39 # GN version: //mojo/common
40 'target_name': 'mojo_common_lib',
41 'type': '<(component)',
43 'MOJO_COMMON_IMPLEMENTATION',
46 '../base/base.gyp:base',
47 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
48 '<(mojo_system_for_component)',
50 'export_dependent_settings': [
51 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
54 'common/common_type_converters.cc',
55 'common/common_type_converters.h',
56 'common/data_pipe_utils.cc',
57 'common/data_pipe_utils.h',
58 'common/handle_watcher.cc',
59 'common/handle_watcher.h',
60 'common/message_pump_mojo.cc',
61 'common/message_pump_mojo.h',
62 'common/message_pump_mojo_handler.h',
63 'common/time_helper.cc',
64 'common/time_helper.h',
68 # GN version: //mojo/common:url_type_converters
69 'target_name': 'mojo_url_type_converters',
70 'type': 'static_library',
72 '../base/base.gyp:base',
73 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
74 '../url/url.gyp:url_lib',
75 '<(mojo_system_for_component)',
77 'export_dependent_settings': [
78 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
81 'common/url_type_converters.cc',
82 'common/url_type_converters.h',
86 # GN version: //mojo/common:mojo_common_unittests
87 'target_name': 'mojo_common_unittests',
90 '../base/base.gyp:base',
91 '../base/base.gyp:test_support_base',
92 '../base/base.gyp:base_message_loop_tests',
93 '../testing/gtest.gyp:gtest',
94 '../url/url.gyp:url_lib',
96 'mojo_url_type_converters',
97 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
98 '../third_party/mojo/mojo_edk.gyp:mojo_common_test_support',
99 '../third_party/mojo/mojo_edk.gyp:mojo_run_all_unittests',
100 'mojo_environment_chromium',
101 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
102 '../third_party/mojo/mojo_public.gyp:mojo_public_test_utils',
105 'common/common_type_converters_unittest.cc',
106 'common/handle_watcher_unittest.cc',
107 'common/message_pump_mojo_unittest.cc',
111 # GN version: //mojo/environment:chromium
112 'target_name': 'mojo_environment_chromium',
113 'type': 'static_library',
115 'mojo_environment_chromium_impl',
116 '../third_party/mojo/mojo_public.gyp:mojo_cpp_bindings',
119 'environment/environment.cc',
120 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.)
121 "../third_party/mojo/src/mojo/public/cpp/environment/async_waiter.h",
122 "../third_party/mojo/src/mojo/public/cpp/environment/lib/async_waiter.cc",
123 "../third_party/mojo/src/mojo/public/cpp/environment/logging.h",
124 "../third_party/mojo/src/mojo/public/cpp/environment/lib/logging.cc",
128 '../third_party/mojo/src',
130 'direct_dependent_settings': {
132 '../third_party/mojo/src',
135 'export_dependent_settings': [
136 'mojo_environment_chromium_impl',
140 # GN version: //mojo/environment:chromium_impl
141 'target_name': 'mojo_environment_chromium_impl',
142 'type': '<(component)',
144 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
147 '../base/base.gyp:base',
148 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
150 '<(mojo_system_for_component)',
153 'environment/default_async_waiter_impl.cc',
154 'environment/default_async_waiter_impl.h',
155 'environment/default_logger_impl.cc',
156 'environment/default_logger_impl.h',
157 'environment/default_run_loop_impl.cc',
158 'environment/default_run_loop_impl.h',
162 '../third_party/mojo/src',
164 'direct_dependent_settings': {
166 '../third_party/mojo/src',
171 # GN version: //mojo/application
172 'target_name': 'mojo_application_chromium',
173 'type': 'static_library',
175 'application/application_runner_chromium.cc',
176 'application/application_runner_chromium.h',
180 'mojo_environment_chromium',
181 '../third_party/mojo/mojo_public.gyp:mojo_application_base',
183 'export_dependent_settings': [
184 '../third_party/mojo/mojo_public.gyp:mojo_application_base',
192 'target_name': 'mojo_jni_headers',
195 'mojo_java_set_jni_headers',
198 'android/javatests/src/org/chromium/mojo/MojoTestCase.java',
199 'android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java',
200 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java',
203 'jni_gen_package': 'mojo',
205 'includes': [ '../build/jni_generator.gypi' ],
208 'target_name': 'libmojo_system_java',
209 'type': 'static_library',
211 '../base/base.gyp:base',
212 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
214 '../third_party/mojo/mojo_edk.gyp:mojo_system_impl',
215 'mojo_environment_chromium',
219 'android/system/core_impl.cc',
220 'android/system/core_impl.h',
224 'target_name': 'mojo_java_set_jni_headers',
227 'jni_gen_package': 'mojo',
228 'input_java_class': 'java/util/HashSet.class',
230 'includes': [ '../build/jar_file_jni_generator.gypi' ],
233 'target_name': 'mojo_system_java',
236 '../base/base.gyp:base_java',
237 'libmojo_system_java',
238 '../third_party/mojo/mojo_public.gyp:mojo_public_java',
241 'java_in_dir': '<(DEPTH)/mojo/android/system',
243 'includes': [ '../build/java.gypi' ],