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

Unified Diff: chromecast/chromecast.gyp

Issue 638803002: Reorganizes Chromecast code to better reflect functional dependencies. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 2 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 | « chromecast/browser/webui/webui_cast_simple.cc ('k') | chromecast/chromecast_locales.gyp » ('j') | 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 7ca308a435f02feb8c5315d349bdd72b17e88c4e..303124ea2ea27fc1d14b3c89996ec43b533b62c5 100644
--- a/chromecast/chromecast.gyp
+++ b/chromecast/chromecast.gyp
@@ -109,42 +109,6 @@
],
},
{
- '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',
- ],
- }, {
- 'dependencies': [
- '../base/base.gyp:base',
- '../content/content.gyp:content',
- ],
- 'conditions': [
- ['OS=="android"', {
- 'sources': [
- 'service/cast_service_android.cc',
- 'service/cast_service_android.h',
- ],
- }, {
- 'sources': [
- 'service/cast_service_simple.cc',
- 'service/cast_service_simple.h',
- ],
- }],
- ],
- }],
- ],
- },
- {
'target_name': 'cast_shell_resources',
'type': 'none',
'variables': {
@@ -154,8 +118,8 @@
{
'action_name': 'cast_shell_resources',
'variables': {
- 'grit_grd_file': 'shell/browser/resources/shell_resources.grd',
- 'grit_resource_ids': 'shell/browser/resources/resource_ids',
+ 'grit_grd_file': 'app/resources/shell_resources.grd',
+ 'grit_resource_ids': 'app/resources/resource_ids',
},
'includes': [ '../build/grit_action.gypi' ],
},
@@ -206,13 +170,13 @@
'dependencies': [
'cast_common',
'cast_metrics',
- 'cast_service',
'cast_shell_pak',
'cast_shell_resources',
'cast_version_header',
'chromecast_locales.gyp:chromecast_locales_pak',
'chromecast_locales.gyp:chromecast_settings',
'media/media.gyp:media_base',
+ '../base/base.gyp:base',
'../components/components.gyp:cdm_renderer',
'../components/components.gyp:component_metrics_proto',
'../content/content.gyp:content',
@@ -222,37 +186,39 @@
'../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
],
'sources': [
- '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_browser_process.cc',
- 'shell/browser/cast_browser_process.h',
- 'shell/browser/cast_content_browser_client.cc',
- 'shell/browser/cast_content_browser_client.h',
- 'shell/browser/cast_download_manager_delegate.cc',
- 'shell/browser/cast_download_manager_delegate.h',
- 'shell/browser/cast_http_user_agent_settings.cc',
- 'shell/browser/cast_http_user_agent_settings.h',
- 'shell/browser/cast_network_delegate.cc',
- 'shell/browser/cast_network_delegate.h',
- 'shell/browser/devtools/cast_dev_tools_delegate.cc',
- 'shell/browser/devtools/cast_dev_tools_delegate.h',
- 'shell/browser/devtools/remote_debugging_server.cc',
- 'shell/browser/devtools/remote_debugging_server.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/browser/webui/webui_cast.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',
- 'shell/renderer/key_systems_cast.cc',
- 'shell/renderer/key_systems_cast.h',
+ 'app/cast_content_client.cc',
+ 'app/cast_content_client.h',
lcwu1 2014/10/13 01:26:35 Why do you want to place cast_content_client.[cc|h
gunsch 2014/10/13 03:13:17 That was a very conscious decision: * chromecast/c
+ 'app/cast_main_delegate.cc',
+ 'app/cast_main_delegate.h',
+ 'browser/cast_browser_context.cc',
+ 'browser/cast_browser_context.h',
+ 'browser/cast_browser_main_parts.cc',
+ 'browser/cast_browser_main_parts.h',
+ 'browser/cast_browser_process.cc',
+ 'browser/cast_browser_process.h',
+ 'browser/cast_content_browser_client.cc',
+ 'browser/cast_content_browser_client.h',
+ 'browser/cast_download_manager_delegate.cc',
+ 'browser/cast_download_manager_delegate.h',
+ 'browser/cast_http_user_agent_settings.cc',
+ 'browser/cast_http_user_agent_settings.h',
+ 'browser/cast_network_delegate.cc',
+ 'browser/cast_network_delegate.h',
+ 'browser/devtools/cast_dev_tools_delegate.cc',
+ 'browser/devtools/cast_dev_tools_delegate.h',
+ 'browser/devtools/remote_debugging_server.cc',
+ 'browser/devtools/remote_debugging_server.h',
+ 'browser/geolocation/cast_access_token_store.cc',
+ 'browser/geolocation/cast_access_token_store.h',
+ 'browser/service/cast_service.cc',
+ 'browser/service/cast_service.h',
+ 'browser/url_request_context_factory.cc',
+ 'browser/url_request_context_factory.h',
+ 'browser/webui/webui_cast.h',
+ 'renderer/cast_content_renderer_client.cc',
+ 'renderer/cast_content_renderer_client.h',
+ 'renderer/key_systems_cast.cc',
+ 'renderer/key_systems_cast.h',
],
'conditions': [
['chromecast_branding=="Chrome"', {
@@ -261,10 +227,23 @@
],
}, {
'sources': [
- 'shell/browser/cast_network_delegate_simple.cc',
- 'shell/browser/devtools/remote_debugging_server_simple.cc',
- 'shell/browser/webui/webui_cast_simple.cc',
- 'shell/renderer/key_systems_cast_simple.cc',
+ 'browser/cast_network_delegate_simple.cc',
+ 'browser/devtools/remote_debugging_server_simple.cc',
+ 'browser/webui/webui_cast_simple.cc',
+ 'renderer/key_systems_cast_simple.cc',
+ ],
+ 'conditions': [
+ ['OS=="android"', {
+ 'sources': [
+ 'browser/service/cast_service_android.cc',
+ 'browser/service/cast_service_android.h',
+ ],
+ }, {
+ 'sources': [
+ 'browser/service/cast_service_simple.cc',
+ 'browser/service/cast_service_simple.h',
+ ],
+ }],
],
}],
],
@@ -345,17 +324,17 @@
'android/chromecast_config_android.cc',
'android/chromecast_config_android.h',
'android/platform_jni_loader.h',
+ 'app/android/cast_jni_loader.cc',
+ '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/android/external_video_surface_container_impl.cc',
+ 'browser/android/external_video_surface_container_impl.h',
'crash/android/cast_crash_reporter_client_android.cc',
'crash/android/cast_crash_reporter_client_android.h',
'crash/android/crash_handler.cc',
'crash/android/crash_handler.h',
- 'shell/app/android/cast_jni_loader.cc',
- 'shell/browser/android/cast_window_android.cc',
- 'shell/browser/android/cast_window_android.h',
- 'shell/browser/android/cast_window_manager.cc',
- 'shell/browser/android/cast_window_manager.h',
- 'shell/browser/android/external_video_surface_container_impl.cc',
- 'shell/browser/android/external_video_surface_container_impl.h',
],
'conditions': [
['chromecast_branding=="Chrome"', {
@@ -383,8 +362,8 @@
],
'variables': {
'has_java_resources': 1,
- 'java_in_dir': 'shell/android/apk',
- 'resource_dir': 'shell/android/apk/res',
+ 'java_in_dir': 'browser/android/apk',
+ 'resource_dir': 'browser/android/apk/res',
'R_package': 'org.chromium.chromecast.shell',
},
'includes': ['../build/java.gypi'],
@@ -406,7 +385,7 @@
# if the actual Java path is used.
# This will hopefully be removable after the great GN migration.
'java_in_dir': 'android',
- 'android_manifest_path': 'shell/android/apk/AndroidManifest.xml',
+ 'android_manifest_path': 'browser/android/apk/AndroidManifest.xml',
'package_name': 'org.chromium.chromecast.shell',
'native_lib_target': 'libcast_shell_android',
'asset_location': '<(PRODUCT_DIR)/assets',
@@ -418,10 +397,10 @@
'target_name': 'cast_jni_headers',
'type': 'none',
'sources': [
- 'shell/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java',
- 'shell/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java',
- 'shell/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java',
- 'shell/android/apk/src/org/chromium/chromecast/shell/ExternalVideoSurfaceContainer.java',
+ 'browser/android/apk/src/org/chromium/chromecast/shell/CastCrashHandler.java',
+ 'browser/android/apk/src/org/chromium/chromecast/shell/CastWindowAndroid.java',
+ 'browser/android/apk/src/org/chromium/chromecast/shell/CastWindowManager.java',
+ 'browser/android/apk/src/org/chromium/chromecast/shell/ExternalVideoSurfaceContainer.java',
],
'direct_dependent_settings': {
'include_dirs': [
@@ -467,7 +446,7 @@
'cast_shell_core',
],
'sources': [
- 'shell/app/cast_main.cc',
+ 'app/cast_main.cc',
],
},
{
@@ -481,7 +460,7 @@
'HAS_OUT_OF_PROC_TEST_RUNNER',
],
'sources': [
- 'shell/browser/test/chromecast_shell_browser_test.cc',
+ 'browser/test/chromecast_shell_browser_test.cc',
],
},
{
@@ -496,9 +475,9 @@
'../testing/gtest.gyp:gtest',
],
'sources': [
- 'shell/browser/test/chromecast_browser_test.cc',
- 'shell/browser/test/chromecast_browser_test.h',
- 'shell/browser/test/chromecast_browser_test_runner.cc',
+ 'browser/test/chromecast_browser_test.cc',
+ 'browser/test/chromecast_browser_test.h',
+ 'browser/test/chromecast_browser_test_runner.cc',
],
},
], # end of targets
« no previous file with comments | « chromecast/browser/webui/webui_cast_simple.cc ('k') | chromecast/chromecast_locales.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698