blob: 00bfa3bc6637ed326537794eaa173409dc8e7fd4 [file] [log] [blame]
Torne (Richard Coles)58218062012-11-14 11:43:16 +00001# 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': {
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000016 'check_sdk_script': 'util/check_sdk_patch.py',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000017 'output_path': '<(INTERMEDIATE_DIR)/check_sdk_patch',
18 },
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000019 '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 },
Torne (Richard Coles)58218062012-11-14 11:43:16 +000038 ],
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000039 }],
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 {
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010054 'target_name': 'metro_viewer',
55 'type': 'static_library',
56 'dependencies': [
57 '../base/base.gyp:base',
58 '../ipc/ipc.gyp:ipc',
59 '../ui/aura/aura.gyp:aura',
60 '../ui/metro_viewer/metro_viewer.gyp:metro_viewer_messages',
61 ],
62 'sources': [
Ben Murdocheb525c52013-07-10 11:40:50 +010063 'viewer/metro_viewer_constants.cc',
64 'viewer/metro_viewer_constants.h',
Torne (Richard Coles)90dce4d2013-05-29 14:40:03 +010065 'viewer/metro_viewer_process_host.cc',
66 'viewer/metro_viewer_process_host.h',
67 ],
68 },
69 {
Torne (Richard Coles)2a99a7e2013-03-28 15:31:22 +000070 'target_name': 'test_support_win8',
71 'type': 'static_library',
72 'dependencies': [
73 '../base/base.gyp:base',
74 'test_registrar_constants',
75 ],
76 'sources': [
77 'test/metro_registration_helper.cc',
78 'test/metro_registration_helper.h',
79 'test/open_with_dialog_async.cc',
80 'test/open_with_dialog_async.h',
81 'test/open_with_dialog_controller.cc',
82 'test/open_with_dialog_controller.h',
83 'test/ui_automation_client.cc',
84 'test/ui_automation_client.h',
85 ],
86 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
87 'msvs_disabled_warnings': [ 4267, ],
88 },
89 {
90 'target_name': 'test_registrar_constants',
91 'type': 'static_library',
92 'include_dirs': [
93 '..',
94 ],
95 'sources': [
96 'test/test_registrar_constants.cc',
97 'test/test_registrar_constants.h',
Torne (Richard Coles)58218062012-11-14 11:43:16 +000098 ],
99 },
100 ],
101}