blob: a067353fa3a930a2dd9bd91ee24c993c5f888646 [file] [log] [blame]
[email protected]7e77c0d2014-07-30 22:54:061# 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.
4
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.
8{
rockotb04b89b52016-06-09 03:58:569 'variables': {
10 'chromium_code': 1,
11 },
[email protected]7e77c0d2014-07-30 22:54:0612 'targets': [
13 {
14 'target_name': 'mojo_base',
15 'type': 'none',
16 'dependencies': [
blundell475263c2014-09-12 13:14:2117 # 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
21 # to be built.
[email protected]7e77c0d2014-07-30 22:54:0622 'mojo_common_lib',
23 'mojo_common_unittests',
[email protected]7e77c0d2014-07-30 22:54:0624 ],
25 'conditions': [
26 ['OS == "android"', {
27 'dependencies': [
rockotc637caf9b2016-02-10 09:57:0828 'mojo_public.gyp:mojo_bindings_java',
29 'mojo_public.gyp:mojo_public_java',
[email protected]7e77c0d2014-07-30 22:54:0630 ],
31 }],
32 ]
33 },
34 {
35 'target_name': 'mojo_none',
36 'type': 'none',
37 },
38 {
[email protected]7e77c0d2014-07-30 22:54:0639 # GN version: //mojo/common
40 'target_name': 'mojo_common_lib',
41 'type': '<(component)',
42 'defines': [
43 'MOJO_COMMON_IMPLEMENTATION',
44 ],
45 'dependencies': [
46 '../base/base.gyp:base',
rockotb04b89b52016-06-09 03:58:5647 '../mojo/mojo_public.gyp:mojo_public_system',
[email protected]7e77c0d2014-07-30 22:54:0648 ],
[email protected]7e77c0d2014-07-30 22:54:0649 'sources': [
50 'common/common_type_converters.cc',
51 'common/common_type_converters.h',
rockot7c94aa52015-05-18 20:13:5752 'common/data_pipe_file_utils.cc',
[email protected]7e77c0d2014-07-30 22:54:0653 'common/data_pipe_utils.cc',
54 'common/data_pipe_utils.h',
[email protected]7e77c0d2014-07-30 22:54:0655 ],
56 },
57 {
yzshencac92882016-04-19 16:54:1058 # GN version: //mojo/common:common_custom_types
ben76612102016-04-21 19:24:2459 'target_name': 'mojo_common_custom_types_mojom',
60 'type': 'none',
yzshencac92882016-04-19 16:54:1061 'variables': {
ben76612102016-04-21 19:24:2462 'mojom_files': [
63 'common/common_custom_types.mojom',
64 ],
yzshencac92882016-04-19 16:54:1065 'mojom_typemaps': [
66 'common/common_custom_types.typemap',
67 ],
68 },
yzshencac92882016-04-19 16:54:1069 'dependencies': [
70 '../ipc/ipc.gyp:ipc',
71 ],
ben76612102016-04-21 19:24:2472 'includes': [ 'mojom_bindings_generator_explicit.gypi' ],
yzshencac92882016-04-19 16:54:1073 },
74 {
yzshencac92882016-04-19 16:54:1075 # GN version: //mojo/common:test_common_custom_types
76 'target_name': 'mojo_test_common_custom_types',
77 'type': 'static_library',
78 'variables': {
79 'mojom_typemaps': [
80 'common/common_custom_types.typemap',
81 ],
82 },
83 'sources': [
84 'common/test_common_custom_types.mojom',
85 ],
86 'dependencies': [
ben76612102016-04-21 19:24:2487 'mojo_common_custom_types_mojom',
yzshencac92882016-04-19 16:54:1088 ],
89 'includes': [ 'mojom_bindings_generator.gypi' ],
90 },
91 {
[email protected]22166212014-08-21 08:35:3492 # GN version: //mojo/common:mojo_common_unittests
[email protected]7e77c0d2014-07-30 22:54:0693 'target_name': 'mojo_common_unittests',
94 'type': 'executable',
95 'dependencies': [
96 '../base/base.gyp:base',
jamesra9125262014-11-19 01:35:2897 '../base/base.gyp:test_support_base',
[email protected]7e77c0d2014-07-30 22:54:0698 '../base/base.gyp:base_message_loop_tests',
99 '../testing/gtest.gyp:gtest',
100 '../url/url.gyp:url_lib',
ben76612102016-04-21 19:24:24101 'mojo_common_custom_types_mojom',
skyadd030b2015-08-07 01:06:18102 'mojo_common_lib',
yzshencac92882016-04-19 16:54:10103 'mojo_test_common_custom_types',
rockotc637caf9b2016-02-10 09:57:08104 'mojo_edk.gyp:mojo_system_impl',
105 'mojo_edk.gyp:mojo_common_test_support',
106 'mojo_edk.gyp:mojo_run_all_unittests',
rockotc637caf9b2016-02-10 09:57:08107 'mojo_public.gyp:mojo_cpp_bindings',
108 'mojo_public.gyp:mojo_public_test_utils',
[email protected]7e77c0d2014-07-30 22:54:06109 ],
110 'sources': [
yzshencac92882016-04-19 16:54:10111 'common/common_custom_types_unittest.cc',
[email protected]7e77c0d2014-07-30 22:54:06112 'common/common_type_converters_unittest.cc',
blundell475263c2014-09-12 13:14:21113 ],
[email protected]7e77c0d2014-07-30 22:54:06114 },
[email protected]7e77c0d2014-07-30 22:54:06115 ],
116 'conditions': [
117 ['OS=="android"', {
118 'targets': [
119 {
120 'target_name': 'mojo_jni_headers',
121 'type': 'none',
122 'dependencies': [
123 'mojo_java_set_jni_headers',
124 ],
125 'sources': [
126 'android/javatests/src/org/chromium/mojo/MojoTestCase.java',
Benjamin Lerman6a55ddd72014-08-29 07:57:07127 'android/javatests/src/org/chromium/mojo/bindings/ValidationTestUtil.java',
[email protected]7e77c0d2014-07-30 22:54:06128 'android/system/src/org/chromium/mojo/system/impl/CoreImpl.java',
[email protected]7e77c0d2014-07-30 22:54:06129 ],
130 'variables': {
131 'jni_gen_package': 'mojo',
James Robinson22758b82014-10-28 04:35:52132 },
[email protected]7e77c0d2014-07-30 22:54:06133 'includes': [ '../build/jni_generator.gypi' ],
134 },
135 {
James Robinson22758b82014-10-28 04:35:52136 'target_name': 'libmojo_system_java',
137 'type': 'static_library',
138 'dependencies': [
139 '../base/base.gyp:base',
James Robinson22758b82014-10-28 04:35:52140 'mojo_common_lib',
rockotc637caf9b2016-02-10 09:57:08141 'mojo_edk.gyp:mojo_system_impl',
James Robinson22758b82014-10-28 04:35:52142 'mojo_jni_headers',
dpranke098b5f82016-04-30 01:32:45143 'mojo_public.gyp:mojo_message_pump_lib',
James Robinson22758b82014-10-28 04:35:52144 ],
145 'sources': [
146 'android/system/core_impl.cc',
147 'android/system/core_impl.h',
148 ],
149 },
150 {
[email protected]7e77c0d2014-07-30 22:54:06151 'target_name': 'mojo_java_set_jni_headers',
152 'type': 'none',
153 'variables': {
154 'jni_gen_package': 'mojo',
155 'input_java_class': 'java/util/HashSet.class',
156 },
157 'includes': [ '../build/jar_file_jni_generator.gypi' ],
158 },
159 {
160 'target_name': 'mojo_system_java',
161 'type': 'none',
162 'dependencies': [
163 '../base/base.gyp:base_java',
ppif581fe92014-10-08 18:52:19164 'libmojo_system_java',
rockotc637caf9b2016-02-10 09:57:08165 'mojo_public.gyp:mojo_public_java',
[email protected]7e77c0d2014-07-30 22:54:06166 ],
167 'variables': {
168 'java_in_dir': '<(DEPTH)/mojo/android/system',
169 },
170 'includes': [ '../build/java.gypi' ],
171 },
maruel194f4c62015-07-13 20:39:30172 ],
173 }],
174 ['test_isolation_mode != "noop"', {
175 'targets': [
176 {
177 'target_name': 'mojo_common_unittests_run',
178 'type': 'none',
179 'dependencies': [
180 'mojo_common_unittests',
181 ],
182 'includes': [
183 '../build/isolate.gypi',
184 ],
185 'sources': [
186 'mojo_common_unittests.isolate',
187 ],
188 },
189 ],
190 }],
[email protected]7e77c0d2014-07-30 22:54:06191 ]
[email protected]f723adfa2014-08-12 17:06:40192}