diff options
author | rockot@google.com <rockot@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-04 00:14:37 +0000 |
---|---|---|
committer | rockot@google.com <rockot@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-04 00:14:37 +0000 |
commit | f9e52b4c6e147209fa625bdd6fc1ce781aa0f912 (patch) | |
tree | f2dc9220cf42cc650a2b65ef40bd052c55114eb3 /apps/apps.gypi | |
parent | 065105cae3aad43ce57b7625da68d23f8e762f6b (diff) | |
download | chromium_src-f9e52b4c6e147209fa625bdd6fc1ce781aa0f912.zip chromium_src-f9e52b4c6e147209fa625bdd6fc1ce781aa0f912.tar.gz chromium_src-f9e52b4c6e147209fa625bdd6fc1ce781aa0f912.tar.bz2 |
Revert 261559 "Create new app_shell.gyp for app_shell targets."
> Create new app_shell.gyp for app_shell targets.
>
> This moves app_shell GYP entries from a chrome.gyp include into
> a new apps/shell/app_shell.gyp.
>
> It also breaks down dependencies with more granularity and separates
> temporary, undesirable app_shell_lib dependencies from acceptable ones.
>
> BUG=359678
> TBR=yoz@chromium.org for extensions.gyp
>
> Review URL: https://codereview.chromium.org/223613005
TBR=rockot@chromium.org
Review URL: https://codereview.chromium.org/224963002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@261595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/apps.gypi')
-rw-r--r-- | apps/apps.gypi | 163 |
1 files changed, 163 insertions, 0 deletions
diff --git a/apps/apps.gypi b/apps/apps.gypi index 998f7e4..b82d133 100644 --- a/apps/apps.gypi +++ b/apps/apps.gypi @@ -103,4 +103,167 @@ 'msvs_disabled_warnings': [ 4267, ], }, ], # targets + 'conditions': [ + ['chromeos==1 or (OS=="linux" and use_aura==1) or (OS=="win" and use_aura==1)', { + 'targets': [ + { + 'target_name': 'app_shell_pak', + 'type': 'none', + 'dependencies': [ + # Need extension related resources in common_resources.pak and + # renderer_resources_100_percent.pak + 'chrome_resources.gyp:chrome_resources', + # Need app related resources in theme_resources_100_percent.pak + 'chrome_resources.gyp:theme_resources', + # Need dev-tools related resources in shell_resources.pak and + # devtools_resources.pak. + '../content/content_shell_and_tests.gyp:generate_content_shell_resources', + '../content/browser/devtools/devtools_resources.gyp:devtools_resources', + '../ui/base/strings/ui_strings.gyp:ui_strings', + '../ui/resources/ui_resources.gyp:ui_resources', + ], + 'actions': [ + { + 'action_name': 'repack_app_shell_pack', + 'variables': { + 'pak_inputs': [ + '<(grit_out_dir)/common_resources.pak', + '<(grit_out_dir)/extensions_api_resources.pak', + # TODO(jamescook): extra the extension/app related resources + # from generated_resources_en-US.pak and + # theme_resources_100_percent.pak. + '<(SHARED_INTERMEDIATE_DIR)/chrome/generated_resources_en-US.pak', + '<(SHARED_INTERMEDIATE_DIR)/chrome/renderer_resources_100_percent.pak', + '<(SHARED_INTERMEDIATE_DIR)/chrome/theme_resources_100_percent.pak', + '<(SHARED_INTERMEDIATE_DIR)/content/shell_resources.pak', + '<(SHARED_INTERMEDIATE_DIR)/ui/app_locale_settings/app_locale_settings_en-US.pak', + '<(SHARED_INTERMEDIATE_DIR)/ui/ui_resources/ui_resources_100_percent.pak', + '<(SHARED_INTERMEDIATE_DIR)/ui/ui_strings/ui_strings_en-US.pak', + '<(SHARED_INTERMEDIATE_DIR)/webkit/devtools_resources.pak', + ], + 'pak_output': '<(PRODUCT_DIR)/app_shell.pak', + }, + 'includes': [ '../build/repack_action.gypi' ], + }, + ], + }, + { + 'target_name': 'app_shell_lib', + 'type': 'static_library', + 'defines!': ['CONTENT_IMPLEMENTATION'], + 'variables': { + 'chromium_code': 1, + }, + 'dependencies': [ + 'app_shell_pak', + 'apps', + 'common/extensions/api/api.gyp:chrome_api', + 'test_support_common', + '../base/base.gyp:base', + '../base/base.gyp:base_prefs_test_support', + '../content/content.gyp:content', + '../content/content_shell_and_tests.gyp:content_shell_lib', + '../extensions/common/api/api.gyp:extensions_api', + '../skia/skia.gyp:skia', + '../ui/views/views.gyp:views', + '../ui/wm/wm.gyp:wm_test_support', + ], + 'include_dirs': [ + '..', + ], + 'sources': [ + 'shell/app/shell_main_delegate.cc', + 'shell/app/shell_main_delegate.h', + 'shell/browser/shell_app_sorting.cc', + 'shell/browser/shell_app_sorting.h', + 'shell/browser/shell_app_window_delegate.cc', + 'shell/browser/shell_app_window_delegate.h', + 'shell/browser/shell_apps_client.cc', + 'shell/browser/shell_apps_client.h', + 'shell/browser/shell_browser_context.cc', + 'shell/browser/shell_browser_context.h', + 'shell/browser/shell_browser_main_parts.cc', + 'shell/browser/shell_browser_main_parts.h', + 'shell/browser/shell_content_browser_client.cc', + 'shell/browser/shell_content_browser_client.h', + 'shell/browser/shell_desktop_controller.cc', + 'shell/browser/shell_desktop_controller.h', + 'shell/browser/shell_extension_system.cc', + 'shell/browser/shell_extension_system.h', + 'shell/browser/shell_extension_system_factory.cc', + 'shell/browser/shell_extension_system_factory.h', + 'shell/browser/shell_extension_web_contents_observer.cc', + 'shell/browser/shell_extension_web_contents_observer.h', + 'shell/browser/shell_extensions_browser_client.cc', + 'shell/browser/shell_extensions_browser_client.h', + 'shell/common/shell_content_client.cc', + 'shell/common/shell_content_client.h', + 'shell/common/shell_extensions_client.cc', + 'shell/common/shell_extensions_client.h', + 'shell/renderer/shell_content_renderer_client.cc', + 'shell/renderer/shell_content_renderer_client.h', + ], + }, + { + 'target_name': 'app_shell', + 'type': 'executable', + 'defines!': ['CONTENT_IMPLEMENTATION'], + 'variables': { + 'chromium_code': 1, + }, + 'dependencies': [ + 'app_shell_lib', + 'app_shell_pak', + ], + 'include_dirs': [ + '..', + ], + 'sources': [ + 'shell/app/shell_main.cc', + ], + 'conditions': [ + ['OS=="win"', { + 'msvs_settings': { + 'VCLinkerTool': { + 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS + }, + }, + 'msvs_large_pdb': 1, + 'dependencies': [ + '../sandbox/sandbox.gyp:sandbox', + ], + }], + ], + }, + { + 'target_name': 'apps_browsertests', + 'type': '<(gtest_target_type)', + 'variables': { + 'chromium_code': 1, + }, + 'dependencies': [ + 'app_shell_lib', + # TODO(yoz): find the right deps + '../base/base.gyp:test_support_base', + '../content/content.gyp:content_app_both', + '../content/content_shell_and_tests.gyp:content_browser_test_support', + '../content/content_shell_and_tests.gyp:test_support_content', + '../testing/gtest.gyp:gtest', + ], + 'defines': [ + 'HAS_OUT_OF_PROC_TEST_RUNNER', + ], + 'msvs_large_pdb': 1, + 'sources': [ + # TODO(yoz): Refactor once we have a second test target. + 'test/app_shell_test.h', + 'test/app_shell_test.cc', + 'test/apps_test_launcher_delegate.cc', + 'test/apps_test_launcher_delegate.h', + 'test/apps_tests_main.cc', + ], + }, + ], # targets + }], # chromeos==1 or linux aura or win aura + ], # conditions } |