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