OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 'variables': { | 6 'variables': { |
7 'android_support_v13_target%': | 7 'android_support_v13_target%': |
8 '../third_party/android_tools/android_tools.gyp:android_support_v13_java
lib', | 8 '../third_party/android_tools/android_tools.gyp:android_support_v13_java
lib', |
9 'cast_build_release': 'internal/build/cast_build_release', | 9 'cast_build_release': 'internal/build/cast_build_release', |
10 'chromium_code': 1, | 10 'chromium_code': 1, |
11 'chromecast_branding%': 'Chromium', | 11 'chromecast_branding%': 'Chromium', |
12 'disable_display%': 0, | 12 'disable_display%': 0, |
| 13 'enable_default_cast_graphics%': 1, |
| 14 'ozone_platform_cast%': 0, |
13 'use_chromecast_webui%': 0, | 15 'use_chromecast_webui%': 0, |
14 }, | 16 }, |
15 'includes': [ | 17 'includes': [ |
16 'chromecast_tests.gypi', | 18 'chromecast_tests.gypi', |
17 ], | 19 ], |
18 'target_defaults': { | 20 'target_defaults': { |
19 'include_dirs': [ | 21 'include_dirs': [ |
20 '..', # Root of Chromium checkout | 22 '..', # Root of Chromium checkout |
21 ], | 23 ], |
22 'conditions': [ | 24 'conditions': [ |
23 ['disable_display==1', { | 25 ['disable_display==1', { |
24 'defines': ['DISABLE_DISPLAY'], | 26 'defines': ['DISABLE_DISPLAY'], |
25 }], | 27 }], |
26 ], | 28 ], |
27 }, | 29 }, |
28 'targets': [ | 30 'targets': [ |
29 # Public API target for OEM partners to replace shlibs. | 31 # Public API target for OEM partners to replace shlibs. |
30 { | 32 { |
31 'target_name': 'cast_public_api', | 33 'target_name': 'cast_public_api', |
32 'type': '<(component)', | 34 'type': '<(component)', |
33 'sources': [ | 35 'sources': [ |
| 36 'public/cast_egl_platform.h', |
| 37 'public/cast_egl_platform_shlib.h', |
34 'public/chromecast_export.h', | 38 'public/chromecast_export.h', |
35 ], | 39 ], |
36 }, | 40 }, |
37 # TODO(gunsch): Remove this fake target once it's either added or no | 41 # TODO(gunsch): Remove this fake target once it's either added or no |
38 # longer referenced from internal code. | 42 # longer referenced from internal code. |
39 {'target_name': 'cast_media_audio', 'type': 'none'}, | 43 {'target_name': 'cast_media_audio', 'type': 'none'}, |
40 | 44 |
41 { | 45 { |
42 'target_name': 'cast_base', | 46 'target_name': 'cast_base', |
43 'type': '<(component)', | 47 'type': '<(component)', |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
83 'target_name': 'cast_net', | 87 'target_name': 'cast_net', |
84 'type': '<(component)', | 88 'type': '<(component)', |
85 'sources': [ | 89 'sources': [ |
86 'net/connectivity_checker.cc', | 90 'net/connectivity_checker.cc', |
87 'net/connectivity_checker.h', | 91 'net/connectivity_checker.h', |
88 'net/net_switches.cc', | 92 'net/net_switches.cc', |
89 'net/net_switches.h', | 93 'net/net_switches.h', |
90 ], | 94 ], |
91 }, | 95 }, |
92 { | 96 { |
93 'target_name': 'cast_ozone', | |
94 'type': '<(component)', | |
95 'sources': [ | |
96 'ozone/gpu_platform_support_cast.cc', | |
97 'ozone/gpu_platform_support_cast.h', | |
98 'ozone/ozone_platform_cast.cc', | |
99 'ozone/ozone_platform_cast.h', | |
100 'ozone/platform_window_cast.cc', | |
101 'ozone/platform_window_cast.h', | |
102 'ozone/surface_factory_cast.cc', | |
103 'ozone/surface_factory_cast.h', | |
104 'ozone/surface_ozone_egl_cast.cc', | |
105 'ozone/surface_ozone_egl_cast.h', | |
106 ], | |
107 }, | |
108 { | |
109 'target_name': 'cast_shell_resources', | 97 'target_name': 'cast_shell_resources', |
110 'type': 'none', | 98 'type': 'none', |
111 'variables': { | 99 'variables': { |
112 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast', | 100 'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast', |
113 }, | 101 }, |
114 'actions': [ | 102 'actions': [ |
115 { | 103 { |
116 'action_name': 'cast_shell_resources', | 104 'action_name': 'cast_shell_resources', |
117 'variables': { | 105 'variables': { |
118 'grit_grd_file': 'app/resources/shell_resources.grd', | 106 'grit_grd_file': 'app/resources/shell_resources.grd', |
(...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
538 'renderer/media/video_pipeline_proxy.h', | 526 'renderer/media/video_pipeline_proxy.h', |
539 ], | 527 ], |
540 }, # end of target 'cast_shell_media' | 528 }, # end of target 'cast_shell_media' |
541 # This target contains all of the primary code of |cast_shell|, except | 529 # This target contains all of the primary code of |cast_shell|, except |
542 # for |main|. This allows end-to-end tests using |cast_shell|. | 530 # for |main|. This allows end-to-end tests using |cast_shell|. |
543 # This also includes all targets that cannot be built on Android. | 531 # This also includes all targets that cannot be built on Android. |
544 { | 532 { |
545 'target_name': 'cast_shell_core', | 533 'target_name': 'cast_shell_core', |
546 'type': '<(component)', | 534 'type': '<(component)', |
547 'dependencies': [ | 535 'dependencies': [ |
548 'cast_ozone', | |
549 'cast_shell_media', | 536 'cast_shell_media', |
550 'cast_shell_common', | 537 'cast_shell_common', |
551 'media/media.gyp:cast_media', | 538 'media/media.gyp:cast_media', |
552 '../ui/aura/aura.gyp:aura_test_support', | 539 '../ui/aura/aura.gyp:aura_test_support', |
553 ], | 540 ], |
554 'conditions': [ | 541 'conditions': [ |
555 ['chromecast_branding=="Chrome"', { | 542 ['chromecast_branding=="Chrome"', { |
556 'dependencies': [ | 543 'dependencies': [ |
557 'internal/chromecast_internal.gyp:cast_gfx_internal', | 544 'internal/chromecast_internal.gyp:cast_gfx_internal', |
558 ], | 545 ], |
(...skipping 14 matching lines...) Expand all Loading... |
573 'app/cast_main.cc', | 560 'app/cast_main.cc', |
574 ], | 561 ], |
575 # TODO(dougsteed): remove when Chromecast moves to boringssl. | 562 # TODO(dougsteed): remove when Chromecast moves to boringssl. |
576 # Allow the cast shell to find the NSS module in the same directory. | 563 # Allow the cast shell to find the NSS module in the same directory. |
577 'ldflags': [ | 564 'ldflags': [ |
578 '-Wl,-rpath=\$$ORIGIN' | 565 '-Wl,-rpath=\$$ORIGIN' |
579 ], | 566 ], |
580 }, | 567 }, |
581 ], # end of targets | 568 ], # end of targets |
582 }], | 569 }], |
| 570 ['enable_default_cast_graphics==1', { |
| 571 'targets': [ |
| 572 { |
| 573 'target_name': 'libcast_graphics_1.0', |
| 574 'type': 'shared_library', |
| 575 'dependencies': [ |
| 576 'cast_public_api' |
| 577 ], |
| 578 'sources': [ |
| 579 'graphics/cast_egl_platform_default.cc' |
| 580 ], |
| 581 } |
| 582 ] |
| 583 }], |
583 ], # end of conditions | 584 ], # end of conditions |
584 } | 585 } |
OLD | NEW |