summaryrefslogtreecommitdiffstats
path: root/win8/win8.gyp
blob: a1595882b5dd594749ba324f46319bd063d4ac43 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
# Copyright (c) 2012 The Chromium Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.
{
  'variables': {
    'chromium_code': 1,
  },
  'includes': [
    '../build/win_precompile.gypi',
  ],
  'targets': [
    {
      'target_name': 'check_sdk_patch',
      'type': 'none',
      'variables': {
        'check_sdk_script': '<(DEPTH)/chrome/tools/build/win/check_sdk_patch.py',
        'output_path': '<(INTERMEDIATE_DIR)/check_sdk_patch',
      },
      'actions': [
        {
          'action_name': 'check_sdk_patch_action',
          'inputs': [
            '<(check_sdk_script)',
          ],
          'outputs': [
            # This keeps the ninja build happy and provides a slightly helpful
            # error messge if the sdk is missing.
            '<(output_path)'
          ],
          'action': ['python',
                     '<(check_sdk_script)',
                     '<(windows_sdk_path)',
                     '<(output_path)',
                     ],
        },
      ],
    },
    {
      'target_name': 'win8_util',
      'type': 'static_library',
      'dependencies': [
        '../base/base.gyp:base',
      ],
      'sources': [
        'util/win8_util.cc',
        'util/win8_util.h',
      ],
    },
  ],
}