blob: d7784055f5ea6dc78cbcb74bad100ae8315082fd [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 },
[email protected]3cf4aad2013-12-01 17:27:259 'includes': [
[email protected]de3d0b02013-12-03 23:18:2510 'mojo_apps.gypi',
[email protected]3cf4aad2013-12-01 17:27:2511 'mojo_examples.gypi',
12 'mojo_public.gypi',
13 'mojo_services.gypi',
14 ],
[email protected]02657da2013-09-16 02:55:1815 'targets': [
16 {
17 'target_name': 'mojo',
18 'type': 'none',
[email protected]3d58663b2013-09-28 00:30:0419 'dependencies': [
[email protected]b4aef952013-11-26 23:25:4520 'mojo_bindings',
21 'mojo_bindings_unittests',
[email protected]cbf7e962013-11-07 20:35:5222 'mojo_common_lib',
23 'mojo_common_unittests',
[email protected]67f839c92013-12-11 03:26:4024 'mojo_hello_world_service',
[email protected]93830742013-11-08 12:17:2425 'mojo_js',
[email protected]de3d0b02013-12-03 23:18:2526 'mojo_js_unittests',
[email protected]b4aef952013-11-26 23:25:4527 'mojo_public_perftests',
28 'mojo_public_test_support',
29 'mojo_public_unittests',
[email protected]67f839c92013-12-11 03:26:4030 'mojo_sample_app',
[email protected]b4aef952013-11-26 23:25:4531 'mojo_shell',
32 'mojo_shell_lib',
33 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:4734 'mojo_system_impl',
[email protected]b4aef952013-11-26 23:25:4535 'mojo_system_unittests',
[email protected]273e2172013-12-10 07:24:1636 'mojo_utility',
37 'mojo_utility_unittests',
[email protected]3d58663b2013-09-28 00:30:0438 ],
39 },
40 {
[email protected]4b4068d2013-11-11 21:12:0341 'target_name': 'mojo_run_all_unittests',
42 'type': 'static_library',
43 'dependencies': [
44 '../base/base.gyp:base',
45 '../base/base.gyp:test_support_base',
[email protected]d16a5b42013-12-03 17:47:2446 '../testing/gtest.gyp:gtest',
[email protected]4b4068d2013-11-11 21:12:0347 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:4748 'mojo_system_impl',
[email protected]4b4068d2013-11-11 21:12:0349 ],
50 'sources': [
[email protected]4b4068d2013-11-11 21:12:0351 'common/test/run_all_unittests.cc',
52 ],
53 },
54 {
[email protected]5f8471fb2013-11-26 23:07:2455 'target_name': 'mojo_run_all_perftests',
56 'type': 'static_library',
57 'dependencies': [
58 '../base/base.gyp:test_support_base',
59 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:4760 'mojo_system_impl',
[email protected]5f8471fb2013-11-26 23:07:2461 ],
62 'sources': [
63 'common/test/run_all_perftests.cc',
64 ],
65 },
66 {
[email protected]5fd29c12013-12-10 07:13:4767 'target_name': 'mojo_system_impl',
[email protected]6cf6ca52013-10-10 20:52:1168 'type': '<(component)',
[email protected]3d58663b2013-09-28 00:30:0469 'dependencies': [
[email protected]5fd29c12013-12-10 07:13:4770 'mojo_system',
[email protected]3d58663b2013-09-28 00:30:0471 '../base/base.gyp:base',
72 ],
[email protected]6cf6ca52013-10-10 20:52:1173 'defines': [
[email protected]5fd29c12013-12-10 07:13:4774 'MOJO_SYSTEM_IMPL_IMPLEMENTATION',
[email protected]6cf6ca52013-10-10 20:52:1175 ],
[email protected]3d58663b2013-09-28 00:30:0476 'sources': [
[email protected]ccf8453d2013-11-07 17:49:5077 'system/channel.cc',
78 'system/channel.h',
[email protected]3d58663b2013-09-28 00:30:0479 'system/core_impl.cc',
80 'system/core_impl.h',
81 'system/dispatcher.cc',
82 'system/dispatcher.h',
83 'system/limits.h',
[email protected]989f8bc2013-10-16 00:24:3784 'system/local_message_pipe_endpoint.cc',
85 'system/local_message_pipe_endpoint.h',
[email protected]3d58663b2013-09-28 00:30:0486 'system/memory.cc',
87 'system/memory.h',
[email protected]aae74e92013-10-03 20:52:3488 'system/message_in_transit.cc',
89 'system/message_in_transit.h',
[email protected]3d58663b2013-09-28 00:30:0490 'system/message_pipe.cc',
91 'system/message_pipe.h',
92 'system/message_pipe_dispatcher.cc',
93 'system/message_pipe_dispatcher.h',
[email protected]989f8bc2013-10-16 00:24:3794 'system/message_pipe_endpoint.cc',
95 'system/message_pipe_endpoint.h',
[email protected]072b8d482013-12-02 18:51:4396 'system/platform_channel.cc',
97 'system/platform_channel.h',
[email protected]2f8f0c02013-12-03 23:44:5798 'system/platform_channel_handle.cc',
[email protected]5a0d0062013-10-11 19:07:1899 'system/platform_channel_handle.h',
[email protected]072b8d482013-12-02 18:51:43100 'system/platform_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50101 'system/proxy_message_pipe_endpoint.cc',
102 'system/proxy_message_pipe_endpoint.h',
[email protected]5a0d0062013-10-11 19:07:18103 'system/raw_channel.h',
104 'system/raw_channel_posix.cc',
[email protected]ccf8453d2013-11-07 17:49:50105 'system/raw_channel_win.cc',
[email protected]3d58663b2013-09-28 00:30:04106 'system/simple_dispatcher.cc',
107 'system/simple_dispatcher.h',
108 'system/waiter.cc',
109 'system/waiter.h',
110 'system/waiter_list.cc',
111 'system/waiter_list.h',
112 ],
[email protected]3d58663b2013-09-28 00:30:04113 },
114 {
115 'target_name': 'mojo_system_unittests',
116 'type': 'executable',
117 'dependencies': [
118 '../base/base.gyp:run_all_unittests',
119 '../testing/gtest.gyp:gtest',
[email protected]1ad40142013-12-12 13:20:02120 'mojo_common_test_support',
[email protected]3d58663b2013-09-28 00:30:04121 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:47122 'mojo_system_impl',
[email protected]3d58663b2013-09-28 00:30:04123 ],
124 'sources': [
125 'system/core_impl_unittest.cc',
126 'system/core_test_base.cc',
127 'system/core_test_base.h',
128 'system/dispatcher_unittest.cc',
129 'system/message_pipe_dispatcher_unittest.cc',
130 'system/message_pipe_unittest.cc',
[email protected]1ad40142013-12-12 13:20:02131 'system/multiprocess_message_pipe_unittest.cc',
[email protected]5a0d0062013-10-11 19:07:18132 'system/raw_channel_posix_unittest.cc',
[email protected]ccf8453d2013-11-07 17:49:50133 'system/remote_message_pipe_posix_unittest.cc',
[email protected]3d58663b2013-09-28 00:30:04134 'system/simple_dispatcher_unittest.cc',
[email protected]b334246d2013-10-24 00:08:57135 'system/test_utils.cc',
[email protected]3d58663b2013-09-28 00:30:04136 'system/test_utils.h',
137 'system/waiter_list_unittest.cc',
138 'system/waiter_test_utils.cc',
139 'system/waiter_test_utils.h',
140 'system/waiter_unittest.cc',
141 ],
[email protected]02657da2013-09-16 02:55:18142 },
[email protected]6cf6ca52013-10-10 20:52:11143 {
[email protected]e1611192013-12-11 22:23:49144 'target_name': 'mojo_gles2_impl',
[email protected]99e508a42013-12-04 01:15:09145 'type': '<(component)',
146 'dependencies': [
147 '../gpu/gpu.gyp:gles2_c_lib',
[email protected]e1611192013-12-11 22:23:49148 'mojo_gles2',
[email protected]99e508a42013-12-04 01:15:09149 ],
150 'defines': [
[email protected]e1611192013-12-11 22:23:49151 'MOJO_GLES2_IMPL_IMPLEMENTATION',
[email protected]99e508a42013-12-04 01:15:09152 ],
153 'sources': [
[email protected]e1611192013-12-11 22:23:49154 'gles2/export.h',
155 'gles2/gles2_impl.cc',
156 'gles2/gles2_impl.h',
[email protected]99e508a42013-12-04 01:15:09157 ],
158 },
159 {
[email protected]3cf4aad2013-12-01 17:27:25160 'target_name': 'mojo_common_lib',
161 'type': '<(component)',
162 'defines': [
163 'MOJO_COMMON_IMPLEMENTATION',
164 ],
165 'dependencies': [
166 '../base/base.gyp:base',
167 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
168 'mojo_system',
169 ],
170 'sources': [
171 'common/bindings_support_impl.cc',
172 'common/bindings_support_impl.h',
[email protected]2229d4252013-12-08 06:53:47173 'common/common_type_converters.cc',
174 'common/common_type_converters.h',
[email protected]3cf4aad2013-12-01 17:27:25175 'common/handle_watcher.cc',
176 'common/handle_watcher.h',
177 'common/message_pump_mojo.cc',
178 'common/message_pump_mojo.h',
179 'common/message_pump_mojo_handler.h',
180 ],
181 'conditions': [
182 ['OS == "win"', {
183 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
184 'msvs_disabled_warnings': [
185 4267,
186 ],
187 }],
188 ],
189 },
190 {
[email protected]1ad40142013-12-12 13:20:02191 'target_name': 'mojo_common_test_support',
192 'type': 'static_library',
193 'dependencies': [
194 '../base/base.gyp:base',
195 '../base/base.gyp:test_support_base',
196 '../testing/gtest.gyp:gtest',
197 'mojo_system',
198 'mojo_system_impl',
199 ],
200 'sources': [
201 'common/test/multiprocess_test_base.cc',
202 'common/test/multiprocess_test_base.h',
203 ],
204 },
205 {
[email protected]3cf4aad2013-12-01 17:27:25206 'target_name': 'mojo_common_unittests',
207 'type': 'executable',
208 'dependencies': [
209 '../base/base.gyp:base',
210 '../base/base.gyp:base_message_loop_tests',
211 '../testing/gtest.gyp:gtest',
[email protected]c2a52bf2013-12-02 13:55:36212 'mojo_bindings',
[email protected]3cf4aad2013-12-01 17:27:25213 'mojo_common_lib',
[email protected]1ad40142013-12-12 13:20:02214 'mojo_common_test_support',
[email protected]c2a52bf2013-12-02 13:55:36215 'mojo_public_test_support',
[email protected]3cf4aad2013-12-01 17:27:25216 'mojo_run_all_unittests',
217 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:47218 'mojo_system_impl',
[email protected]3cf4aad2013-12-01 17:27:25219 ],
220 'sources': [
[email protected]2229d4252013-12-08 06:53:47221 'common/common_type_converters_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25222 'common/handle_watcher_unittest.cc',
223 'common/message_pump_mojo_unittest.cc',
[email protected]d16a5b42013-12-03 17:47:24224 'common/test/multiprocess_test_base_unittest.cc',
[email protected]3cf4aad2013-12-01 17:27:25225 ],
226 'conditions': [
227 ['OS == "win"', {
228 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
229 'msvs_disabled_warnings': [
230 4267,
231 ],
232 }],
233 ],
234 },
235 {
[email protected]786d75c2013-10-24 20:29:35236 'target_name': 'mojo_shell_lib',
237 'type': 'static_library',
[email protected]6cf6ca52013-10-10 20:52:11238 'dependencies': [
239 '../base/base.gyp:base',
[email protected]eba6f512013-10-19 00:17:09240 '../net/net.gyp:net',
[email protected]3c448302013-10-22 08:39:08241 '../url/url.gyp:url_lib',
[email protected]c1e5c782013-11-12 05:10:07242 'mojo_bindings',
[email protected]e1611192013-12-11 22:23:49243 'mojo_gles2_impl',
244 'mojo_native_viewport_service',
[email protected]6cf6ca52013-10-10 20:52:11245 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:47246 'mojo_system_impl',
[email protected]6cf6ca52013-10-10 20:52:11247 ],
248 'sources': [
249 'shell/app_container.cc',
250 'shell/app_container.h',
[email protected]6e50d5e42013-10-27 02:45:46251 'shell/context.cc',
252 'shell/context.h',
[email protected]40932702013-11-20 22:29:30253 'shell/init.cc',
254 'shell/init.h',
[email protected]0be9b242013-10-28 06:28:38255 'shell/loader.cc',
256 'shell/loader.h',
[email protected]c6c6e5652013-10-29 02:40:30257 'shell/network_delegate.cc',
258 'shell/network_delegate.h',
[email protected]adeb6f72013-10-25 08:05:02259 'shell/run.cc',
260 'shell/run.h',
[email protected]eba6f512013-10-19 00:17:09261 'shell/storage.cc',
262 'shell/storage.h',
[email protected]6cf6ca52013-10-10 20:52:11263 'shell/switches.cc',
264 'shell/switches.h',
[email protected]eba6f512013-10-19 00:17:09265 'shell/task_runners.cc',
266 'shell/task_runners.h',
[email protected]0be9b242013-10-28 06:28:38267 'shell/url_request_context_getter.cc',
268 'shell/url_request_context_getter.h',
[email protected]6cf6ca52013-10-10 20:52:11269 ],
[email protected]6838e3c2013-10-11 20:16:22270 'conditions': [
271 ['OS == "win"', {
272 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
273 'msvs_disabled_warnings': [
274 4267,
275 ],
276 }],
277 ],
[email protected]6cf6ca52013-10-10 20:52:11278 },
279 {
[email protected]786d75c2013-10-24 20:29:35280 'target_name': 'mojo_shell',
281 'type': 'executable',
282 'dependencies': [
283 '../base/base.gyp:base',
[email protected]42368392013-11-05 13:45:02284 '../ui/gl/gl.gyp:gl',
[email protected]786d75c2013-10-24 20:29:35285 '../url/url.gyp:url_lib',
[email protected]c1e5c782013-11-12 05:10:07286 'mojo_common_lib',
[email protected]786d75c2013-10-24 20:29:35287 'mojo_shell_lib',
288 'mojo_system',
[email protected]5fd29c12013-12-10 07:13:47289 'mojo_system_impl',
[email protected]786d75c2013-10-24 20:29:35290 ],
291 'sources': [
[email protected]adeb6f72013-10-25 08:05:02292 'shell/desktop/mojo_main.cc',
[email protected]786d75c2013-10-24 20:29:35293 ],
294 'conditions': [
295 ['OS == "win"', {
296 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
297 'msvs_disabled_warnings': [
298 4267,
299 ],
300 }],
301 ],
302 },
[email protected]02657da2013-09-16 02:55:18303 ],
[email protected]786d75c2013-10-24 20:29:35304 'conditions': [
305 ['OS=="android"', {
306 'targets': [
307 {
[email protected]99e508a42013-12-04 01:15:09308 'target_name': 'mojo_native_viewport_java',
[email protected]29ccd8e2013-11-01 16:44:56309 'type': 'none',
310 'dependencies': [
311 '../base/base.gyp:base_java',
312 ],
313 'variables': {
314 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
315 },
316 'includes': [ '../build/java.gypi' ],
317 },
318 {
[email protected]67f839c92013-12-11 03:26:40319 'target_name': 'mojo_java_set_jni_headers',
[email protected]adeb6f72013-10-25 08:05:02320 'type': 'none',
321 'variables': {
322 'jni_gen_package': 'mojo',
323 'input_java_class': 'java/util/HashSet.class',
324 },
325 'includes': [ '../build/jar_file_jni_generator.gypi' ],
326 },
327 {
328 'target_name': 'mojo_jni_headers',
329 'type': 'none',
330 'dependencies': [
[email protected]67f839c92013-12-11 03:26:40331 'mojo_java_set_jni_headers',
[email protected]adeb6f72013-10-25 08:05:02332 ],
333 'direct_dependent_settings': {
334 'include_dirs': [
335 '<(SHARED_INTERMEDIATE_DIR)/mojo',
336 ],
337 },
338 'sources': [
[email protected]92aa30ec2013-12-05 06:39:18339 'services/native_viewport/android/src/org/chromium/mojo/NativeViewportAndroid.java',
[email protected]0be9b242013-10-28 06:28:38340 'shell/android/apk/src/org/chromium/mojo_shell_apk/MojoMain.java',
[email protected]adeb6f72013-10-25 08:05:02341 ],
342 'variables': {
343 'jni_gen_package': 'mojo'
344 },
345 'includes': [ '../build/jni_generator.gypi' ],
346 },
347 {
[email protected]786d75c2013-10-24 20:29:35348 'target_name': 'libmojo_shell',
349 'type': 'shared_library',
350 'dependencies': [
351 '../base/base.gyp:base',
[email protected]adeb6f72013-10-25 08:05:02352 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
[email protected]570c26d2013-10-30 04:07:46353 '../ui/gfx/gfx.gyp:gfx',
354 '../ui/gl/gl.gyp:gl',
[email protected]c1e5c782013-11-12 05:10:07355 'mojo_common_lib',
[email protected]adeb6f72013-10-25 08:05:02356 'mojo_jni_headers',
[email protected]786d75c2013-10-24 20:29:35357 'mojo_shell_lib',
358 ],
359 'sources': [
360 'shell/android/library_loader.cc',
[email protected]adeb6f72013-10-25 08:05:02361 'shell/android/mojo_main.cc',
362 'shell/android/mojo_main.h',
[email protected]786d75c2013-10-24 20:29:35363 ],
364 },
365 {
366 'target_name': 'mojo_shell_apk',
367 'type': 'none',
368 'dependencies': [
369 '../base/base.gyp:base_java',
370 '../net/net.gyp:net_java',
[email protected]99e508a42013-12-04 01:15:09371 'mojo_native_viewport_java',
[email protected]786d75c2013-10-24 20:29:35372 'libmojo_shell',
373 ],
374 'variables': {
375 'apk_name': 'MojoShell',
[email protected]0be9b242013-10-28 06:28:38376 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
377 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
[email protected]786d75c2013-10-24 20:29:35378 'native_lib_target': 'libmojo_shell',
379 },
380 'includes': [ '../build/java_apk.gypi' ],
381 }
382 ],
383 }],
384 ],
[email protected]02657da2013-09-16 02:55:18385}