OLD | NEW |
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': { | 6 'target_defaults': { |
7 'conditions': [ | 7 'conditions': [ |
8 ['mojo_shell_debug_url != ""', { | 8 ['mojo_shell_debug_url != ""', { |
9 'defines': [ | 9 'defines': [ |
10 'MOJO_SHELL_DEBUG=1', | 10 'MOJO_SHELL_DEBUG=1', |
(...skipping 23 matching lines...) Expand all Loading... |
34 # NOTE: component != "shared_library" implies that we are generating a | 34 # NOTE: component != "shared_library" implies that we are generating a |
35 # static library, and in that case, it is expected that the target | 35 # static library, and in that case, it is expected that the target |
36 # listing the component as a dependency will specify either mojo_system | 36 # listing the component as a dependency will specify either mojo_system |
37 # or mojo_system_impl to link against. This enables multiple targets to | 37 # or mojo_system_impl to link against. This enables multiple targets to |
38 # link against the same component library without having to agree on | 38 # link against the same component library without having to agree on |
39 # which Mojo system library they are using. | 39 # which Mojo system library they are using. |
40 # | 40 # |
41 ['component=="shared_library"', { | 41 ['component=="shared_library"', { |
42 'mojo_system_for_component': "mojo_system_impl", | 42 'mojo_system_for_component': "mojo_system_impl", |
43 'mojo_system_for_loadable_module': "mojo_system_impl", | 43 'mojo_system_for_loadable_module': "mojo_system_impl", |
44 'mojo_gles2_for_component': "mojo_gles2_impl", | |
45 'mojo_gles2_for_loadable_module': "mojo_gles2_impl", | |
46 }, { | 44 }, { |
47 'mojo_system_for_component': "mojo_none", | 45 'mojo_system_for_component': "mojo_none", |
48 'mojo_system_for_loadable_module': "mojo_system", | 46 'mojo_system_for_loadable_module': "mojo_system", |
49 'mojo_gles2_for_component': "mojo_none", | |
50 'mojo_gles2_for_loadable_module': "mojo_gles2", | |
51 }], | 47 }], |
52 ], | 48 ], |
53 }, | 49 }, |
54 'includes': [ | 50 'includes': [ |
55 'mojo_apps.gypi', | 51 'mojo_apps.gypi', |
56 'mojo_examples.gypi', | 52 'mojo_examples.gypi', |
57 'mojo_public.gypi', | 53 'mojo_public.gypi', |
58 'mojo_public_tests.gypi', | 54 'mojo_public_tests.gypi', |
59 'mojo_services.gypi', | 55 'mojo_services.gypi', |
60 ], | 56 ], |
(...skipping 278 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
339 # GN version: //mojo/gles2 | 335 # GN version: //mojo/gles2 |
340 'target_name': 'mojo_gles2_impl', | 336 'target_name': 'mojo_gles2_impl', |
341 'type': '<(component)', | 337 'type': '<(component)', |
342 'dependencies': [ | 338 'dependencies': [ |
343 '../base/base.gyp:base', | 339 '../base/base.gyp:base', |
344 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', | 340 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic
_annotations', |
345 '../gpu/gpu.gyp:command_buffer_client', | 341 '../gpu/gpu.gyp:command_buffer_client', |
346 '../gpu/gpu.gyp:command_buffer_common', | 342 '../gpu/gpu.gyp:command_buffer_common', |
347 '../gpu/gpu.gyp:gles2_cmd_helper', | 343 '../gpu/gpu.gyp:gles2_cmd_helper', |
348 '../gpu/gpu.gyp:gles2_implementation', | 344 '../gpu/gpu.gyp:gles2_implementation', |
| 345 'mojo_gles2', |
349 'mojo_gles2_bindings', | 346 'mojo_gles2_bindings', |
350 'mojo_environment_chromium', | 347 'mojo_environment_chromium', |
351 '<(mojo_system_for_component)', | 348 '<(mojo_system_for_component)', |
352 ], | 349 ], |
353 'defines': [ | 350 'defines': [ |
354 'MOJO_GLES2_IMPL_IMPLEMENTATION', | 351 'MOJO_GLES2_IMPL_IMPLEMENTATION', |
355 'MOJO_GLES2_IMPLEMENTATION', | |
356 'GLES2_USE_MOJO', | |
357 'MOJO_USE_GLES2_IMPL' | |
358 ], | 352 ], |
359 'direct_dependent_settings': { | |
360 'defines': [ | |
361 'GLES2_USE_MOJO', | |
362 ], | |
363 }, | |
364 'sources': [ | 353 'sources': [ |
365 'gles2/command_buffer_client_impl.cc', | 354 'gles2/command_buffer_client_impl.cc', |
366 'gles2/command_buffer_client_impl.h', | 355 'gles2/command_buffer_client_impl.h', |
367 'gles2/gles2_impl_export.h', | 356 'gles2/gles2_impl_export.h', |
368 'gles2/gles2_impl.cc', | 357 'gles2/gles2_support_impl.cc', |
| 358 'gles2/gles2_support_impl.h', |
369 'gles2/gles2_context.cc', | 359 'gles2/gles2_context.cc', |
370 'gles2/gles2_context.h', | 360 'gles2/gles2_context.h', |
371 ], | 361 ], |
372 'all_dependent_settings': { | |
373 # Ensures that dependent projects import the core functions on Windows. | |
374 'defines': ['MOJO_USE_GLES2_IMPL'], | |
375 } | |
376 }, | 362 }, |
377 { | 363 { |
378 'target_name': 'mojo_test_support_impl', | 364 'target_name': 'mojo_test_support_impl', |
379 'type': 'static_library', | 365 'type': 'static_library', |
380 'dependencies': [ | 366 'dependencies': [ |
381 '../base/base.gyp:base', | 367 '../base/base.gyp:base', |
382 ], | 368 ], |
383 'sources': [ | 369 'sources': [ |
384 'common/test/test_support_impl.cc', | 370 'common/test/test_support_impl.cc', |
385 'common/test/test_support_impl.h', | 371 'common/test/test_support_impl.h', |
(...skipping 241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
627 ], | 613 ], |
628 'sources': [ | 614 'sources': [ |
629 'shell/network_service_loader.cc', | 615 'shell/network_service_loader.cc', |
630 'shell/network_service_loader.h', | 616 'shell/network_service_loader.h', |
631 ], | 617 ], |
632 }], | 618 }], |
633 ['use_aura==1', { | 619 ['use_aura==1', { |
634 'dependencies': [ | 620 'dependencies': [ |
635 # These are only necessary as long as we hard code use of ViewManage
r. | 621 # These are only necessary as long as we hard code use of ViewManage
r. |
636 '../skia/skia.gyp:skia', | 622 '../skia/skia.gyp:skia', |
| 623 'mojo_gles2', |
637 'mojo_view_manager', | 624 'mojo_view_manager', |
638 'mojo_view_manager_bindings', | 625 'mojo_view_manager_bindings', |
639 ], | 626 ], |
640 }, { # use_aura==0 | 627 }, { # use_aura==0 |
641 'sources!': [ | 628 'sources!': [ |
642 'shell/view_manager_loader.cc', | 629 'shell/view_manager_loader.cc', |
643 'shell/view_manager_loader.h', | 630 'shell/view_manager_loader.h', |
644 ], | 631 ], |
645 }], | 632 }], |
646 ], | 633 ], |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1068 'views/views_init_internal.h', | 1055 'views/views_init_internal.h', |
1069 ], | 1056 ], |
1070 'defines': [ | 1057 'defines': [ |
1071 'MOJO_VIEWS_IMPLEMENTATION', | 1058 'MOJO_VIEWS_IMPLEMENTATION', |
1072 ], | 1059 ], |
1073 }, | 1060 }, |
1074 ], | 1061 ], |
1075 }], | 1062 }], |
1076 ], | 1063 ], |
1077 } | 1064 } |
OLD | NEW |