1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 2 # Use of this source code is governed by a BSD-style license that can be 3 # found in the LICENSE file. 4 { 5 'conditions': [ 6 ['OS=="win"', { 7 'variables': { 8 'chromium_code': 1, 9 }, 10 'includes': [ 11 '../../build/util/version.gypi', 12 '../../build/win_precompile.gypi', 13 ], 14 'target_defaults': { 15 # This and the force include below is a workaround for intsafe.h in 16 # VS 2010. 17 'msvs_system_include_dirs': [ 18 '<(DEPTH)/build', 19 ], 20 'msvs_settings': { 21 'VCLinkerTool': { 22 'AdditionalDependencies': [ 23 'D2D1.lib', 24 'D3D11.lib', 25 'runtimeobject.lib', 26 ], 27 'DelayLoadDLLs': [ 28 'API-MS-WIN-CORE-WINRT-ERROR-L1-1-0.DLL', 29 'API-MS-WIN-CORE-WINRT-L1-1-0.DLL', 30 'API-MS-WIN-CORE-WINRT-STRING-L1-1-0.DLL', 31 ], 32 }, 33 'VCCLCompilerTool': { 34 'ForcedIncludeFiles': [ 'intsafe_workaround.h', ], 35 }, 36 }, 37 }, 38 'targets': [ 39 { 40 'target_name': 'metro_driver_version_resources', 41 'type': 'none', 42 'conditions': [ 43 ['branding == "Chrome"', { 44 'variables': { 45 'branding_path': '../../chrome/app/theme/google_chrome/BRANDING', 46 }, 47 }, { # else branding!="Chrome" 48 'variables': { 49 'branding_path': '../../chrome/app/theme/chromium/BRANDING', 50 }, 51 }], 52 ], 53 'variables': { 54 'output_dir': 'metro_driver', 55 'template_input_path': '../../chrome/app/chrome_version.rc.version', 56 }, 57 'sources': [ 58 'metro_driver_dll.ver', 59 ], 60 'includes': [ 61 '../../chrome/version_resource_rules.gypi', 62 ], 63 }, 64 { 65 'target_name': 'metro_driver', 66 'type': 'shared_library', 67 'dependencies': [ 68 '../../base/base.gyp:base', 69 '../../chrome/common_constants.gyp:common_constants', 70 '../../chrome/chrome.gyp:installer_util', 71 '../../crypto/crypto.gyp:crypto', 72 '../../google_update/google_update.gyp:google_update', 73 '../../ipc/ipc.gyp:ipc', 74 '../../sandbox/sandbox.gyp:sandbox', 75 '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages', 76 '../../ui/gfx/gfx.gyp:gfx', 77 '../../ui/gfx/gfx.gyp:gfx_geometry', 78 '../../url/url.gyp:url_lib', 79 'metro_driver_version_resources', 80 ], 81 'sources': [ 82 'display_properties.cc', 83 'display_properties.h', 84 'metro_driver.cc', 85 'metro_driver.h', 86 'metro_driver_win7.cc', 87 'stdafx.h', 88 'winrt_utils.cc', 89 'winrt_utils.h', 90 '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc', 91 ], 92 'conditions': [ 93 ['use_aura==1', { 94 'dependencies': [ 95 '../win8.gyp:metro_viewer_constants', 96 ], 97 'sources': [ 98 'chrome_app_view_ash.cc', 99 'chrome_app_view_ash.h', 100 'direct3d_helper.cc', 101 'direct3d_helper.h', 102 'file_picker_ash.cc', 103 'file_picker_ash.h', 104 ], 105 'includes': [ 106 'ime/ime.gypi', 107 ], 108 }, { # use_aura!=1 109 'sources': [ 110 'chrome_app_view.cc', 111 'chrome_app_view.h', 112 'chrome_url_launch_handler.cc', 113 'chrome_url_launch_handler.h', 114 'devices_handler.cc', 115 'devices_handler.h', 116 'file_picker.cc', 117 'file_picker.h', 118 'metro_dialog_box.cc', 119 'metro_dialog_box.h', 120 'print_document_source.cc', 121 'print_document_source.h', 122 'print_handler.cc', 123 'print_handler.h', 124 'secondary_tile.cc', 125 'secondary_tile.h', 126 'settings_handler.cc', 127 'settings_handler.h', 128 'toast_notification_handler.cc', 129 'toast_notification_handler.h', 130 ], 131 }], 132 ], 133 'copies': [ 134 { 135 'destination': '<(PRODUCT_DIR)', 136 'files': [ 137 'resources/Logo.png', 138 'resources/SecondaryTile.png', 139 'resources/SmallLogo.png', 140 'resources/splash-620x300.png', 141 'resources/VisualElementsManifest.xml', 142 ], 143 }, 144 ], 145 }, 146 { 147 'target_name': 'metro_driver_unittests', 148 'type': 'executable', 149 'dependencies': [ 150 '../../base/base.gyp:base', 151 '../../chrome/chrome.gyp:installer_util', 152 '../../testing/gtest.gyp:gtest', 153 'metro_driver', 154 ], 155 'sources': [ 156 'run_all_unittests.cc', 157 'winrt_utils.cc', 158 'winrt_utils.h', 159 'winrt_utils_unittest.cc', 160 ], 161 }, 162 ], 163 },], 164 ], 165 } 166