Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(12)

Side by Side Diff: mojo/mojo.gyp

Issue 685533002: Remove GYP for mojo/shell and mojo/services (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove mojo_shell_tests from testing/buildbot/ Created 6 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « build/all.gyp ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 The Chromium Authors. All rights reserved.
2 # Use of this source code is governed by a BSD-style license that can be 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'target_defaults': {
7 'conditions': [
8 ['mojo_shell_debug_url != ""', {
9 'defines': [
10 'MOJO_SHELL_DEBUG=1',
11 'MOJO_SHELL_DEBUG_URL="<(mojo_shell_debug_url)"',
12 ],
13 }],
14 ],
15 },
16 'includes': [ 6 'includes': [
17 'mojo_converters.gypi', 7 'mojo_converters.gypi',
18 'mojo_services.gypi',
19 'mojo_variables.gypi', 8 'mojo_variables.gypi',
20 ], 9 ],
21 'targets': [ 10 'targets': [
22 { 11 {
23 # GN version: //mojo 12 # GN version: //mojo
24 'target_name': 'mojo', 13 'target_name': 'mojo',
25 'type': 'none', 14 'type': 'none',
26 'dependencies': [ 15 'dependencies': [
27 'edk/mojo_edk.gyp:mojo_edk', 16 'edk/mojo_edk.gyp:mojo_edk',
28 'mojo_application_manager', 17 'mojo_application_manager',
29 'mojo_application_manager_unittests', 18 'mojo_application_manager_unittests',
30 'mojo_base.gyp:mojo_base', 19 'mojo_base.gyp:mojo_base',
31 'mojo_clipboard',
32 'mojo_clipboard_unittests',
33 'mojo_geometry_lib', 20 'mojo_geometry_lib',
34 'mojo_input_events_lib', 21 'mojo_input_events_lib',
35 'mojo_js_unittests', 22 'mojo_js_unittests',
36 'mojo_native_viewport_service',
37 'mojo_network_service',
38 'mojo_shell',
39 'mojo_shell_lib',
40 'mojo_shell_tests',
41 'mojo_surfaces_lib', 23 'mojo_surfaces_lib',
42 'mojo_surfaces_lib_unittests', 24 'mojo_surfaces_lib_unittests',
43 'mojo_surfaces_service',
44 'mojo_test_app',
45 'mojo_test_request_tracker_app',
46 'services/public/mojo_services_public.gyp:mojo_services_public', 25 'services/public/mojo_services_public.gyp:mojo_services_public',
47 'public/mojo_public.gyp:mojo_public', 26 'public/mojo_public.gyp:mojo_public',
48 ], 27 ],
49 'conditions': [
50 ['OS == "linux"', {
51 'dependencies': [
52 'mojo_external_application_tests',
53 ],
54 }],
55 ]
56 },
57 {
58 # GN version: //mojo/shell:external_service_bindings
59 'target_name': 'mojo_external_service_bindings',
60 'type': 'static_library',
61 'sources': [
62 'shell/external_service.mojom',
63 ],
64 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
65 'export_dependent_settings': [
66 'public/mojo_public.gyp:mojo_cpp_bindings',
67 ],
68 'dependencies': [
69 'public/mojo_public.gyp:mojo_cpp_bindings',
70 ],
71 }, 28 },
72 { 29 {
73 # GN version: //mojo/spy 30 # GN version: //mojo/spy
74 'target_name': 'mojo_spy', 31 'target_name': 'mojo_spy',
75 'type': 'static_library', 32 'type': 'static_library',
76 'dependencies': [ 33 'dependencies': [
77 '../base/base.gyp:base', 34 '../base/base.gyp:base',
78 '../net/net.gyp:http_server', 35 '../net/net.gyp:http_server',
79 '../url/url.gyp:url_lib', 36 '../url/url.gyp:url_lib',
80 'mojo_application_manager', 37 'mojo_application_manager',
81 ], 38 ],
82 'variables': { 39 'variables': {
83 'mojom_base_output_dir': 'mojo', 40 'mojom_base_output_dir': 'mojo',
84 }, 41 },
85 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 42 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
86 'sources': [ 43 'sources': [
87 'spy/public/spy.mojom', 44 'spy/public/spy.mojom',
88 'spy/common.h', 45 'spy/common.h',
89 'spy/spy.cc', 46 'spy/spy.cc',
90 'spy/spy.h', 47 'spy/spy.h',
91 'spy/spy_server_impl.h', 48 'spy/spy_server_impl.h',
92 'spy/spy_server_impl.cc', 49 'spy/spy_server_impl.cc',
93 'spy/websocket_server.cc', 50 'spy/websocket_server.cc',
94 'spy/websocket_server.h', 51 'spy/websocket_server.h',
95 ], 52 ],
96 }, 53 },
97 { 54 {
98 # GN version: //mojo/shell:lib
99 'target_name': 'mojo_shell_lib',
100 'type': 'static_library',
101 'dependencies': [
102 '../base/base.gyp:base',
103 '../base/base.gyp:base_static',
104 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
105 'edk/mojo_edk.gyp:mojo_system_impl',
106 'mojo_application_manager',
107 'mojo_base.gyp:mojo_application_chromium',
108 'mojo_base.gyp:mojo_common_lib',
109 'mojo_external_service_bindings',
110 'mojo_gles2_impl',
111 'services/public/mojo_services_public.gyp:mojo_network_bindings',
112 'mojo_spy',
113 'public/mojo_public.gyp:mojo_application_bindings',
114 ],
115 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
116 'sources': [
117 'shell/app_child_process.cc',
118 'shell/app_child_process.h',
119 'shell/app_child_process.mojom',
120 'shell/app_child_process_host.cc',
121 'shell/app_child_process_host.h',
122 'shell/child_process.cc',
123 'shell/child_process.h',
124 'shell/child_process_host.cc',
125 'shell/child_process_host.h',
126 'shell/context.cc',
127 'shell/context.h',
128 'shell/dynamic_application_loader.cc',
129 'shell/dynamic_application_loader.h',
130 'shell/dynamic_service_runner.h',
131 'shell/external_application_listener.h',
132 'shell/external_application_listener_posix.cc',
133 'shell/external_application_listener_win.cc',
134 'shell/external_application_registrar.mojom',
135 'shell/filename_util.cc',
136 'shell/filename_util.h',
137 'shell/in_process_dynamic_service_runner.cc',
138 'shell/in_process_dynamic_service_runner.h',
139 'shell/incoming_connection_listener_posix.cc',
140 'shell/incoming_connection_listener_posix.h',
141 'shell/init.cc',
142 'shell/init.h',
143 'shell/mojo_url_resolver.cc',
144 'shell/mojo_url_resolver.h',
145 'shell/out_of_process_dynamic_service_runner.cc',
146 'shell/out_of_process_dynamic_service_runner.h',
147 'shell/switches.cc',
148 'shell/switches.h',
149 'shell/task_runners.cc',
150 'shell/task_runners.h',
151 'shell/test_child_process.cc',
152 'shell/test_child_process.h',
153 'shell/ui_application_loader_android.cc',
154 'shell/ui_application_loader_android.h',
155 ],
156 'conditions': [
157 ['component=="shared_library"', {
158 'dependencies': [
159 '../ui/gl/gl.gyp:gl',
160 ],
161 }],
162 ['OS=="linux"', {
163 'sources': [
164 'shell/external_application_registrar_connection.cc',
165 'shell/external_application_registrar_connection.h',
166 ],
167 }],
168 ['OS=="android"', {
169 'dependencies': [
170 'mojo_network_service_lib',
171 'mojo_native_viewport_service_lib',
172 ],
173 'sources': [
174 'shell/network_application_loader.cc',
175 'shell/network_application_loader.h',
176 ],
177 }],
178 ],
179 },
180 {
181 # GN version: //mojo/shell:test_support
182 'target_name': 'mojo_shell_test_support',
183 'type': 'static_library',
184 'dependencies': [
185 'edk/mojo_edk.gyp:mojo_system_impl',
186 'mojo_shell_lib',
187 ],
188 'sources': [
189 'shell/shell_test_helper.cc',
190 'shell/shell_test_helper.h',
191 ],
192 },
193 {
194 # GN version: //mojo/shell
195 'target_name': 'mojo_shell',
196 'type': 'executable',
197 'dependencies': [
198 '../base/base.gyp:base',
199 'mojo_base.gyp:mojo_common_lib',
200 'mojo_base.gyp:mojo_environment_chromium',
201 'mojo_shell_lib',
202 ],
203 'sources': [
204 'shell/desktop/mojo_main.cc',
205 ],
206 'conditions': [
207 ['component=="shared_library"', {
208 'dependencies': [
209 '../ui/gfx/gfx.gyp:gfx',
210 ],
211 }],
212 ],
213 },
214 {
215 # GN version: //mojo/shell:mojo_shell_tests
216 'target_name': 'mojo_shell_tests',
217 'type': '<(gtest_target_type)',
218 'dependencies': [
219 '../base/base.gyp:base',
220 '../base/base.gyp:base_i18n',
221 '../base/base.gyp:test_support_base',
222 '../testing/gtest.gyp:gtest',
223 '../net/net.gyp:net_test_support',
224 '../url/url.gyp:url_lib',
225 'edk/mojo_edk.gyp:mojo_system_impl',
226 'mojo_application_manager',
227 'mojo_base.gyp:mojo_common_lib',
228 'mojo_base.gyp:mojo_environment_chromium',
229 'mojo_shell_lib',
230 'mojo_test_app',
231 'mojo_test_request_tracker_app',
232 'mojo_test_service_bindings',
233 ],
234 'sources': [
235 'shell/child_process_host_unittest.cc',
236 'shell/dynamic_application_loader_unittest.cc',
237 'shell/in_process_dynamic_service_runner_unittest.cc',
238 'shell/mojo_url_resolver_unittest.cc',
239 'shell/shell_test_base.cc',
240 'shell/shell_test_base.h',
241 'shell/shell_test_base_unittest.cc',
242 'shell/shell_test_main.cc',
243 ],
244 'conditions': [
245 ['OS == "android"', {
246 'dependencies': [
247 '../testing/android/native_test.gyp:native_test_native_code',
248 ],
249 }],
250 ],
251 },
252 {
253 # GN version: //mojo/application_manager 55 # GN version: //mojo/application_manager
254 'target_name': 'mojo_application_manager', 56 'target_name': 'mojo_application_manager',
255 'type': '<(component)', 57 'type': '<(component)',
256 'defines': [ 58 'defines': [
257 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION', 59 'MOJO_APPLICATION_MANAGER_IMPLEMENTATION',
258 ], 60 ],
259 'dependencies': [ 61 'dependencies': [
260 '../base/base.gyp:base', 62 '../base/base.gyp:base',
261 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 63 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
262 '../url/url.gyp:url_lib', 64 '../url/url.gyp:url_lib',
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
298 'public/mojo_public.gyp:mojo_cpp_bindings', 100 'public/mojo_public.gyp:mojo_cpp_bindings',
299 ], 101 ],
300 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ], 102 'includes': [ 'public/tools/bindings/mojom_bindings_generator.gypi' ],
301 'sources': [ 103 'sources': [
302 'application_manager/application_manager_unittest.cc', 104 'application_manager/application_manager_unittest.cc',
303 'application_manager/background_shell_application_loader_unittest.cc', 105 'application_manager/background_shell_application_loader_unittest.cc',
304 'application_manager/test.mojom', 106 'application_manager/test.mojom',
305 ], 107 ],
306 }, 108 },
307 { 109 {
308 # GN version: //mojo/cc
309 'target_name': 'mojo_cc_support',
310 'type': 'static_library',
311 'dependencies': [
312 '../base/base.gyp:base',
313 '../cc/cc.gyp:cc',
314 '../cc/cc.gyp:cc_surfaces',
315 '../skia/skia.gyp:skia',
316 '../gpu/gpu.gyp:gles2_implementation',
317 'mojo_geometry_lib',
318 'mojo_surfaces_lib',
319 'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
320 ],
321 'includes': [
322 'mojo_public_gles2_for_loadable_module.gypi',
323 ],
324 'export_dependent_settings': [
325 'services/public/mojo_services_public.gyp:mojo_surfaces_bindings',
326 ],
327 'sources': [
328 'cc/context_provider_mojo.cc',
329 'cc/context_provider_mojo.h',
330 'cc/direct_output_surface.cc',
331 'cc/direct_output_surface.h',
332 'cc/output_surface_mojo.cc',
333 'cc/output_surface_mojo.h',
334 ],
335 },
336 {
337 # GN version: //mojo/gles2
338 'target_name': 'mojo_gles2_impl',
339 'type': '<(component)',
340 'dependencies': [
341 '../base/base.gyp:base',
342 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
343 '../gpu/gpu.gyp:command_buffer_client',
344 '../gpu/gpu.gyp:command_buffer_common',
345 '../gpu/gpu.gyp:gles2_cmd_helper',
346 '../gpu/gpu.gyp:gles2_implementation',
347 'mojo_base.gyp:mojo_environment_chromium',
348 'mojo_gles2_lib',
349 'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
350 '<(mojo_system_for_component)',
351 ],
352 'defines': [
353 'GLES2_USE_MOJO',
354 'GL_GLEXT_PROTOTYPES',
355 'MOJO_GLES2_IMPLEMENTATION',
356 'MOJO_GLES2_IMPL_IMPLEMENTATION',
357 'MOJO_USE_GLES2_IMPL'
358 ],
359 'direct_dependent_settings': {
360 'defines': [
361 'GLES2_USE_MOJO',
362 ],
363 },
364 'export_dependent_settings': [
365 'services/public/mojo_services_public.gyp:mojo_gpu_bindings',
366 ],
367 'sources': [
368 'gles2/command_buffer_client_impl.cc',
369 'gles2/command_buffer_client_impl.h',
370 'gles2/gles2_impl_export.h',
371 'gles2/gles2_impl.cc',
372 'gles2/gles2_context.cc',
373 'gles2/gles2_context.h',
374 ],
375 'all_dependent_settings': {
376 # Ensures that dependent projects import the core functions on Windows.
377 'defines': ['MOJO_USE_GLES2_IMPL'],
378 }
379 },
380 {
381 # GN version: //mojo/bindings/js/tests:mojo_js_unittests 110 # GN version: //mojo/bindings/js/tests:mojo_js_unittests
382 'target_name': 'mojo_js_unittests', 111 'target_name': 'mojo_js_unittests',
383 'type': 'executable', 112 'type': 'executable',
384 'dependencies': [ 113 'dependencies': [
385 '../gin/gin.gyp:gin_test', 114 '../gin/gin.gyp:gin_test',
386 'edk/mojo_edk.gyp:mojo_common_test_support', 115 'edk/mojo_edk.gyp:mojo_common_test_support',
387 'edk/mojo_edk.gyp:mojo_run_all_unittests', 116 'edk/mojo_edk.gyp:mojo_run_all_unittests',
388 'mojo_base.gyp:mojo_js_bindings_lib', 117 'mojo_base.gyp:mojo_js_bindings_lib',
389 'public/mojo_public.gyp:mojo_environment_standalone', 118 'public/mojo_public.gyp:mojo_environment_standalone',
390 'public/mojo_public.gyp:mojo_public_test_interfaces', 119 'public/mojo_public.gyp:mojo_public_test_interfaces',
391 'public/mojo_public.gyp:mojo_utility', 120 'public/mojo_public.gyp:mojo_utility',
392 ], 121 ],
393 'sources': [ 122 'sources': [
394 'bindings/js/tests/run_js_tests.cc', 123 'bindings/js/tests/run_js_tests.cc',
395 ], 124 ],
396 }, 125 },
397 ], 126 ],
398 'conditions': [
399 ['OS=="android"', {
400 'targets': [
401 {
402 'target_name': 'mojo_native_viewport_java',
403 'type': 'none',
404 'dependencies': [
405 '../base/base.gyp:base_java',
406 ],
407 'variables': {
408 'java_in_dir': '<(DEPTH)/mojo/services/native_viewport/android',
409 },
410 'includes': [ '../build/java.gypi' ],
411 },
412 {
413 'target_name': 'libmojo_shell',
414 'type': 'shared_library',
415 'dependencies': [
416 '../base/base.gyp:base',
417 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations',
418 '../ui/gfx/gfx.gyp:gfx',
419 '../ui/gfx/gfx.gyp:gfx_geometry',
420 '../ui/gl/gl.gyp:gl',
421 'mojo_base.gyp:mojo_common_lib',
422 'mojo_base.gyp:mojo_environment_chromium',
423 'mojo_base.gyp:mojo_jni_headers',
424 'mojo_shell_lib',
425 'public/mojo_public.gyp:mojo_application_bindings',
426 ],
427 'sources': [
428 'shell/android/library_loader.cc',
429 'shell/android/mojo_main.cc',
430 'shell/android/mojo_main.h',
431 ],
432 },
433 {
434 'target_name': 'mojo_shell_apk',
435 'type': 'none',
436 'dependencies': [
437 '../base/base.gyp:base_java',
438 '../net/net.gyp:net_java',
439 'mojo_native_viewport_java',
440 'libmojo_shell',
441 ],
442 'variables': {
443 'apk_name': 'MojoShell',
444 'java_in_dir': '<(DEPTH)/mojo/shell/android/apk',
445 'resource_dir': '<(DEPTH)/mojo/shell/android/apk/res',
446 'native_lib_target': 'libmojo_shell',
447 },
448 'includes': [ '../build/java_apk.gypi' ],
449 }
450 ],
451 }],
452 ['OS=="linux"', {
453 'targets': [
454 {
455 # GN version: //mojo/shell:mojo_external_application_tests
456 'target_name': 'mojo_external_application_tests',
457 'type': '<(gtest_target_type)',
458 'dependencies': [
459 '../base/base.gyp:base',
460 '../base/base.gyp:test_support_base',
461 '../testing/gtest.gyp:gtest',
462 '../net/net.gyp:net_test_support',
463 '../url/url.gyp:url_lib',
464 'edk/mojo_edk.gyp:mojo_system_impl',
465 'mojo_application_manager',
466 'mojo_base.gyp:mojo_common_lib',
467 'mojo_base.gyp:mojo_environment_chromium',
468 'mojo_shell_lib',
469 ],
470 'sources': [
471 'shell/incoming_connection_listener_unittest.cc',
472 'shell/external_application_listener_unittest.cc',
473 'shell/external_application_test_main.cc',
474 ],
475 },
476 ],
477 }],
478 ['test_isolation_mode != "noop"', {
479 'targets': [
480 {
481 'target_name': 'mojo_js_unittests_run',
482 'type': 'none',
483 'dependencies': [
484 'mojo_js_unittests',
485 ],
486 'includes': [
487 '../build/isolate.gypi',
488 ],
489 'sources': [
490 'mojo_js_unittests.isolate',
491 ],
492 },
493 ],
494 }],
495 ],
496 } 127 }
OLDNEW
« no previous file with comments | « build/all.gyp ('k') | mojo/mojo_base.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698