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 '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 'mojo_public.gyp:mojo_bindings_java',
29 '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 '../url/url.gyp:url_lib',
48 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
49 '<(mojo_system_for_component)',
51 'export_dependent_settings': [
52 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
55 'common/common_type_converters.cc',
56 'common/common_type_converters.h',
57 'common/data_pipe_utils.cc',
58 'common/data_pipe_utils.h',
59 'common/handle_watcher.cc',
60 'common/handle_watcher.h',
61 'common/message_pump_mojo.cc',
62 'common/message_pump_mojo.h',
63 'common/message_pump_mojo_handler.h',
64 'common/time_helper.cc',
65 'common/time_helper.h',
69 # GN version: //mojo/common:mojo_common_unittests
70 'target_name': 'mojo_common_unittests',
73 '../base/base.gyp:base',
74 '../base/base.gyp:test_support_base',
75 '../base/base.gyp:base_message_loop_tests',
76 '../testing/gtest.gyp:gtest',
77 '../url/url.gyp:url_lib',
79 'mojo_edk.gyp:mojo_system_impl',
80 'mojo_edk.gyp:mojo_common_test_support',
81 'mojo_edk.gyp:mojo_run_all_unittests',
82 'mojo_environment_chromium',
83 'mojo_public.gyp:mojo_cpp_bindings',
84 'mojo_public.gyp:mojo_public_test_utils',
87 'common/common_type_converters_unittest.cc',
88 'common/handle_watcher_unittest.cc',
89 'common/message_pump_mojo_unittest.cc',
93 # GN version: //mojo/environment:chromium
94 'target_name': 'mojo_environment_chromium',
95 'type': 'static_library',
97 'mojo_environment_chromium_impl',
100 'environment/environment.cc',
101 # TODO(vtl): This is kind of ugly. (See TODO in logging.h.)
102 "public/cpp/environment/logging.h",
103 "public/cpp/environment/lib/logging.cc",
108 'export_dependent_settings': [
109 'mojo_environment_chromium_impl',
113 # GN version: //mojo/environment:chromium_impl
114 'target_name': 'mojo_environment_chromium_impl',
115 'type': '<(component)',
117 'MOJO_ENVIRONMENT_IMPL_IMPLEMENTATION',
120 '../base/base.gyp:base',
121 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
123 '<(mojo_system_for_component)',
126 'environment/default_async_waiter_impl.cc',
127 'environment/default_async_waiter_impl.h',
128 'environment/default_logger_impl.cc',
129 'environment/default_logger_impl.h',
130 'environment/default_run_loop_impl.cc',
131 'environment/default_run_loop_impl.h',
138 # GN version: //mojo/application
139 'target_name': 'mojo_application_chromium',
140 'type': 'static_library',
142 'application/application_runner_chromium.cc',
143 'application/application_runner_chromium.h',
147 'mojo_environment_chromium',
148 'mojo_public.gyp:mojo_application_base',
150 'export_dependent_settings': [
151 'mojo_public.gyp:mojo_application_base',
159 'target_name': 'mojo_jni_headers',
162 'mojo_java_set_jni_headers',
165 'android/javatests/src/org/chromium/mojo/MojoTestCase.java',
166 'android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java',
167 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java',
170 'jni_gen_package': 'mojo',
172 'includes': [ '../build/jni_generator.gypi' ],
175 'target_name': 'libmojo_system_java',
176 'type': 'static_library',
178 '../base/base.gyp:base',
179 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
181 'mojo_edk.gyp:mojo_system_impl',
182 'mojo_environment_chromium',
186 'android/system/core_impl.cc',
187 'android/system/core_impl.h',
191 'target_name': 'mojo_java_set_jni_headers',
194 'jni_gen_package': 'mojo',
195 'input_java_class': 'java/util/HashSet.class',
197 'includes': [ '../build/jar_file_jni_generator.gypi' ],
200 'target_name': 'mojo_system_java',
203 '../base/base.gyp:base_java',
204 'libmojo_system_java',
205 'mojo_public.gyp:mojo_public_java',
208 'java_in_dir': '<(DEPTH)/mojo/android/system',
210 'includes': [ '../build/java.gypi' ],