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