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 'variables': { 6 'chromium_code': 1, 7 }, 8 'includes': [ 9 '../build/win_precompile.gypi', 10 ], 11 'targets': [ 12 { 13 'target_name': 'check_sdk_patch', 14 'type': 'none', 15 'variables': { 16 'check_sdk_script': 'util/check_sdk_patch.py', 17 'output_path': '<(INTERMEDIATE_DIR)/check_sdk_patch', 18 }, 19 'conditions': [ 20 ['MSVS_VERSION=="2010" or MSVS_VERSION=="2010e"', { 21 'actions': [ 22 { 23 'action_name': 'check_sdk_patch_action', 24 'inputs': [ 25 '<(check_sdk_script)', 26 ], 27 'outputs': [ 28 # This keeps the ninja build happy and provides a slightly 29 # helpful error message if the sdk is missing. 30 '<(output_path)' 31 ], 32 'action': ['python', 33 '<(check_sdk_script)', 34 '<(windows_sdk_path)', 35 '<(output_path)', 36 ], 37 }, 38 ], 39 }], 40 ], 41 }, 42 { 43 'target_name': 'win8_util', 44 'type': 'static_library', 45 'dependencies': [ 46 '../base/base.gyp:base', 47 ], 48 'sources': [ 49 'util/win8_util.cc', 50 'util/win8_util.h', 51 ], 52 }, 53 { 54 'target_name': 'metro_viewer_constants', 55 'type': 'static_library', 56 'include_dirs': [ 57 '..', 58 ], 59 'sources': [ 60 'viewer/metro_viewer_constants.cc', 61 'viewer/metro_viewer_constants.h', 62 ], 63 }, 64 { 65 'target_name': 'metro_viewer', 66 'type': 'static_library', 67 'dependencies': [ 68 '../base/base.gyp:base', 69 '../ipc/ipc.gyp:ipc', 70 '../ui/aura/aura.gyp:aura', 71 '../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages', 72 'metro_viewer_constants' 73 ], 74 'sources': [ 75 'viewer/metro_viewer_process_host.cc', 76 'viewer/metro_viewer_process_host.h', 77 ], 78 }, 79 { 80 'target_name': 'test_support_win8', 81 'type': 'static_library', 82 'dependencies': [ 83 '../base/base.gyp:base', 84 'test_registrar_constants', 85 ], 86 'sources': [ 87 'test/metro_registration_helper.cc', 88 'test/metro_registration_helper.h', 89 'test/open_with_dialog_async.cc', 90 'test/open_with_dialog_async.h', 91 'test/open_with_dialog_controller.cc', 92 'test/open_with_dialog_controller.h', 93 'test/ui_automation_client.cc', 94 'test/ui_automation_client.h', 95 ], 96 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. 97 'msvs_disabled_warnings': [ 4267, ], 98 }, 99 { 100 'target_name': 'test_registrar_constants', 101 'type': 'static_library', 102 'include_dirs': [ 103 '..', 104 ], 105 'sources': [ 106 'test/test_registrar_constants.cc', 107 'test/test_registrar_constants.h', 108 ], 109 }, 110 ], 111 } 112