Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(464)

Unified Diff: chromecast/chromecast.gyp

Issue 1232313008: Chromecast: shrinks libcast_shell_android target for testability. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/chromecast.gyp
diff --git a/chromecast/chromecast.gyp b/chromecast/chromecast.gyp
index df845aee3d6e3053b1b6809b5f7616960307e1b2..778decdf64bca7c5a120e4a3fc7845555170e910 100644
--- a/chromecast/chromecast.gyp
+++ b/chromecast/chromecast.gyp
@@ -60,6 +60,8 @@
'sources': [
'base/cast_paths.cc',
'base/cast_paths.h',
+ 'base/chromecast_config_android.cc',
+ 'base/chromecast_config_android.h',
'base/chromecast_switches.cc',
'base/chromecast_switches.h',
'base/error_codes.cc',
@@ -76,6 +78,13 @@
'base/serializers.cc',
'base/serializers.h'
],
+ 'conditions': [
+ ['OS=="android"', {
+ 'dependencies': [
+ 'cast_jni_headers',
+ ],
+ }],
+ ],
}, # end of target 'cast_base'
{
'target_name': 'cast_crash',
@@ -118,14 +127,28 @@
'type': '<(component)',
'dependencies': [
'cast_crash',
+ '../breakpad/breakpad.gyp:breakpad_client',
'../components/components.gyp:crash_component',
'../content/content.gyp:content_common',
],
+ 'include_dirs': [
+ '../breakpad/src',
+ ],
'sources' : [
- # TODO(slan): Move android crash_client here as well.
+ 'app/android/crash_handler.cc',
+ 'app/android/crash_handler.h',
+ 'app/android/cast_crash_reporter_client_android.cc',
+ 'app/android/cast_crash_reporter_client_android.h',
'app/linux/cast_crash_reporter_client.cc',
'app/linux/cast_crash_reporter_client.h',
],
+ 'conditions': [
+ ['OS=="android"', {
+ 'dependencies': [
+ 'cast_jni_headers',
+ ],
+ }],
+ ],
}, # end of target 'cast_crash_client'
{
'target_name': 'cast_net',
@@ -259,6 +282,10 @@
'sources': [
'app/cast_main_delegate.cc',
'app/cast_main_delegate.h',
+ 'browser/android/cast_window_android.cc',
+ 'browser/android/cast_window_android.h',
+ 'browser/android/cast_window_manager.cc',
+ 'browser/android/cast_window_manager.h',
'browser/cast_browser_context.cc',
'browser/cast_browser_context.h',
'browser/cast_browser_main_parts.cc',
@@ -337,16 +364,13 @@
'browser/devtools/remote_debugging_server_simple.cc',
'browser/metrics/platform_metrics_providers_simple.cc',
'browser/pref_service_helper_simple.cc',
+ 'browser/service/cast_service_android.cc',
+ 'browser/service/cast_service_android.h',
'common/platform_client_auth_simple.cc',
'renderer/cast_content_renderer_client_simple.cc',
],
'conditions': [
- ['OS=="android"', {
- 'sources': [
- 'browser/service/cast_service_android.cc',
- 'browser/service/cast_service_android.h',
- ],
- }, {
+ ['OS!="android"', {
'sources': [
'browser/media/cast_browser_cdm_factory_simple.cc',
'browser/service/cast_service_simple.cc',
@@ -372,6 +396,7 @@
['OS=="android"', {
'dependencies': [
'../components/components.gyp:cdm_browser',
+ 'cast_jni_headers',
],
}],
],
@@ -387,8 +412,15 @@
'base/cast_sys_info_util.h',
'base/cast_sys_info_dummy.cc',
'base/cast_sys_info_dummy.h',
+ 'base/cast_sys_info_android.cc',
+ 'base/cast_sys_info_android.h',
],
'conditions': [
+ ['OS=="android"', {
+ 'dependencies': [
+ 'cast_jni_headers',
+ ],
+ }],
['chromecast_branding!="Chrome" and OS!="android"', {
'sources': [
'base/cast_sys_info_util_simple.cc',
@@ -468,37 +500,20 @@
'cast_shell_pak',
'cast_version_header',
'../base/base.gyp:base',
- '../breakpad/breakpad.gyp:breakpad_client',
'../components/components.gyp:breakpad_host',
- '../components/components.gyp:crash_component',
'../components/components.gyp:external_video_surface',
'../content/content.gyp:content',
'../skia/skia.gyp:skia',
'../ui/gfx/gfx.gyp:gfx',
'../ui/gl/gl.gyp:gl',
],
- 'include_dirs': [
- '../breakpad/src',
- ],
'sources': [
'android/cast_jni_registrar.cc',
'android/cast_jni_registrar.h',
'android/cast_metrics_helper_android.cc',
'android/cast_metrics_helper_android.h',
'android/platform_jni_loader.h',
- 'app/android/cast_crash_reporter_client_android.cc',
- 'app/android/cast_crash_reporter_client_android.h',
'app/android/cast_jni_loader.cc',
- 'app/android/crash_handler.cc',
- 'app/android/crash_handler.h',
- 'base/cast_sys_info_android.cc',
- 'base/cast_sys_info_android.h',
- 'base/chromecast_config_android.cc',
- 'base/chromecast_config_android.h',
- 'browser/android/cast_window_android.cc',
- 'browser/android/cast_window_android.h',
- 'browser/android/cast_window_manager.cc',
- 'browser/android/cast_window_manager.h',
],
'conditions': [
['chromecast_branding=="Chrome"', {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698