Index: chromecast/chromecast.gyp |
diff --git a/chromecast/chromecast.gyp b/chromecast/chromecast.gyp |
new file mode 100644 |
index 0000000000000000000000000000000000000000..15e2564ab1d7c9fcc3108c690fd4443f872c0b65 |
--- /dev/null |
+++ b/chromecast/chromecast.gyp |
@@ -0,0 +1,169 @@ |
+# Copyright (c) 2014 Google Inc. All Rights Reserved. |
+# Use of this source code is governed by a BSD-style license that can be |
+# found in the LICENSE file. |
+ |
+{ |
+ 'variables': { |
+ 'chromium_code': 1, |
+ }, |
+ 'target_defaults': { |
+ 'include_dirs': [ |
+ '..', # Root of Chromium checkout |
+ ], |
+ }, |
+ 'targets': [ |
+ { |
+ 'target_name': 'cast_common', |
+ 'type': '<(component)', |
+ 'dependencies': [ |
+ '../base/base.gyp:base', |
+ ], |
+ 'sources': [ |
+ 'common/cast_paths.cc', |
+ 'common/cast_paths.h', |
+ ], |
+ 'conditions': [ |
+ ['chromecast_branding=="Chrome"', { |
+ 'dependencies': [ |
+ 'internal/chromecast_internal.gyp:cast_common_internal', |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'cast_gfx', |
jam
2014/04/04 01:01:24
why bringing in cc files manually instead of depen
|
+ 'type': '<(component)', |
+ 'dependencies': [ |
+ '../skia/skia.gyp:skia', |
+ '../third_party/icu/icu.gyp:icui18n', |
+ '../third_party/icu/icu.gyp:icuuc', |
+ '../ui/gl/gl.gyp:gl', |
+ ], |
+ 'sources': [ |
+ 'ui/gfx/gfx_plane.cc', |
+ 'ui/gfx/gfx_plane.h', |
+ 'ui/gfx/platform_font_cast.cc', |
+ 'ui/gfx/render_text_cast.cc', |
+ 'ui/gfx/screen_cast.cc', |
+ 'ui/gfx/surface.cc', |
+ 'ui/gfx/surface.h', |
+ 'ui/gl/gl_context_cast.cc', |
+ 'ui/gl/gl_image_cast.cc', |
+ 'ui/gl/gl_implementation_cast.cc', |
+ 'ui/gl/gl_surface_cast.cc', |
+ ], |
+ 'conditions': [ |
+ ['target_arch!="arm" or cast_uses_directfb!=0', { |
+ 'dependencies': [ |
+ 'cast_system.gyp:directfb', |
+ ], |
+ 'sources': [ |
+ 'ui/gfx/gfx_plane_directfb.cc', |
+ 'ui/gfx/gfx_plane_directfb.h', |
+ 'ui/gfx/surface_directfb.cc', |
+ 'ui/gfx/surface_directfb.h', |
+ ], |
+ }, { |
+ 'conditions': [ |
+ ['chromecast_branding=="Chrome"', { |
+ 'dependencies': [ |
+ 'internal/chromecast_internal.gyp:cast_gfx_internal', |
+ ], |
+ }], |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'cast_port_impl', |
+ 'type': '<(component)', |
+ 'dependencies': [ |
+ '../skia/skia.gyp:skia', |
+ '../third_party/icu/icu.gyp:icui18n', |
+ '../third_party/icu/icu.gyp:icuuc', |
+ '../ui/accessibility/accessibility.gyp:accessibility', |
+ ], |
+ 'sources': [ |
+ 'port/content/browser/geolocation/wifi_data_provider_cast.cc', |
+ 'port/content/browser/geolocation/wifi_data_provider_cast.h', |
+ 'port/content/browser/power_save_blocker_cast.cc', |
+ 'port/content/browser/renderer_host/native_web_keyboard_event_cast.cc', |
+ 'port/content/browser/renderer_host/pepper_truetype_font_list_cast.cc', |
+ 'port/content/browser/renderer_host/render_widget_host_view_cast.cc', |
+ 'port/content/browser/renderer_host/render_widget_host_view_cast.h', |
+ 'port/content/browser/web_contents_view_cast.cc', |
+ 'port/content/browser/web_contents_view_cast.h', |
+ 'port/content/child/npapi/webplugin_delegate_impl_cast.cc', |
+ 'port/content/common/font_list_cast.cc', |
+ 'port/gpu/config/gpu_info_collector_cast.cc', |
+ 'port/ui/base/clipboard/clipboard_cast.cc', |
+ 'port/ui/base/resource/resource_bundle_cast.cc', |
+ 'port/ui/native_theme/native_theme_cast.cc', |
+ 'port/ui/native_theme/native_theme_cast.h', |
+ 'port/ui/snapshot/snapshot_cast.cc', |
+ 'port/webkit/common/cursors/webcursor_cast.cc', |
jam
2014/04/04 01:01:24
for all the cc files other than ones that match he
lcwu1
2014/04/05 01:17:13
Yes, agreed. All these non-public platform-specifi
|
+ '../printing/printing_context_no_system_dialog.cc', |
jam
2014/04/04 01:01:24
again, why are you not including a target from pri
lcwu1
2014/04/05 01:17:13
Chromecast doesn't support printing, but the build
jam
2014/04/07 17:32:01
so the best way to fix this printing case would be
|
+ '../printing/printing_context_no_system_dialog.h', |
+ '../skia/ext/bitmap_platform_device_skia.cc', |
+ '../skia/ext/bitmap_platform_device_skia.h', |
+ ], |
+ }, |
+ { |
+ 'target_name': 'cast_service', |
+ 'type': '<(component)', |
+ 'dependencies': [ |
+ '../skia/skia.gyp:skia', |
+ ], |
+ 'sources': [ |
+ 'service/cast_service.cc', |
+ 'service/cast_service.h', |
+ ], |
+ 'conditions': [ |
+ ['chromecast_branding=="Chrome"', { |
+ 'dependencies': [ |
+ 'internal/chromecast_internal.gyp:cast_service_internal', |
+ ], |
+ }, { |
+ 'sources': [ |
+ 'service/cast_platform_init_stub.cc', |
+ ], |
+ }], |
+ ], |
+ }, |
+ { |
+ 'target_name': 'cast_shell', |
+ 'type': 'executable', |
+ 'dependencies': [ |
+ 'cast_common', |
+ 'cast_gfx', |
+ 'cast_port_impl', |
+ 'cast_service', |
+ '../base/allocator/allocator.gyp:allocator', |
+ '../content/content.gyp:content', |
+ '../content/content.gyp:content_app_browser', |
+ '../skia/skia.gyp:skia', |
+ ], |
+ 'sources': [ |
+ 'shell/app/cast_main.cc', |
+ 'shell/app/cast_main_delegate.cc', |
+ 'shell/app/cast_main_delegate.h', |
+ 'shell/browser/cast_browser_context.cc', |
+ 'shell/browser/cast_browser_context.h', |
+ 'shell/browser/cast_browser_main_parts.cc', |
+ 'shell/browser/cast_browser_main_parts.h', |
+ 'shell/browser/cast_content_browser_client.cc', |
+ 'shell/browser/cast_content_browser_client.h', |
+ 'shell/browser/cast_http_user_agent_settings.cc', |
+ 'shell/browser/cast_http_user_agent_settings.h', |
+ 'shell/browser/geolocation/cast_access_token_store.cc', |
+ 'shell/browser/geolocation/cast_access_token_store.h', |
+ 'shell/browser/url_request_context_factory.cc', |
+ 'shell/browser/url_request_context_factory.h', |
+ 'shell/common/cast_content_client.cc', |
+ 'shell/common/cast_content_client.h', |
+ 'shell/renderer/cast_content_renderer_client.cc', |
+ 'shell/renderer/cast_content_renderer_client.h', |
+ ], |
+ }, |
+ ], # end of targets |
+} |