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

Unified Diff: chrome/browser/ui/metro_driver/metro_driver.gyp

Issue 10875008: Integrate the Windows 8 code into the Chromium tree. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adding gyp target that fails in case of missing SDK patch. Created 8 years, 4 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
Index: chrome/browser/ui/metro_driver/metro_driver.gyp
diff --git a/chrome/browser/ui/metro_driver/metro_driver.gyp b/chrome/browser/ui/metro_driver/metro_driver.gyp
new file mode 100644
index 0000000000000000000000000000000000000000..d53d091e1302a2312a55cee87192432b865439e6
--- /dev/null
+++ b/chrome/browser/ui/metro_driver/metro_driver.gyp
@@ -0,0 +1,118 @@
+# 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" and (MSVS_VERSION=="2010" or MSVS_VERSION=="2010e")', {
+ 'variables': {
+ 'chromium_code': 1,
+ },
+ 'includes': [
+ '../../../../build/win_precompile.gypi',
+ ],
+ 'target_defaults': {
+ 'defines': [
+ # This define is required to pull in the new Win8 interfaces from
+ # system headers like ShObjIdl.h
+ 'NTDDI_VERSION=0x06020000',
+ ],
+ 'msvs_settings': {
+ 'VCLinkerTool': {
+ 'AdditionalDependencies': [
+ 'D2D1.lib',
+ 'D3D11.lib',
+ ],
+ },
+ },
+ },
+ 'targets': [
+ {
+ 'target_name': 'check_sdk_patch_metro_driver',
grt (UTC plus 2) 2012/08/29 02:59:18 is it appropriate to move this target into chrome.
robertshield 2012/08/30 13:34:05 I moved it into a common target under src/win8. Se
+ 'type': 'none',
+ 'variables': {
+ 'check_sdk_script': '<(DEPTH)/chrome/tools/build/win/check_sdk_patch.py',
+ },
+ 'actions': [
+ {
+ 'action_name': 'check_sdk_patch_action',
+ 'inputs': [
+ '<@(windows_sdk_path)/Include/winrt/asyncinfo.h',
+ ],
+ 'outputs': [
+ # This keeps the ninja build happy.
+ 'dummy',
+ ],
+ 'action': ['python', '<(check_sdk_script)', '<@(windows_sdk_path)'],
+ },
+ ],
+ },
+ {
+ 'target_name': 'metro_driver',
+ 'type': 'shared_library',
+ 'dependencies': [
+ 'check_sdk_patch_metro_driver',
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/crypto/crypto.gyp:crypto',
+ '<(DEPTH)/sandbox/sandbox.gyp:sandbox',
+ '<(DEPTH)/google_update/google_update.gyp:google_update',
+ ],
+ 'sources': [
+ 'chrome_app_view.cc',
+ 'chrome_app_view.h',
+ 'chrome_url_launch_handler.cc',
+ 'chrome_url_launch_handler.h',
+ '<(DEPTH)/win8/delegate_execute/chrome_util.cc',
+ '<(DEPTH)/win8/delegate_execute/chrome_util.h',
+ 'devices_handler.cc',
+ 'devices_handler.h',
+ 'file_picker.h',
+ 'file_picker.cc',
+ 'metro_dialog_box.cc',
+ 'metro_dialog_box.h',
+ 'metro_driver.cc',
+ 'print_handler.cc',
+ 'print_handler.h',
+ 'print_document_source.cc',
+ 'print_document_source.h',
+ 'secondary_tile.h',
+ 'secondary_tile.cc',
+ 'settings_handler.cc',
+ 'settings_handler.h',
+ 'stdafx.h',
+ 'toast_notification_handler.cc',
+ 'toast_notification_handler.h',
+ 'winrt_utils.cc',
+ 'winrt_utils.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': [
+ '<(DEPTH)/base/base.gyp:base',
+ '<(DEPTH)/testing/gtest.gyp:gtest',
+ 'metro_driver',
+ ],
+ 'sources': [
+ 'run_all_unittests.cc',
+ 'winrt_utils.cc',
+ 'winrt_utils.h',
+ 'winrt_utils_unittest.cc',
+ ],
+ },
+ ],
+ },],
+ ],
+}

Powered by Google App Engine
This is Rietveld 408576698