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