Do not consume keys for DISABLE_CAPS_LOCK when caps lock is off.
[chromium-blink-merge.git] / chrome / common_constants.gyp
blobe5f6d619a413615f1f1e73636568a7781e4a9452
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.
6   'variables': {
7     'chromium_code': 1,
8   },
10   'includes': [
11     'version.gypi',
12   ],
14   'target_defaults': {
15     'sources': [
16       'common/chrome_constants.cc',
17       'common/chrome_constants.h',
18       'common/chrome_paths.cc',
19       'common/chrome_paths.h',
20       'common/chrome_paths_android.cc',
21       'common/chrome_paths_internal.h',
22       'common/chrome_paths_linux.cc',
23       'common/chrome_paths_mac.mm',
24       'common/chrome_paths_win.cc',
25       'common/chrome_switches.cc',
26       'common/chrome_switches.h',
27       'common/env_vars.cc',
28       'common/env_vars.h',
29       'common/net/test_server_locations.cc',
30       'common/net/test_server_locations.h',
31       'common/pref_names.cc',
32       'common/pref_names.h',
33     ],
34     'actions': [
35       {
36         'action_name': 'Make chrome_version.cc',
37         'variables': {
38           'make_version_cc_path': 'tools/build/make_version_cc.py',
39         },
40         'inputs': [
41           '<(make_version_cc_path)',
42           'VERSION',
43         ],
44         'outputs': [
45           '<(INTERMEDIATE_DIR)/chrome_version.cc',
46         ],
47         'action': [
48           'python',
49           '<(make_version_cc_path)',
50           '<@(_outputs)',
51           '<(version_full)',
52         ],
53         'process_outputs_as_sources': 1,
54       },
55     ],
56   },
57   'targets': [
58     {
59       'target_name': 'common_constants',
60       'type': 'static_library',
61       'include_dirs': [
62         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_paths.cc.
63       ],
64       'dependencies': [
65         '../base/base.gyp:base',
66         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
67       ],
68       'conditions': [
69         ['toolkit_uses_gtk == 1', {
70           'dependencies': ['../build/linux/system.gyp:gtk'],
71         }],
72       ],
73     },
74   ],
75   'conditions': [
76     ['OS=="win"', {
77       'targets': [
78         {
79           'target_name': 'common_constants_win64',
80           'type': 'static_library',
81           'include_dirs': [
82             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_paths.cc.
83           ],
84           'dependencies': [
85             '../base/base.gyp:base_nacl_win64',
86             '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
87           ],
88           'defines': [
89             '<@(nacl_win64_defines)',
90             'COMPILE_CONTENT_STATICALLY',
91           ],
92           'configurations': {
93             'Common_Base': {
94               'msvs_target_platform': 'x64',
95             },
96           },
97         },
98       ],
99     }],
100   ],