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