blob: d363175fb4650c5bf230078230da11d78afb4047 [file] [log] [blame]
[email protected]02657da2013-09-16 02:55:181# Copyright 2013 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{
6 'variables': {
[email protected]3d58663b2013-09-28 00:30:047 'chromium_code': 1,
[email protected]02657da2013-09-16 02:55:188 },
9 'target_defaults': {
10 'defines': ['MOJO_IMPLEMENTATION'],
11 },
12 'targets': [
13 {
14 'target_name': 'mojo',
15 'type': 'none',
[email protected]3d58663b2013-09-28 00:30:0416 'dependencies': [
17 'mojo_public_test_support',
18 'mojo_public_unittests',
19 'mojo_public_perftests',
20 'mojo_system',
21 'mojo_system_unittests',
22 ],
23 },
24 {
25 'target_name': 'mojo_public_test_support',
26 'type': 'static_library',
27 'dependencies': [
28 '../base/base.gyp:base',
29 '../testing/gtest.gyp:gtest',
30 'mojo_system',
31 ],
32 'sources': [
33 'public/tests/test_support.cc',
34 'public/tests/test_support.h',
35 ],
36 },
37 {
38 'target_name': 'mojo_public_unittests',
39 'type': 'executable',
40 'dependencies': [
41 '../base/base.gyp:run_all_unittests',
42 '../testing/gtest.gyp:gtest',
43 'mojo_public_test_support',
44 'mojo_system',
45 ],
46 'sources': [
47 'public/tests/system_core_unittest.cc',
48 ],
49 },
50 {
51 'target_name': 'mojo_public_perftests',
52 'type': 'executable',
53 'dependencies': [
54 '../base/base.gyp:base',
55 '../base/base.gyp:test_support_perf',
56 '../testing/gtest.gyp:gtest',
57 'mojo_public_test_support',
58 'mojo_system',
59 ],
60 'sources': [
61 'public/tests/system_core_perftest.cc',
62 ],
63 },
64 {
65 'target_name': 'mojo_system',
66 # TODO(vtl): This should probably be '<(component)'; make it work.
[email protected]6cf6ca52013-10-10 20:52:1167 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:0468 'dependencies': [
69 '../base/base.gyp:base',
70 ],
[email protected]6cf6ca52013-10-10 20:52:1171 'defines': [
72 'MOJO_SYSTEM_IMPLEMENTATION',
73 ],
[email protected]3d58663b2013-09-28 00:30:0474 'sources': [
[email protected]3d58663b2013-09-28 00:30:0475 'system/core.cc',
76 'system/core_impl.cc',
77 'system/core_impl.h',
78 'system/dispatcher.cc',
79 'system/dispatcher.h',
80 'system/limits.h',
[email protected]989f8bc2013-10-16 00:24:3781 'system/local_message_pipe_endpoint.cc',
82 'system/local_message_pipe_endpoint.h',
[email protected]3d58663b2013-09-28 00:30:0483 'system/memory.cc',
84 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:3485 'system/message_in_transit.cc',
86 'system/message_in_transit.h',
[email protected]3d58663b2013-09-28 00:30:0487 'system/message_pipe.cc',
88 'system/message_pipe.h',
89 'system/message_pipe_dispatcher.cc',
90 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:3791 'system/message_pipe_endpoint.cc',
92 'system/message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:1893 'system/platform_channel_handle.h',
94 'system/raw_channel.h',
95 'system/raw_channel_posix.cc',
[email protected]3d58663b2013-09-28 00:30:0496 'system/simple_dispatcher.cc',
97 'system/simple_dispatcher.h',
98 'system/waiter.cc',
99 'system/waiter.h',
100 'system/waiter_list.cc',
101 'system/waiter_list.h',
102 ],
103 'direct_dependent_settings': {
104 'include_dirs': [
105 '..',
106 ],
107 },
108 },
109 {
110 'target_name': 'mojo_system_unittests',
111 'type': 'executable',
112 'dependencies': [
113 '../base/base.gyp:run_all_unittests',
114 '../testing/gtest.gyp:gtest',
115 'mojo_system',
116 ],
117 'sources': [
118 'system/core_impl_unittest.cc',
119 'system/core_test_base.cc',
120 'system/core_test_base.h',
121 'system/dispatcher_unittest.cc',
122 'system/message_pipe_dispatcher_unittest.cc',
123 'system/message_pipe_unittest.cc',
[email protected]5a0d0062013-10-11 19:07:18124 'system/raw_channel_posix_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04125 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57126 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04127 'system/test_utils.h',
128 'system/waiter_list_unittest.cc',
129 'system/waiter_test_utils.cc',
130 'system/waiter_test_utils.h',
131 'system/waiter_unittest.cc',
132 ],
[email protected]02657da2013-09-16 02:55:18133 },
[email protected]6cf6ca52013-10-10 20:52:11134 {
[email protected]786d75c2013-10-24 20:29:35135 'target_name': 'mojo_shell_lib',
136 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11137 'dependencies': [
138 '../base/base.gyp:base',
[email protected]eba6f512013-10-19 00:17:09139 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08140 '../url/url.gyp:url_lib',
[email protected]6cf6ca52013-10-10 20:52:11141 'mojo_system',
142 ],
143 'sources': [
144 'shell/app_container.cc',
145 'shell/app_container.h',
[email protected]6e50d5e42013-10-27 02:45:46146 'shell/context.cc',
147 'shell/context.h',
[email protected]0be9b242013-10-28 06:28:38148 'shell/loader.cc',
149 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30150 'shell/network_delegate.cc',
151 'shell/network_delegate.h',
[email protected]adeb6f72013-10-25 08:05:02152 'shell/run.cc',
153 'shell/run.h',
[email protected]eba6f512013-10-19 00:17:09154 'shell/storage.cc',
155 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11156 'shell/switches.cc',
157 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09158 'shell/task_runners.cc',
159 'shell/task_runners.h',
[email protected]0be9b242013-10-28 06:28:38160 'shell/url_request_context_getter.cc',
161 'shell/url_request_context_getter.h',
[email protected]6cf6ca52013-10-10 20:52:11162 ],
[email protected]6838e3c2013-10-11 20:16:22163 'conditions': [
164 ['OS == "win"', {
165 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
166 'msvs_disabled_warnings': [
167 4267,
168 ],
169 }],
170 ],
[email protected]6cf6ca52013-10-10 20:52:11171 },
172 {
[email protected]786d75c2013-10-24 20:29:35173 'target_name': 'mojo_shell',
174 'type': 'executable',
175 'dependencies': [
176 '../base/base.gyp:base',
177 '../url/url.gyp:url_lib',
178 'mojo_shell_lib',
179 'mojo_system',
180 ],
181 'sources': [
[email protected]adeb6f72013-10-25 08:05:02182 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35183 ],
184 'conditions': [
185 ['OS == "win"', {
186 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
187 'msvs_disabled_warnings': [
188 4267,
189 ],
190 }],
191 ],
192 },
193 {
[email protected]6cf6ca52013-10-10 20:52:11194 'target_name': 'sample_app',
[email protected]e5fc9bff2013-10-27 09:48:47195 'type': 'shared_library',
[email protected]6cf6ca52013-10-10 20:52:11196 'dependencies': [
197 '../base/base.gyp:base',
198 'mojo_system',
199 ],
200 'sources': [
[email protected]0be9b242013-10-28 06:28:38201 'examples/sample_app/sample_app.cc',
[email protected]6cf6ca52013-10-10 20:52:11202 ],
203 },
[email protected]6838e3c2013-10-11 20:16:22204 {
205 'target_name': 'mojo_bindings',
206 'type': 'static_library',
207 'include_dirs': [
208 '..'
209 ],
210 'sources': [
211 'public/bindings/lib/bindings.h',
212 'public/bindings/lib/bindings_internal.h',
213 'public/bindings/lib/bindings_serialization.cc',
214 'public/bindings/lib/bindings_serialization.h',
215 'public/bindings/lib/buffer.cc',
216 'public/bindings/lib/buffer.h',
217 'public/bindings/lib/message.cc',
218 'public/bindings/lib/message.h',
219 'public/bindings/lib/message_builder.cc',
220 'public/bindings/lib/message_builder.h',
221 ],
222 },
223 {
224 'target_name': 'mojo_bindings_test',
225 'type': 'executable',
226 'include_dirs': [
227 '..'
228 ],
229 'dependencies': [
230 'mojo_bindings',
231 ],
232 'sources': [
[email protected]80b94a32013-10-29 20:12:16233 'public/bindings/sample/generated/sample_bar.cc',
234 'public/bindings/sample/generated/sample_bar.h',
235 'public/bindings/sample/generated/sample_bar_serialization.cc',
236 'public/bindings/sample/generated/sample_bar_serialization.h',
237 'public/bindings/sample/generated/sample_foo.cc',
238 'public/bindings/sample/generated/sample_foo.h',
239 'public/bindings/sample/generated/sample_foo_serialization.cc',
240 'public/bindings/sample/generated/sample_foo_serialization.h',
[email protected]6838e3c2013-10-11 20:16:22241 'public/bindings/sample/generated/sample_service.h',
242 'public/bindings/sample/generated/sample_service_proxy.cc',
[email protected]80b94a32013-10-29 20:12:16243 'public/bindings/sample/generated/sample_service_serialization.cc',
[email protected]6838e3c2013-10-11 20:16:22244 'public/bindings/sample/generated/sample_service_serialization.h',
245 'public/bindings/sample/generated/sample_service_stub.cc',
246 'public/bindings/sample/sample_test.cc',
247 ],
248 },
[email protected]02657da2013-09-16 02:55:18249 ],
[email protected]786d75c2013-10-24 20:29:35250 'conditions': [
251 ['OS=="android"', {
252 'targets': [
253 {
[email protected]adeb6f72013-10-25 08:05:02254 'target_name': 'java_set_jni_headers',
255 'type': 'none',
256 'variables': {
257 'jni_gen_package': 'mojo',
258 'input_java_class': 'java/util/HashSet.class',
259 },
260 'includes': [ '../build/jar_file_jni_generator.gypi' ],
261 },
262 {
263 'target_name': 'mojo_jni_headers',
264 'type': 'none',
265 'dependencies': [
266 'java_set_jni_headers',
267 ],
268 'direct_dependent_settings': {
269 'include_dirs': [
270 '<(SHARED_INTERMEDIATE_DIR)/mojo',
271 ],
272 },
273 'sources': [
[email protected]0be9b242013-10-28 06:28:38274 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
[email protected]570c26d2013-10-30 04:07:46275 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoView.java',
[email protected]adeb6f72013-10-25 08:05:02276 ],
277 'variables': {
278 'jni_gen_package': 'mojo'
279 },
280 'includes': [ '../build/jni_generator.gypi' ],
281 },
282 {
[email protected]786d75c2013-10-24 20:29:35283 'target_name': 'libmojo_shell',
284 'type': 'shared_library',
285 'dependencies': [
286 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02287 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46288 '../ui/gfx/gfx.gyp:gfx',
289 '../ui/gl/gl.gyp:gl',
[email protected]adeb6f72013-10-25 08:05:02290 'mojo_jni_headers',
[email protected]786d75c2013-10-24 20:29:35291 'mojo_shell_lib',
292 ],
293 'sources': [
294 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02295 'shell/android/mojo_main.cc',
296 'shell/android/mojo_main.h',
[email protected]570c26d2013-10-30 04:07:46297 'shell/android/mojo_view.cc',
298 'shell/android/mojo_view.h',
[email protected]786d75c2013-10-24 20:29:35299 ],
300 },
301 {
302 'target_name': 'mojo_shell_apk',
303 'type': 'none',
304 'dependencies': [
305 '../base/base.gyp:base_java',
306 '../net/net.gyp:net_java',
307 'libmojo_shell',
308 ],
309 'variables': {
310 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38311 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
312 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35313 'native_lib_target': 'libmojo_shell',
314 },
315 'includes': [ '../build/java_apk.gypi' ],
316 }
317 ],
318 }],
319 ],
[email protected]02657da2013-09-16 02:55:18320}