third_party: Add OWNERS for re2 library.
[chromium-blink-merge.git] / chromecast / chromecast.gyp
blobe345fdcb5a8427c0bdbf37e787f3a468c3eda7fb
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
3 # found in the LICENSE file.
6   'variables': {
7     'android_support_v13_target%':
8         '../third_party/android_tools/android_tools.gyp:android_support_v13_javalib',
9     'cast_build_release': 'internal/build/cast_build_release',
10     'cast_is_debug_build%': 0,
11     # Refers to enum CastProductType in components/metrics/proto/cast_logs.proto
12     'cast_product_type%': 0,  # CAST_PRODUCT_TYPE_UNKNOWN
13     'chromium_code': 1,
14     'chromecast_branding%': 'Chromium',
15     'disable_display%': 0,
16     'enable_default_cast_graphics%': 1,
17     'ozone_platform_cast%': 0,
18     'use_chromecast_webui%': 0,
19   },
20   'includes': [
21     'chromecast_tests.gypi',
22   ],
23   'target_defaults': {
24     'include_dirs': [
25       '..',  # Root of Chromium checkout
26     ],
27     'conditions': [
28       ['disable_display==1', {
29         'defines': ['DISABLE_DISPLAY'],
30       }],
31     ],
32   },
33   'targets': [
34     # Public API target for OEM partners to replace shlibs.
35     {
36       'target_name': 'cast_public_api',
37       'type': '<(component)',
38       'sources': [
39         'public/cast_egl_platform.h',
40         'public/cast_egl_platform_shlib.h',
41         'public/cast_media_shlib.h',
42         'public/cast_sys_info.h',
43         'public/chromecast_export.h',
44         'public/graphics_properties_shlib.h',
45         'public/graphics_types.h',
46         'public/media/decoder_config.h',
47         'public/media/stream_id.h',
48         'public/osd_plane.h',
49         'public/osd_plane_shlib.h',
50         'public/osd_surface.h',
51         'public/video_plane.h',
52       ],
53     },
54     {
55       'target_name': 'cast_base',
56       'type': '<(component)',
57       'dependencies': [
58         '../base/base.gyp:base',
59       ],
60       'sources': [
61         'base/cast_paths.cc',
62         'base/cast_paths.h',
63         'base/chromecast_switches.cc',
64         'base/chromecast_switches.h',
65         'base/metrics/cast_histograms.h',
66         'base/metrics/cast_metrics_helper.cc',
67         'base/metrics/cast_metrics_helper.h',
68         'base/metrics/grouped_histogram.cc',
69         'base/metrics/grouped_histogram.h',
70         'base/path_utils.cc',
71         'base/path_utils.h',
72         'base/process_utils.cc',
73         'base/process_utils.h',
74         'base/serializers.cc',
75         'base/serializers.h'
76       ],
77     },  # end of target 'cast_base'
78     {
79       'target_name': 'cast_crash_client',
80       'type': '<(component)',
81       'dependencies': [
82         '../breakpad/breakpad.gyp:breakpad_client',
83         '../components/components.gyp:crash_component',
84       ],
85       'sources': [
86         'crash/cast_crash_keys.cc',
87         'crash/cast_crash_keys.h',
88         'crash/cast_crash_reporter_client.cc',
89         'crash/cast_crash_reporter_client.h',
90       ],
91       'conditions': [
92         ['chromecast_branding=="Chrome"', {
93           'dependencies': [
94             'internal/chromecast_internal.gyp:crash_internal',
95           ],
96         }, {
97           'sources': [
98             'crash/cast_crash_reporter_client_simple.cc',
99           ],
100         }],
101       ]
102     },  # end of target 'cast_crash_client'
103     {
104       'target_name': 'cast_net',
105       'type': '<(component)',
106       'sources': [
107         'net/connectivity_checker.cc',
108         'net/connectivity_checker.h',
109         'net/connectivity_checker_impl.cc',
110         'net/connectivity_checker_impl.h',
111         'net/fake_connectivity_checker.cc',
112         'net/fake_connectivity_checker.h',
113         'net/net_switches.cc',
114         'net/net_switches.h',
115         'net/net_util_cast.cc',
116         'net/net_util_cast.h',
117       ],
118       'conditions': [
119         ['OS!="android"', {
120           'sources': [
121             'net/network_change_notifier_factory_cast.cc',
122             'net/network_change_notifier_factory_cast.h',
123           ],
124         }],
125       ],
126     },
127     {
128       'target_name': 'cast_shell_resources',
129       'type': 'none',
130       'variables': {
131         'grit_out_dir': '<(SHARED_INTERMEDIATE_DIR)/chromecast',
132       },
133       'actions': [
134         {
135           'action_name': 'cast_shell_resources',
136           'variables': {
137             'grit_grd_file': 'app/resources/shell_resources.grd',
138             'grit_resource_ids': 'app/resources/resource_ids',
139           },
140           'includes': [ '../build/grit_action.gypi' ],
141         },
142       ],
143       'includes': [ '../build/grit_target.gypi' ],
144     },
145     {
146       'target_name': 'cast_shell_pak',
147       'type': 'none',
148       'dependencies': [
149         'cast_shell_resources',
150         '../content/app/resources/content_resources.gyp:content_resources',
151         '../content/app/strings/content_strings.gyp:content_strings',
152         '../net/net.gyp:net_resources',
153         '../third_party/WebKit/public/blink_resources.gyp:blink_resources',
154         '../ui/resources/ui_resources.gyp:ui_resources',
155         '../ui/strings/ui_strings.gyp:ui_strings',
156       ],
157       'actions': [
158         {
159           'action_name': 'repack_cast_shell_pak',
160           'variables': {
161             'pak_inputs': [
162               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_resources.pak',
163               '<(SHARED_INTERMEDIATE_DIR)/blink/public/resources/blink_image_resources_100_percent.pak',
164               '<(SHARED_INTERMEDIATE_DIR)/chromecast/shell_resources.pak',
165               '<(SHARED_INTERMEDIATE_DIR)/content/content_resources.pak',
166               '<(SHARED_INTERMEDIATE_DIR)/content/app/resources/content_resources_100_percent.pak',
167               '<(SHARED_INTERMEDIATE_DIR)/content/app/strings/content_strings_en-US.pak',
168               '<(SHARED_INTERMEDIATE_DIR)/net/net_resources.pak',
169               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/ui_resources_100_percent.pak',
170               '<(SHARED_INTERMEDIATE_DIR)/ui/resources/webui_resources.pak',
171               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/app_locale_settings_en-US.pak',
172               '<(SHARED_INTERMEDIATE_DIR)/ui/strings/ui_strings_en-US.pak',
173             ],
174             'conditions': [
175               ['chromecast_branding=="Chrome" and use_chromecast_webui==1', {
176                 'pak_inputs': [
177                   '<(SHARED_INTERMEDIATE_DIR)/chromecast/app_resources.pak',
178                   '<(SHARED_INTERMEDIATE_DIR)/chromecast/cast_webui_resources.pak',
179                 ],
180               }],
181             ],
182             'pak_output': '<(PRODUCT_DIR)/assets/cast_shell.pak',
183           },
184           'includes': [ '../build/repack_action.gypi' ],
185         },
186       ],
187       'conditions': [
188         ['chromecast_branding=="Chrome" and use_chromecast_webui==1', {
189           'dependencies': [
190             'internal/chromecast_resources.gyp:chromecast_app_resources',
191             'internal/chromecast_resources.gyp:chromecast_webui_resources',
192           ],
193         }],
194       ],
195     },  # end of target 'cast_shell_pak'
196     # This target contains all content-embedder implementation that is
197     # non-platform-specific.
198     {
199       'target_name': 'cast_shell_common',
200       'type': '<(component)',
201       'dependencies': [
202         'cast_base',
203         'cast_crash_client',
204         'cast_net',
205         'cast_shell_pak',
206         'cast_shell_resources',
207         'cast_sys_info',
208         'cast_version_header',
209         'chromecast_locales.gyp:chromecast_locales_pak',
210         'chromecast_locales.gyp:chromecast_settings',
211         'media/media.gyp:media_base',
212         'media/media.gyp:media_cdm',
213         '../base/base.gyp:base',
214         '../components/components.gyp:breakpad_host',
215         '../components/components.gyp:cdm_renderer',
216         '../components/components.gyp:component_metrics_proto',
217         '../components/components.gyp:crash_component',
218         '../components/components.gyp:devtools_discovery',
219         '../components/components.gyp:devtools_http_handler',
220         '../components/components.gyp:network_hints_browser',
221         '../components/components.gyp:network_hints_renderer',
222         '../components/components.gyp:metrics',
223         '../components/components.gyp:metrics_gpu',
224         '../components/components.gyp:metrics_net',
225         '../components/components.gyp:metrics_profiler',
226         '../content/content.gyp:content',
227         '../content/content.gyp:content_app_both',
228         '../skia/skia.gyp:skia',
229         '../third_party/WebKit/public/blink.gyp:blink',
230         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
231       ],
232       'sources': [
233         'app/cast_main_delegate.cc',
234         'app/cast_main_delegate.h',
235         'browser/cast_browser_context.cc',
236         'browser/cast_browser_context.h',
237         'browser/cast_browser_main_parts.cc',
238         'browser/cast_browser_main_parts.h',
239         'browser/cast_browser_process.cc',
240         'browser/cast_browser_process.h',
241         'browser/cast_content_browser_client.cc',
242         'browser/cast_content_browser_client.h',
243         'browser/cast_content_window.cc',
244         'browser/cast_content_window.h',
245         'browser/cast_download_manager_delegate.cc',
246         'browser/cast_download_manager_delegate.h',
247         'browser/cast_http_user_agent_settings.cc',
248         'browser/cast_http_user_agent_settings.h',
249         'browser/cast_network_delegate.cc',
250         'browser/cast_network_delegate.h',
251         'browser/cast_permission_manager.cc',
252         'browser/cast_permission_manager.h',
253         'browser/cast_quota_permission_context.cc',
254         'browser/cast_quota_permission_context.h',
255         'browser/cast_resource_dispatcher_host_delegate.cc',
256         'browser/cast_resource_dispatcher_host_delegate.h',
257         'browser/devtools/cast_dev_tools_delegate.cc',
258         'browser/devtools/cast_dev_tools_delegate.h',
259         'browser/devtools/remote_debugging_server.cc',
260         'browser/devtools/remote_debugging_server.h',
261         'browser/geolocation/cast_access_token_store.cc',
262         'browser/geolocation/cast_access_token_store.h',
263         'browser/media/cast_media_client_android.cc',
264         'browser/media/cast_media_client_android.h',
265         'browser/metrics/cast_metrics_prefs.cc',
266         'browser/metrics/cast_metrics_prefs.h',
267         'browser/metrics/cast_metrics_service_client.cc',
268         'browser/metrics/cast_metrics_service_client.h',
269         'browser/metrics/cast_stability_metrics_provider.cc',
270         'browser/metrics/cast_stability_metrics_provider.h',
271         'browser/metrics/platform_metrics_providers.h',
272         'browser/pref_service_helper.cc',
273         'browser/pref_service_helper.h',
274         'browser/service/cast_service.cc',
275         'browser/service/cast_service.h',
276         'browser/url_request_context_factory.cc',
277         'browser/url_request_context_factory.h',
278         'common/cast_content_client.cc',
279         'common/cast_content_client.h',
280         'common/cast_resource_delegate.cc',
281         'common/cast_resource_delegate.h',
282         'common/media/cast_messages.h',
283         'common/media/cast_message_generator.cc',
284         'common/media/cast_message_generator.h',
285         'common/platform_client_auth.h',
286         'common/pref_names.cc',
287         'common/pref_names.h',
288         'renderer/cast_content_renderer_client.cc',
289         'renderer/cast_content_renderer_client.h',
290         'renderer/cast_media_load_deferrer.cc',
291         'renderer/cast_media_load_deferrer.h',
292         'renderer/cast_render_process_observer.cc',
293         'renderer/cast_render_process_observer.h',
294         'renderer/key_systems_cast.cc',
295         'renderer/key_systems_cast.h',
296         'renderer/media/capabilities_message_filter.cc',
297         'renderer/media/capabilities_message_filter.h',
298       ],
299       'conditions': [
300         ['chromecast_branding=="Chrome"', {
301           'dependencies': [
302             'internal/chromecast_internal.gyp:cast_shell_internal',
303           ],
304         }, {
305           'sources': [
306             'browser/cast_content_browser_client_simple.cc',
307             'browser/cast_network_delegate_simple.cc',
308             'browser/devtools/remote_debugging_server_simple.cc',
309             'browser/metrics/platform_metrics_providers_simple.cc',
310             'browser/pref_service_helper_simple.cc',
311             'common/platform_client_auth_simple.cc',
312             'renderer/cast_content_renderer_client_simple.cc',
313           ],
314           'conditions': [
315             ['OS=="android"', {
316               'sources': [
317                 'browser/service/cast_service_android.cc',
318                 'browser/service/cast_service_android.h',
319               ],
320             }, {
321               'sources': [
322                 'browser/media/cast_browser_cdm_factory_simple.cc',
323                 'browser/service/cast_service_simple.cc',
324                 'browser/service/cast_service_simple.h',
325               ],
326             }],
327           ],
328         }],
329         # ExternalMetrics not necessary on Android and (as of this writing) uses
330         # non-portable filesystem operations. Also webcrypto is not used on
331         # Android either.
332         ['OS=="linux"', {
333           'sources': [
334             'browser/metrics/external_metrics.cc',
335             'browser/metrics/external_metrics.h',
336           ],
337           'dependencies': [
338             '../components/components.gyp:metrics_serialization',
339             '../ui/aura/aura.gyp:aura_test_support',
340           ],
341         }],
342         ['OS=="android"', {
343           'dependencies': [
344             '../components/components.gyp:cdm_browser',
345           ],
346         }],
347       ],
348     },
349     {
350       'target_name': 'cast_sys_info',
351       'type': '<(component)',
352       'dependencies': [
353         'cast_public_api',
354         '../base/base.gyp:base',
355       ],
356       'sources': [
357         'base/cast_sys_info_util.h',
358         'base/cast_sys_info_dummy.cc',
359         'base/cast_sys_info_dummy.h',
360       ],
361       'conditions': [
362         ['chromecast_branding!="Chrome" and OS!="android"', {
363           'sources': [
364             'base/cast_sys_info_util_simple.cc',
365           ],
366         }],
367       ],
368     },  # end of target 'cast_sys_info'
369     {
370       'target_name': 'cast_version_header',
371       'type': 'none',
372       'direct_dependent_settings': {
373         'include_dirs': [
374           '<(SHARED_INTERMEDIATE_DIR)',
375         ],
376       },
377       'actions': [
378         {
379           'action_name': 'version_header',
380           'message': 'Generating version header file: <@(_outputs)',
381           'inputs': [
382             '<(version_path)',
383             'base/version.h.in',
384           ],
385           'outputs': [
386             '<(SHARED_INTERMEDIATE_DIR)/chromecast/base/version.h',
387           ],
388           'action': [
389             'python',
390             '<(version_py_path)',
391             '-e', 'VERSION_FULL="<(version_full)"',
392             # CAST_BUILD_INCREMENTAL is taken from buildbot if available;
393             # otherwise, a dev string is used.
394             '-e', 'CAST_BUILD_INCREMENTAL="<!(echo ${CAST_BUILD_INCREMENTAL:="<!(date +%Y%m%d.%H%M%S)"})"',
395             # CAST_BUILD_RELEASE is taken from cast_build_release file if exist;
396             # otherwise, a dev string is used.
397             '-e', 'CAST_BUILD_RELEASE="<!(if test -f <(cast_build_release); then cat <(cast_build_release); else echo eng.${USER}; fi)"',
398             '-e', 'CAST_IS_DEBUG_BUILD=1 if "<(CONFIGURATION_NAME)" == "Debug" or <(cast_is_debug_build) == 1 else 0',
399             '-e', 'CAST_PRODUCT_TYPE=<(cast_product_type)',
400             'base/version.h.in',
401             '<@(_outputs)',
402           ],
403           'includes': [
404             '../build/util/version.gypi',
405           ],
406         },
407       ],
408     },
409   ],  # end of targets
411   # Targets for Android receiver.
412   'conditions': [
413     ['OS=="android"', {
414       'targets': [
415         {
416           'target_name': 'cast_shell_icudata',
417           'type': 'none',
418           'dependencies': [
419             '../third_party/icu/icu.gyp:icudata',
420             '../v8/tools/gyp/v8.gyp:v8_external_snapshot',
421           ],
422           'copies': [{
423             'destination': '<(PRODUCT_DIR)/assets',
424             'files': [
425               '<(PRODUCT_DIR)/icudtl.dat',
426               '<(PRODUCT_DIR)/natives_blob.bin',
427               '<(PRODUCT_DIR)/snapshot_blob.bin',
428             ],
429           }],
430         },
431         {
432           'target_name': 'libcast_shell_android',
433           'type': 'shared_library',
434           'dependencies': [
435             'cast_jni_headers',
436             'cast_shell_common',
437             'cast_shell_icudata',
438             'cast_shell_pak',
439             'cast_version_header',
440             '../base/base.gyp:base',
441             '../breakpad/breakpad.gyp:breakpad_client',
442             '../components/components.gyp:breakpad_host',
443             '../components/components.gyp:crash_component',
444             '../components/components.gyp:external_video_surface',
445             '../content/content.gyp:content',
446             '../skia/skia.gyp:skia',
447             '../ui/gfx/gfx.gyp:gfx',
448             '../ui/gl/gl.gyp:gl',
449           ],
450           'include_dirs': [
451             '../breakpad/src',
452           ],
453           'sources': [
454             'base/cast_sys_info_android.cc',
455             'base/cast_sys_info_android.h',
456             'base/chromecast_config_android.cc',
457             'base/chromecast_config_android.h',
458             'android/cast_jni_registrar.cc',
459             'android/cast_jni_registrar.h',
460             'android/cast_metrics_helper_android.cc',
461             'android/cast_metrics_helper_android.h',
462             'android/platform_jni_loader.h',
463             'app/android/cast_jni_loader.cc',
464             'browser/android/cast_window_android.cc',
465             'browser/android/cast_window_android.h',
466             'browser/android/cast_window_manager.cc',
467             'browser/android/cast_window_manager.h',
468             'crash/android/cast_crash_reporter_client_android.cc',
469             'crash/android/cast_crash_reporter_client_android.h',
470             'crash/android/crash_handler.cc',
471             'crash/android/crash_handler.h',
472           ],
473           'conditions': [
474             ['chromecast_branding=="Chrome"', {
475               'dependencies': [
476                 'internal/chromecast_internal.gyp:cast_shell_android_internal'
477               ],
478             }, {
479               'sources': [
480                 'android/platform_jni_loader_stub.cc',
481               ],
482             }]
483           ],
484         },  # end of target 'libcast_shell_android'
485         {
486           'target_name': 'cast_base_java',
487           'type': 'none',
488           'dependencies': [
489             '../base/base.gyp:base_java',
490           ],
491           'variables': {
492             'java_in_dir': 'base/java',
493           },
494           'includes': ['../build/java.gypi'],
495         },  # end of target 'cast_base_java'
496         {
497           'target_name': 'cast_shell_java',
498           'type': 'none',
499           'dependencies': [
500             '<(android_support_v13_target)',
501             'cast_base_java',
502             '../base/base.gyp:base_java',
503             '../components/components.gyp:external_video_surface_java',
504             '../content/content.gyp:content_java',
505             '../media/media.gyp:media_java',
506             '../net/net.gyp:net_java',
507             '../ui/android/ui_android.gyp:ui_java',
508           ],
509           'variables': {
510             'has_java_resources': 1,
511             'java_in_dir': 'browser/android/apk',
512             'resource_dir': 'browser/android/apk/res',
513             'R_package': 'org.chromium.chromecast.shell',
514           },
515           'includes': ['../build/java.gypi'],
516         },  # end of target 'cast_shell_java'
517         {
518           'target_name': 'cast_shell_manifest',
519           'type': 'none',
520           'variables': {
521             'jinja_inputs': ['browser/android/apk/AndroidManifest.xml.jinja2'],
522             'jinja_output': '<(SHARED_INTERMEDIATE_DIR)/cast_shell_manifest/AndroidManifest.xml',
523           },
524           'includes': [ '../build/android/jinja_template.gypi' ],
525         },
526         {
527           'target_name': 'cast_shell_apk',
528           'type': 'none',
529           'dependencies': [
530             'cast_shell_java',
531             'libcast_shell_android',
532           ],
533           'variables': {
534             'apk_name': 'CastShell',
535             'manifest_package_name': 'org.chromium.chromecast.shell',
536             # Note(gunsch): there are no Java files in the android/ directory.
537             # Unfortunately, the java_apk.gypi target rigidly insists on having
538             # a java_in_dir directory, but complains about duplicate classes
539             # from the common cast_shell_java target (shared with internal APK)
540             # if the actual Java path is used.
541             # This will hopefully be removable after the great GN migration.
542             'java_in_dir': 'android',
543             'android_manifest_path': '<(SHARED_INTERMEDIATE_DIR)/cast_shell_manifest/AndroidManifest.xml',
544             'package_name': 'org.chromium.chromecast.shell',
545             'native_lib_target': 'libcast_shell_android',
546             'asset_location': '<(PRODUCT_DIR)/assets',
547             'additional_input_paths': ['<(PRODUCT_DIR)/assets/cast_shell.pak'],
548           },
549           'includes': [ '../build/java_apk.gypi' ],
550         },
551         {
552           'target_name': 'cast_jni_headers',
553           'type': 'none',
554           'sources': [
555             'base/java/src/org/chromium/chromecast/base/ChromecastConfigAndroid.java',
556             'browser/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java',
557             'browser/android/apk/src/org/chromium/chromecast/shell/CastMetricsHelper.java',
558             'browser/android/apk/src/org/chromium/chromecast/shell/CastSysInfoAndroid.java',
559             'browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java',
560             'browser/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java',
561           ],
562           'direct_dependent_settings': {
563             'include_dirs': [
564               '<(SHARED_INTERMEDIATE_DIR)/chromecast',
565             ],
566           },
567           'variables': {
568             'jni_gen_package': 'chromecast',
569           },
570           'includes': [ '../build/jni_generator.gypi' ],
571         },
572       ],  # end of targets
573     }, {  # OS != "android"
574       'targets': [
575         {
576           'target_name': 'cast_shell_media',
577           'type': '<(component)',
578           'dependencies': [
579             'media/media.gyp:cast_media',
580             '../content/content.gyp:content',
581             '../ipc/ipc.gyp:ipc',
582             '../media/media.gyp:media',
583           ],
584           'sources': [
585             'browser/media/cast_browser_cdm_factory.cc',
586             'browser/media/cast_browser_cdm_factory.h',
587             'browser/media/cma_message_filter_host.cc',
588             'browser/media/cma_message_filter_host.h',
589             'browser/media/cma_message_loop.cc',
590             'browser/media/cma_message_loop.h',
591             'browser/media/media_pipeline_host.cc',
592             'browser/media/media_pipeline_host.h',
593             'common/media/cma_ipc_common.h',
594             'common/media/cma_messages.h',
595             'common/media/cma_message_generator.cc',
596             'common/media/cma_message_generator.h',
597             'common/media/cma_param_traits.cc',
598             'common/media/cma_param_traits.h',
599             'common/media/shared_memory_chunk.cc',
600             'common/media/shared_memory_chunk.h',
601             'renderer/media/audio_pipeline_proxy.cc',
602             'renderer/media/audio_pipeline_proxy.h',
603             'renderer/media/chromecast_media_renderer_factory.cc',
604             'renderer/media/chromecast_media_renderer_factory.h',
605             'renderer/media/cma_message_filter_proxy.cc',
606             'renderer/media/cma_message_filter_proxy.h',
607             'renderer/media/media_channel_proxy.cc',
608             'renderer/media/media_channel_proxy.h',
609             'renderer/media/media_pipeline_proxy.cc',
610             'renderer/media/media_pipeline_proxy.h',
611             'renderer/media/video_pipeline_proxy.cc',
612             'renderer/media/video_pipeline_proxy.h',
613           ],
614         },  # end of target 'cast_shell_media'
615         # This target contains all of the primary code of |cast_shell|, except
616         # for |main|. This allows end-to-end tests using |cast_shell|.
617         # This also includes all targets that cannot be built on Android.
618         {
619           'target_name': 'cast_shell_core',
620           'type': '<(component)',
621           'dependencies': [
622             'cast_shell_media',
623             'cast_shell_common',
624             'media/media.gyp:cast_media',
625           ],
626           'conditions': [
627             ['ozone_platform_egltest==1', {
628               'dependencies': [
629                 '../ui/ozone/ozone.gyp:eglplatform_shim_x11',
630               ],
631             }],
632           ],
633         },
634         {
635           'target_name': 'cast_shell',
636           'type': 'executable',
637           'dependencies': [
638             'cast_shell_core',
639           ],
640           'sources': [
641             'app/cast_main.cc',
642           ],
643           'ldflags': [
644             # Allow  OEMs to override default libraries that are shipped with
645             # cast receiver package by installed OEM-specific libraries in
646             # /oem_cast_shlib.
647             '-Wl,-rpath=/oem_cast_shlib',
648             # TODO(dougsteed): remove when Chromecast moves to boringssl.
649             # Allow the cast shell to find the NSS module in the same
650             # directory.
651             '-Wl,-rpath=\$$ORIGIN'
652           ],
653         },
654       ],  # end of targets
655     }],
656     ['enable_default_cast_graphics==1', {
657       'targets': [
658         {
659           'target_name': 'libcast_graphics_1.0',
660           'type': 'shared_library',
661           'dependencies': [
662             'cast_public_api'
663           ],
664           'sources': [
665             'graphics/cast_egl_platform_default.cc',
666             'graphics/graphics_properties_default.cc',
667             'graphics/osd_plane_default.cc'
668           ],
669         }
670       ]
671     }],
672   ],  # end of conditions