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/win_precompile.gypi', 12 '../../chrome/version.gypi', 13 ], 14 'target_defaults': { 15 'msvs_settings': { 16 'VCLinkerTool': { 17 'AdditionalDependencies': [ 18 'D2D1.lib', 19 'D3D11.lib', 20 ], 21 }, 22 }, 23 }, 24 'targets': [ 25 { 26 'target_name': 'metro_driver_version_resources', 27 'type': 'none', 28 'conditions': [ 29 ['branding == "Chrome"', { 30 'variables': { 31 'branding_path': '../../chrome/app/theme/google_chrome/BRANDING', 32 }, 33 }, { # else branding!="Chrome" 34 'variables': { 35 'branding_path': '../../chrome/app/theme/chromium/BRANDING', 36 }, 37 }], 38 ], 39 'variables': { 40 'output_dir': 'metro_driver', 41 'template_input_path': '../../chrome/app/chrome_version.rc.version', 42 }, 43 'sources': [ 44 'metro_driver_dll.ver', 45 ], 46 'includes': [ 47 '../../chrome/version_resource_rules.gypi', 48 ], 49 }, 50 { 51 'target_name': 'metro_driver', 52 'type': 'shared_library', 53 'dependencies': [ 54 '../../base/base.gyp:base', 55 '../../chrome/common_constants.gyp:common_constants', 56 '../../crypto/crypto.gyp:crypto', 57 '../../google_update/google_update.gyp:google_update', 58 '../../ipc/ipc.gyp:ipc', 59 '../../sandbox/sandbox.gyp:sandbox', 60 '../../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages', 61 '../../url/url.gyp:url_lib', 62 '../win8.gyp:check_sdk_patch', 63 'metro_driver_version_resources', 64 ], 65 'sources': [ 66 'metro_driver.cc', 67 'metro_driver.h', 68 'stdafx.h', 69 'winrt_utils.cc', 70 'winrt_utils.h', 71 '<(SHARED_INTERMEDIATE_DIR)/metro_driver/metro_driver_dll_version.rc', 72 ], 73 'conditions': [ 74 ['use_aura==1', { 75 'dependencies': [ 76 '../win8.gyp:metro_viewer', 77 ], 78 'sources': [ 79 'chrome_app_view_ash.cc', 80 'chrome_app_view_ash.h', 81 'direct3d_helper.cc', 82 'direct3d_helper.h', 83 'file_picker_ash.cc', 84 'file_picker_ash.h', 85 ], 86 }, { # use_aura!=1 87 'sources': [ 88 'chrome_app_view.cc', 89 'chrome_app_view.h', 90 'chrome_url_launch_handler.cc', 91 'chrome_url_launch_handler.h', 92 '../delegate_execute/chrome_util.cc', 93 '../delegate_execute/chrome_util.h', 94 'devices_handler.cc', 95 'devices_handler.h', 96 'file_picker.cc', 97 'file_picker.h', 98 'metro_dialog_box.cc', 99 'metro_dialog_box.h', 100 'print_document_source.cc', 101 'print_document_source.h', 102 'print_handler.cc', 103 'print_handler.h', 104 'secondary_tile.cc', 105 'secondary_tile.h', 106 'settings_handler.cc', 107 'settings_handler.h', 108 'toast_notification_handler.cc', 109 'toast_notification_handler.h', 110 ], 111 }], 112 ], 113 'copies': [ 114 { 115 'destination': '<(PRODUCT_DIR)', 116 'files': [ 117 'resources/Logo.png', 118 'resources/SecondaryTile.png', 119 'resources/SmallLogo.png', 120 'resources/splash-620x300.png', 121 'resources/VisualElementsManifest.xml', 122 ], 123 }, 124 ], 125 }, 126 { 127 'target_name': 'metro_driver_unittests', 128 'type': 'executable', 129 'dependencies': [ 130 '../../base/base.gyp:base', 131 '../../testing/gtest.gyp:gtest', 132 'metro_driver', 133 ], 134 'sources': [ 135 'run_all_unittests.cc', 136 'winrt_utils.cc', 137 'winrt_utils.h', 138 'winrt_utils_unittest.cc', 139 ], 140 }, 141 ], 142 },], 143 ], 144 } 145