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

Side by Side Diff: chrome/chrome_common.gypi

Issue 3113026: Move chrome_version_info target into chrome_common. (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Created 10 years, 4 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
OLDNEW
1 # Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2010 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 'target_defaults': { 6 'target_defaults': {
7 'variables': { 7 'variables': {
8 'chrome_common_target': 0, 8 'chrome_common_target': 0,
9 }, 9 },
10 'target_conditions': [ 10 'target_conditions': [
(...skipping 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 'common/time_format.cc', 115 'common/time_format.cc',
116 'common/time_format.h', 116 'common/time_format.h',
117 'common/win_safe_util.cc', 117 'common/win_safe_util.cc',
118 'common/win_safe_util.h', 118 'common/win_safe_util.h',
119 ], 119 ],
120 }], 120 }],
121 ], 121 ],
122 }, 122 },
123 'targets': [ 123 'targets': [
124 { 124 {
125 'target_name': 'chrome_version_info',
126 'type': '<(library)',
127 'sources': [
128 'common/chrome_version_info.cc',
129 'common/chrome_version_info.h',
130 ],
131 'include_dirs': [
132 '<(DEPTH)',
133 ],
134 'conditions': [
135 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris "', {
136 'include_dirs': [
137 '<(SHARED_INTERMEDIATE_DIR)',
138 ],
139 'actions': [
140 {
141 'action_name': 'posix_version',
142 'variables': {
143 'lastchange_path':
144 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
145 'version_py_path': 'tools/build/version.py',
146 'version_path': 'VERSION',
147 'template_input_path': 'common/chrome_version_info_posix.h.versi on',
148 },
149 'conditions': [
150 [ 'branding == "Chrome"', {
151 'variables': {
152 'branding_path':
153 'app/theme/google_chrome/BRANDING',
154 },
155 }, { # else branding!="Chrome"
156 'variables': {
157 'branding_path':
158 'app/theme/chromium/BRANDING',
159 },
160 }],
161 ],
162 'inputs': [
163 '<(template_input_path)',
164 '<(version_path)',
165 '<(branding_path)',
166 '<(lastchange_path)',
167 ],
168 'outputs': [
169 '<(SHARED_INTERMEDIATE_DIR)/chrome/common/chrome_version_info_po six.h',
170 ],
171 'action': [
172 'python',
173 '<(version_py_path)',
174 '-f', '<(version_path)',
175 '-f', '<(branding_path)',
176 '-f', '<(lastchange_path)',
177 '<(template_input_path)',
178 '<@(_outputs)',
179 ],
180 'message': 'Generating version information',
181 },
182 ],
183 }],
184 ]
185 },
186 {
125 'target_name': 'common', 187 'target_name': 'common',
126 'type': '<(library)', 188 'type': '<(library)',
127 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146', 189 'msvs_guid': '899F1280-3441-4D1F-BA04-CCD6208D9146',
128 'variables': { 190 'variables': {
129 'chrome_common_target': 1, 191 'chrome_common_target': 1,
130 }, 192 },
131 # TODO(gregoryd): This could be shared with the 64-bit target, but 193 # TODO(gregoryd): This could be shared with the 64-bit target, but
132 # it does not work due to a gyp issue. 194 # it does not work due to a gyp issue.
133 'direct_dependent_settings': { 195 'direct_dependent_settings': {
134 'include_dirs': [ 196 'include_dirs': [
135 '..', 197 '..',
136 ], 198 ],
137 }, 199 },
138 'dependencies': [ 200 'dependencies': [
139 # TODO(gregoryd): chrome_resources and chrome_strings could be 201 # TODO(gregoryd): chrome_resources and chrome_strings could be
140 # shared with the 64-bit target, but it does not work due to a gyp 202 # shared with the 64-bit target, but it does not work due to a gyp
141 # issue. 203 # issue.
142 'chrome_resources', 204 'chrome_resources',
143 'chrome_strings', 205 'chrome_strings',
144 'common_constants', 206 'common_constants',
145 'common_net', 207 'common_net',
208 'chrome_version_info',
146 'default_plugin/default_plugin.gyp:default_plugin', 209 'default_plugin/default_plugin.gyp:default_plugin',
147 'theme_resources', 210 'theme_resources',
148 '../app/app.gyp:app_base', 211 '../app/app.gyp:app_base',
149 '../app/app.gyp:app_resources', 212 '../app/app.gyp:app_resources',
150 '../base/base.gyp:base', 213 '../base/base.gyp:base',
151 '../base/base.gyp:base_i18n', 214 '../base/base.gyp:base_i18n',
152 '../build/temp_gyp/googleurl.gyp:googleurl', 215 '../build/temp_gyp/googleurl.gyp:googleurl',
153 '../ipc/ipc.gyp:ipc', 216 '../ipc/ipc.gyp:ipc',
154 '../net/net.gyp:net', 217 '../net/net.gyp:net',
155 '../printing/printing.gyp:printing', 218 '../printing/printing.gyp:printing',
(...skipping 239 matching lines...) Expand 10 before | Expand all | Expand 10 after
395 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA', 458 'msvs_guid': '3AB5C5E9-470C-419B-A0AE-C7381FB632FA',
396 'variables': { 459 'variables': {
397 'chrome_common_target': 1, 460 'chrome_common_target': 1,
398 }, 461 },
399 'dependencies': [ 462 'dependencies': [
400 # TODO(gregoryd): chrome_resources and chrome_strings could be 463 # TODO(gregoryd): chrome_resources and chrome_strings could be
401 # shared with the 32-bit target, but it does not work due to a gyp 464 # shared with the 32-bit target, but it does not work due to a gyp
402 # issue. 465 # issue.
403 'chrome_resources', 466 'chrome_resources',
404 'chrome_strings', 467 'chrome_strings',
468 'chrome_version_info',
gregoryd 2010/08/20 22:03:28 Since chrome_version_info generates a library from
gregoryd 2010/08/20 23:20:04 I think the explanation is that it links fine also
405 'common_constants_win64', 469 'common_constants_win64',
406 '../app/app.gyp:app_base_nacl_win64', 470 '../app/app.gyp:app_base_nacl_win64',
407 '../app/app.gyp:app_resources', 471 '../app/app.gyp:app_resources',
408 '../base/base.gyp:base_nacl_win64', 472 '../base/base.gyp:base_nacl_win64',
409 '../ipc/ipc.gyp:ipc_win64', 473 '../ipc/ipc.gyp:ipc_win64',
410 '../third_party/libxml/libxml.gyp:libxml', 474 '../third_party/libxml/libxml.gyp:libxml',
411 ], 475 ],
412 'include_dirs': [ 476 'include_dirs': [
413 '../third_party/npapi', 477 '../third_party/npapi',
414 '../third_party/icu/public/i18n', 478 '../third_party/icu/public/i18n',
(...skipping 27 matching lines...) Expand all
442 'configurations': { 506 'configurations': {
443 'Common_Base': { 507 'Common_Base': {
444 'msvs_target_platform': 'x64', 508 'msvs_target_platform': 'x64',
445 }, 509 },
446 }, 510 },
447 }, 511 },
448 ], 512 ],
449 }], 513 }],
450 ], 514 ],
451 } 515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698