diff options
author | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
---|---|---|
committer | Zeno Albisser <zeno.albisser@digia.com> | 2013-08-15 21:46:11 +0200 |
commit | 679147eead574d186ebf3069647b4c23e8ccace6 (patch) | |
tree | fc247a0ac8ff119f7c8550879ebb6d3dd8d1ff69 /chromium/win8 | |
download | qtwebengine-chromium-679147eead574d186ebf3069647b4c23e8ccace6.tar.gz |
Initial import.
Diffstat (limited to 'chromium/win8')
-rw-r--r-- | chromium/win8/delegate_execute/delegate_execute.gyp | 88 | ||||
-rw-r--r-- | chromium/win8/metro_driver/metro_driver.gyp | 144 | ||||
-rw-r--r-- | chromium/win8/win8.gyp | 101 | ||||
-rw-r--r-- | chromium/win8/win8_tests.gyp | 36 |
4 files changed, 369 insertions, 0 deletions
diff --git a/chromium/win8/delegate_execute/delegate_execute.gyp b/chromium/win8/delegate_execute/delegate_execute.gyp new file mode 100644 index 00000000000..7461484cf38 --- /dev/null +++ b/chromium/win8/delegate_execute/delegate_execute.gyp @@ -0,0 +1,88 @@ +# Copyright (c) 2012 The Chromium Authors. 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, + }, + 'includes': [ + '../../build/win_precompile.gypi', + '../../chrome/version.gypi', + ], + 'targets': [ + { + 'target_name': 'delegate_execute_version_resources', + 'type': 'none', + 'conditions': [ + ['branding == "Chrome"', { + 'variables': { + 'branding_path': '../../chrome/app/theme/google_chrome/BRANDING', + }, + }, { # else branding!="Chrome" + 'variables': { + 'branding_path': '../../chrome/app/theme/chromium/BRANDING', + }, + }], + ], + 'variables': { + 'output_dir': 'delegate_execute', + 'template_input_path': '../../chrome/app/chrome_version.rc.version', + }, + 'sources': [ + 'delegate_execute_exe.ver', + ], + 'includes': [ + '../../chrome/version_resource_rules.gypi', + ], + }, + { + 'target_name': 'delegate_execute', + 'type': 'executable', + 'dependencies': [ + '../../base/base.gyp:base', + '../../breakpad/breakpad.gyp:breakpad_handler', + '../../chrome/chrome.gyp:installer_util', + '../../google_update/google_update.gyp:google_update', + '../../ui/ui.gyp:ui', + '../../win8/win8.gyp:check_sdk_patch', + 'delegate_execute_version_resources', + ], + 'sources': [ + 'chrome_util.cc', + 'chrome_util.h', + 'command_execute_impl.cc', + 'command_execute_impl.h', + 'command_execute_impl.rgs', + 'crash_server_init.cc', + 'crash_server_init.h', + 'delegate_execute.cc', + 'delegate_execute.rc', + 'delegate_execute_operation.cc', + 'delegate_execute_operation.h', + 'delegate_execute_util.cc', + 'delegate_execute_util.h', + 'resource.h', + '<(SHARED_INTERMEDIATE_DIR)/delegate_execute/delegate_execute_exe_version.rc', + ], + 'msvs_settings': { + 'VCLinkerTool': { + 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS + }, + }, + }, + { + 'target_name': 'delegate_execute_unittests', + 'type': 'executable', + 'dependencies': [ + '../../base/base.gyp:base', + '../../base/base.gyp:run_all_unittests', + '../../testing/gtest.gyp:gtest', + ], + 'sources': [ + 'delegate_execute_util.cc', + 'delegate_execute_util.h', + 'delegate_execute_util_unittest.cc', + ], + }, + ], +} diff --git a/chromium/win8/metro_driver/metro_driver.gyp b/chromium/win8/metro_driver/metro_driver.gyp new file mode 100644 index 00000000000..483d7d9cdf7 --- /dev/null +++ b/chromium/win8/metro_driver/metro_driver.gyp @@ -0,0 +1,144 @@ +# Copyright (c) 2012 The Chromium Authors. All rights reserved. +# Use of this source code is governed by a BSD-style license that can be +# found in the LICENSE file. +{ + 'conditions': [ + ['OS=="win"', { + 'variables': { + 'chromium_code': 1, + }, + 'includes': [ + '../../build/win_precompile.gypi', + '../../chrome/version.gypi', + ], + 'target_defaults': { + 'msvs_settings': { + 'VCLinkerTool': { + 'AdditionalDependencies': [ + 'D2D1.lib', + 'D3D11.lib', + ], + }, + }, + }, + 'targets': [ + { + 'target_name': 'metro_driver_version_resources', + 'type': 'none', + 'conditions': [ + ['branding == "Chrome"', { + 'variables': { + 'branding_path': '../../chrome/app/theme/google_chrome/BRANDING', + }, + }, { # else branding!="Chrome" + 'variables': { + 'branding_path': '../../chrome/app/theme/chromium/BRANDING', + }, + }], + ], + 'variables': { + 'output_dir': 'metro_driver', + 'template_input_path': '../../chrome/app/chrome_version.rc.version', + }, + 'sources': [ + 'metro_driver_dll.ver', + ], + 'includes': [ + '../../chrome/version_resource_rules.gypi', + ], + }, + { + 'target_name': 'metro_driver', + 'type': 'shared_library', + 'dependencies': [ + '../../base/base.gyp:base', + '../../chrome/common_constants.gyp:common_constants', + '../../crypto/crypto.gyp:crypto', + '../../google_update/google_update.gyp:google_update', + '../../ipc/ipc.gyp:ipc', + '../../sandbox/sandbox.gyp:sandbox', + '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages', + '../../url/url.gyp:url_lib', + '../win8.gyp:check_sdk_patch', + 'metro_driver_version_resources', + ], + 'sources': [ + 'metro_driver.cc', + 'metro_driver.h', + 'stdafx.h', + 'winrt_utils.cc', + 'winrt_utils.h', + '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc', + ], + 'conditions': [ + ['use_aura==1', { + 'dependencies': [ + '../win8.gyp:metro_viewer', + ], + 'sources': [ + 'chrome_app_view_ash.cc', + 'chrome_app_view_ash.h', + 'direct3d_helper.cc', + 'direct3d_helper.h', + 'file_picker_ash.cc', + 'file_picker_ash.h', + ], + }, { # use_aura!=1 + 'sources': [ + 'chrome_app_view.cc', + 'chrome_app_view.h', + 'chrome_url_launch_handler.cc', + 'chrome_url_launch_handler.h', + '../delegate_execute/chrome_util.cc', + '../delegate_execute/chrome_util.h', + 'devices_handler.cc', + 'devices_handler.h', + 'file_picker.cc', + 'file_picker.h', + 'metro_dialog_box.cc', + 'metro_dialog_box.h', + 'print_document_source.cc', + 'print_document_source.h', + 'print_handler.cc', + 'print_handler.h', + 'secondary_tile.cc', + 'secondary_tile.h', + 'settings_handler.cc', + 'settings_handler.h', + 'toast_notification_handler.cc', + 'toast_notification_handler.h', + ], + }], + ], + 'copies': [ + { + 'destination': '<(PRODUCT_DIR)', + 'files': [ + 'resources/Logo.png', + 'resources/SecondaryTile.png', + 'resources/SmallLogo.png', + 'resources/splash-620x300.png', + 'resources/VisualElementsManifest.xml', + ], + }, + ], + }, + { + 'target_name': 'metro_driver_unittests', + 'type': 'executable', + 'dependencies': [ + '../../base/base.gyp:base', + '../../testing/gtest.gyp:gtest', + 'metro_driver', + ], + 'sources': [ + 'run_all_unittests.cc', + 'winrt_utils.cc', + 'winrt_utils.h', + 'winrt_utils_unittest.cc', + ], + }, + ], + },], + ], +} diff --git a/chromium/win8/win8.gyp b/chromium/win8/win8.gyp new file mode 100644 index 00000000000..00bfa3bc663 --- /dev/null +++ b/chromium/win8/win8.gyp @@ -0,0 +1,101 @@ +# Copyright (c) 2012 The Chromium Authors. 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, + }, + 'includes': [ + '../build/win_precompile.gypi', + ], + 'targets': [ + { + 'target_name': 'check_sdk_patch', + 'type': 'none', + 'variables': { + 'check_sdk_script': 'util/check_sdk_patch.py', + 'output_path': '<(INTERMEDIATE_DIR)/check_sdk_patch', + }, + 'conditions': [ + ['MSVS_VERSION=="2010" or MSVS_VERSION=="2010e"', { + 'actions': [ + { + 'action_name': 'check_sdk_patch_action', + 'inputs': [ + '<(check_sdk_script)', + ], + 'outputs': [ + # This keeps the ninja build happy and provides a slightly + # helpful error message if the sdk is missing. + '<(output_path)' + ], + 'action': ['python', + '<(check_sdk_script)', + '<(windows_sdk_path)', + '<(output_path)', + ], + }, + ], + }], + ], + }, + { + 'target_name': 'win8_util', + 'type': 'static_library', + 'dependencies': [ + '../base/base.gyp:base', + ], + 'sources': [ + 'util/win8_util.cc', + 'util/win8_util.h', + ], + }, + { + 'target_name': 'metro_viewer', + 'type': 'static_library', + 'dependencies': [ + '../base/base.gyp:base', + '../ipc/ipc.gyp:ipc', + '../ui/aura/aura.gyp:aura', + '../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages', + ], + 'sources': [ + 'viewer/metro_viewer_constants.cc', + 'viewer/metro_viewer_constants.h', + 'viewer/metro_viewer_process_host.cc', + 'viewer/metro_viewer_process_host.h', + ], + }, + { + 'target_name': 'test_support_win8', + 'type': 'static_library', + 'dependencies': [ + '../base/base.gyp:base', + 'test_registrar_constants', + ], + 'sources': [ + 'test/metro_registration_helper.cc', + 'test/metro_registration_helper.h', + 'test/open_with_dialog_async.cc', + 'test/open_with_dialog_async.h', + 'test/open_with_dialog_controller.cc', + 'test/open_with_dialog_controller.h', + 'test/ui_automation_client.cc', + 'test/ui_automation_client.h', + ], + # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. + 'msvs_disabled_warnings': [ 4267, ], + }, + { + 'target_name': 'test_registrar_constants', + 'type': 'static_library', + 'include_dirs': [ + '..', + ], + 'sources': [ + 'test/test_registrar_constants.cc', + 'test/test_registrar_constants.h', + ], + }, + ], +} diff --git a/chromium/win8/win8_tests.gyp b/chromium/win8/win8_tests.gyp new file mode 100644 index 00000000000..256dd13a51c --- /dev/null +++ b/chromium/win8/win8_tests.gyp @@ -0,0 +1,36 @@ +# Copyright (c) 2013 The Chromium Authors. 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, + }, + 'includes': [ + '../build/win_precompile.gypi', + ], + 'targets': [ + { + 'target_name': 'test_registrar', + 'type': 'executable', + 'dependencies': [ + '../base/base.gyp:base', + # Chrome is the default viewer process currently used by the tests. + # TODO(robertshield): Investigate building a standalone metro viewer + # process. + '../chrome/chrome.gyp:chrome', + 'win8.gyp:test_registrar_constants', + ], + 'sources': [ + 'test/test_registrar.cc', + 'test/test_registrar.rc', + 'test/test_registrar.rgs', + 'test/test_registrar_resource.h', + ], + 'msvs_settings': { + 'VCLinkerTool': { + 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS + }, + }, + }, + ], +} |