Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(32)

Side by Side Diff: chrome/common_constants.gyp

Issue 1418933002: Revert of Cleanup chrome/version.h handling (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « chrome/common/chrome_version.h.in ('k') | chrome/installer/setup/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 # Use of this source code is governed by a BSD-style license that can be
3 # found in the LICENSE file. 3 # found in the LICENSE file.
4 4
5 { 5 {
6 'variables': { 6 'variables': {
7 'chromium_code': 1, 7 'chromium_code': 1,
8 'common_constants_sources': [ 8 },
9
10 'includes': [
11 '../build/util/version.gypi',
12 ],
13
14 'target_defaults': {
15 'sources': [
9 'common/chrome_constants.cc', 16 'common/chrome_constants.cc',
10 'common/chrome_constants.h', 17 'common/chrome_constants.h',
11 'common/chrome_icon_resources_win.cc', 18 'common/chrome_icon_resources_win.cc',
12 'common/chrome_icon_resources_win.h', 19 'common/chrome_icon_resources_win.h',
13 'common/chrome_paths.cc', 20 'common/chrome_paths.cc',
14 'common/chrome_paths.h', 21 'common/chrome_paths.h',
15 'common/chrome_paths_android.cc', 22 'common/chrome_paths_android.cc',
16 'common/chrome_paths_internal.h', 23 'common/chrome_paths_internal.h',
17 'common/chrome_paths_linux.cc', 24 'common/chrome_paths_linux.cc',
18 'common/chrome_paths_mac.mm', 25 'common/chrome_paths_mac.mm',
19 'common/chrome_paths_win.cc', 26 'common/chrome_paths_win.cc',
20 'common/chrome_switches.cc', 27 'common/chrome_switches.cc',
21 'common/chrome_switches.h', 28 'common/chrome_switches.h',
22 'common/env_vars.cc', 29 'common/env_vars.cc',
23 'common/env_vars.h', 30 'common/env_vars.h',
24 'common/pref_font_script_names-inl.h', 31 'common/pref_font_script_names-inl.h',
25 'common/pref_font_webkit_names.h', 32 'common/pref_font_webkit_names.h',
26 'common/pref_names.cc', 33 'common/pref_names.cc',
27 'common/pref_names.h', 34 'common/pref_names.h',
28 ], 35 ],
36 'actions': [
37 {
38 'action_name': 'Make chrome_version.cc',
39 'variables': {
40 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
41 'template_input_path': 'common/chrome_version.cc.version',
42 },
43 'inputs': [
44 '<(version_py_path)',
45 '<(version_path)',
46 '<(lastchange_path)',
47 '<(template_input_path)',
48 ],
49 'outputs': [
50 '<(INTERMEDIATE_DIR)/chrome_version.cc',
51 ],
52 'action': [
53 'python',
54 '<(version_py_path)',
55 '-f', '<(version_path)',
56 '-f', '<(lastchange_path)',
57 '<(template_input_path)',
58 '<@(_outputs)',
59 ],
60 'process_outputs_as_sources': 1,
61 },
62 ],
29 }, 63 },
30
31 'includes': [
32 '../build/util/version.gypi',
33 ],
34
35 'targets': [ 64 'targets': [
36 { 65 {
37 # GN version: //chrome/common:version_header
38 'target_name': 'version_header',
39 'type': 'none',
40 'hard_dependency': 1,
41 'actions': [
42 {
43 'action_name': 'version_header',
44 'variables': {
45 'lastchange_path':
46 '<(DEPTH)/build/util/LASTCHANGE',
47 'branding_path': 'app/theme/<(branding_path_component)/BRANDING',
48 },
49 'inputs': [
50 '<(version_path)',
51 '<(branding_path)',
52 '<(lastchange_path)',
53 'common/chrome_version.h.in',
54 ],
55 'outputs': [
56 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version.h',
57 ],
58 'action': [
59 'python',
60 '<(version_py_path)',
61 '-f', '<(version_path)',
62 '-f', '<(branding_path)',
63 '-f', '<(lastchange_path)',
64 'common/chrome_version.h.in',
65 '<@(_outputs)',
66 ],
67 'message': 'Generating version header file: <@(_outputs)',
68 },
69 ],
70 },
71 {
72 # GN version: //chrome/common:constants 66 # GN version: //chrome/common:constants
73 'target_name': 'common_constants', 67 'target_name': 'common_constants',
74 'type': 'static_library', 68 'type': 'static_library',
75 'sources': [
76 '<@(common_constants_sources)'
77 ],
78 'include_dirs': [ 69 'include_dirs': [
79 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_paths.cc. 70 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_paths.cc.
80 ], 71 ],
81 'dependencies': [ 72 'dependencies': [
82 'version_header',
83 '../base/base.gyp:base', 73 '../base/base.gyp:base',
84 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations', 74 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dynamic _annotations',
85 '../components/components.gyp:bookmarks_common', 75 '../components/components.gyp:bookmarks_common',
86 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h', 76 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h',
87 ], 77 ],
88 'target_conditions': [ 78 'target_conditions': [
89 ['OS=="ios"', { 79 ['OS=="ios"', {
90 # iOS needs chrome_paths_mac, which is excluded by filename rules; 80 # iOS needs chrome_paths_mac, which is excluded by filename rules;
91 # re-add it in target_conditionals so it's after that exclusion. 81 # re-add it in target_conditionals so it's after that exclusion.
92 'sources/': [ 82 'sources/': [
93 ['include', '^common/chrome_paths_mac\\.mm$'], 83 ['include', '^common/chrome_paths_mac\\.mm$'],
94 ], 84 ],
95 }], 85 }],
96 ], 86 ],
97 'conditions': [ 87 'conditions': [
98 ['disable_nacl==0', { 88 ['disable_nacl==0', {
99 'dependencies': [ 89 'dependencies': [
100 '../components/nacl.gyp:nacl_switches', 90 '../components/nacl.gyp:nacl_switches',
101 ], 91 ],
102 }], 92 }],
103 ], 93 ],
104 }, 94 },
105 ], 95 ],
106 'conditions': [ 96 'conditions': [
107 ['OS=="win" and target_arch=="ia32"', { 97 ['OS=="win" and target_arch=="ia32"', {
108 'targets': [ 98 'targets': [
109 { 99 {
110 'target_name': 'common_constants_win64', 100 'target_name': 'common_constants_win64',
111 'type': 'static_library', 101 'type': 'static_library',
112 'sources': [
113 '<@(common_constants_sources)'
114 ],
115 'include_dirs': [ 102 'include_dirs': [
116 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_paths.cc. 103 '<(SHARED_INTERMEDIATE_DIR)', # Needed by chrome_paths.cc.
117 ], 104 ],
118 'dependencies': [ 105 'dependencies': [
119 'version_header',
120 '../base/base.gyp:base_win64', 106 '../base/base.gyp:base_win64',
121 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64', 107 '../base/third_party/dynamic_annotations/dynamic_annotations.gyp:dyn amic_annotations_win64',
122 '../components/nacl.gyp:nacl_switches_win64', 108 '../components/nacl.gyp:nacl_switches_win64',
123 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h ', 109 '../third_party/widevine/cdm/widevine_cdm.gyp:widevine_cdm_version_h ',
124 ], 110 ],
125 'defines': [ 111 'defines': [
126 '<@(nacl_win64_defines)', 112 '<@(nacl_win64_defines)',
127 'COMPILE_CONTENT_STATICALLY', 113 'COMPILE_CONTENT_STATICALLY',
128 ], 114 ],
129 'configurations': { 115 'configurations': {
130 'Common_Base': { 116 'Common_Base': {
131 'msvs_target_platform': 'x64', 117 'msvs_target_platform': 'x64',
132 }, 118 },
133 }, 119 },
134 }, 120 },
135 ], 121 ],
136 }], 122 }],
137 ], 123 ],
138 } 124 }
OLDNEW
« no previous file with comments | « chrome/common/chrome_version.h.in ('k') | chrome/installer/setup/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698