Don't crash when SimpleCache index is corrupt.
[chromium-blink-merge.git] / win8 / win8.gyp
blob6e3d5a8f7647df812ff7864d79e976e4877d01bf
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.
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',
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': [
63         'viewer/metro_viewer_process_host.cc',
64         'viewer/metro_viewer_process_host.h',
65       ],
66     },
67     {
68       'target_name': 'test_support_win8',
69       'type': 'static_library',
70       'dependencies': [
71         '../base/base.gyp:base',
72         'test_registrar_constants',
73       ],
74       'sources': [
75         'test/metro_registration_helper.cc',
76         'test/metro_registration_helper.h',
77         'test/open_with_dialog_async.cc',
78         'test/open_with_dialog_async.h',
79         'test/open_with_dialog_controller.cc',
80         'test/open_with_dialog_controller.h',
81         'test/ui_automation_client.cc',
82         'test/ui_automation_client.h',
83       ],
84       # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
85       'msvs_disabled_warnings': [ 4267, ],
86     },
87     {
88       'target_name': 'test_registrar_constants',
89       'type': 'static_library',
90       'include_dirs': [
91         '..',
92       ],
93       'sources': [
94         'test/test_registrar_constants.cc',
95         'test/test_registrar_constants.h',
96       ],
97     },
98   ],