Disable TouchActionBrowserTest.DefaultAuto under ThreadSanitizer
[chromium-blink-merge.git] / chrome / common_constants.gyp
blob564d35d6d0e074a58814988d49a3976e27fe802a
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     '../build/util/version.gypi',
12   ],
14   'target_defaults': {
15     'sources': [
16       # TODO(yoz): Create an extension_constants target for these.
17       '../extensions/common/constants.cc',
18       '../extensions/common/constants.h',
19       'common/chrome_constants.cc',
20       'common/chrome_constants.h',
21       'common/chrome_icon_resources_win.cc',
22       'common/chrome_icon_resources_win.h',
23       'common/chrome_paths.cc',
24       'common/chrome_paths.h',
25       'common/chrome_paths_android.cc',
26       'common/chrome_paths_internal.h',
27       'common/chrome_paths_linux.cc',
28       'common/chrome_paths_mac.mm',
29       'common/chrome_paths_win.cc',
30       'common/chrome_switches.cc',
31       'common/chrome_switches.h',
32       'common/env_vars.cc',
33       'common/env_vars.h',
34       'common/net/test_server_locations.cc',
35       'common/net/test_server_locations.h',
36       'common/pref_font_script_names-inl.h',
37       'common/pref_font_webkit_names.h',
38       'common/pref_names.cc',
39       'common/pref_names.h',
40       'common/widevine_cdm_constants.cc',
41       'common/widevine_cdm_constants.h',
42     ],
43     'actions': [
44       {
45         'action_name': 'Make chrome_version.cc',
46         'variables': {
47           'make_version_cc_path': 'tools/build/make_version_cc.py',
48         },
49         'inputs': [
50           '<(make_version_cc_path)',
51           'VERSION',
52         ],
53         'outputs': [
54           '<(INTERMEDIATE_DIR)/chrome_version.cc',
55         ],
56         'action': [
57           'python',
58           '<(make_version_cc_path)',
59           '<@(_outputs)',
60           '<(version_full)',
61         ],
62         'process_outputs_as_sources': 1,
63       },
64     ],
65   },
66   'targets': [
67     {
68       'target_name': 'common_constants',
69       'type': 'static_library',
70       'include_dirs': [
71         '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_paths.cc.
72       ],
73       'dependencies': [
74         '../base/base.gyp:base',
75         '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations',
76         '../components/nacl.gyp:nacl_switches',
77         '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
78       ],
79       'target_conditions': [
80         ['OS=="ios"', {
81           # iOS needs chrome_paths_mac, which is excluded by filename rules;
82           # re-add it in target_conditionals so it's after that exclusion.
83           'sources/': [
84             ['include', '^common/chrome_paths_mac\\.mm$'],
85           ],
86         }],
87       ],
88       'conditions': [
89         ['toolkit_uses_gtk == 1', {
90           'dependencies': ['../build/linux/system.gyp:gtk'],
91         }],
92       ],
93     },
94   ],
95   'conditions': [
96     ['OS=="win" and target_arch=="ia32"', {
97       'targets': [
98         {
99           'target_name': 'common_constants_win64',
100           'type': 'static_library',
101           'include_dirs': [
102             '<(SHARED_INTERMEDIATE_DIR)',  # Needed by chrome_paths.cc.
103           ],
104           'dependencies': [
105             '../base/base.gyp:base_win64',
106             '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic_annotations_win64',
107             '../components/nacl.gyp:nacl_switches_win64',
108             '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
109           ],
110           'defines': [
111             '<@(nacl_win64_defines)',
112             'COMPILE_CONTENT_STATICALLY',
113           ],
114           'configurations': {
115             'Common_Base': {
116               'msvs_target_platform': 'x64',
117             },
118           },
119         },
120       ],
121     }],
122   ],