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

Side by Side Diff: base/base.gyp

Issue 1560027: Refactor FileVersionInfo into an interface with platform implementations. (Closed)
Patch Set: comments Created 10 years, 8 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 | « no previous file | base/base.gypi » ('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) 2009 The Chromium Authors. All rights reserved. 1 # Copyright (c) 2009 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 }, 8 },
9 'includes': [ 9 'includes': [
10 'base.gypi', 10 'base.gypi',
(...skipping 250 matching lines...) Expand 10 before | Expand all | Expand 10 after
261 'debug_message.cc', 261 'debug_message.cc',
262 ], 262 ],
263 'msvs_settings': { 263 'msvs_settings': {
264 'VCLinkerTool': { 264 'VCLinkerTool': {
265 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS 265 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS
266 }, 266 },
267 }, 267 },
268 }, 268 },
269 ], 269 ],
270 }], 270 }],
271 [ 'OS == "linux" or OS == "freebsd" or OS == "openbsd" or OS == "solaris"', {
272 'targets': [
273 {
274 'target_name': 'linux_versioninfo',
275 'type': '<(library)',
276 'sources': [
277 'file_version_info_linux.cc',
278 ],
279 'include_dirs': [
280 '..',
281 '<(SHARED_INTERMEDIATE_DIR)',
282 ],
283 'actions': [
284 {
285 'action_name': 'linux_version',
286 'variables': {
287 'lastchange_path':
288 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE',
289 'version_py_path': '../chrome/tools/build/version.py',
290 'version_path': '../chrome/VERSION',
291 'template_input_path': 'file_version_info_linux.h.version',
292 },
293 'conditions': [
294 [ 'branding == "Chrome"', {
295 'variables': {
296 'branding_path':
297 '../chrome/app/theme/google_chrome/BRANDING',
298 },
299 }, { # else branding!="Chrome"
300 'variables': {
301 'branding_path':
302 '../chrome/app/theme/chromium/BRANDING',
303 },
304 }],
305 ],
306 'inputs': [
307 '<(template_input_path)',
308 '<(version_path)',
309 '<(branding_path)',
310 '<(lastchange_path)',
311 ],
312 'outputs': [
313 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h',
314 ],
315 'action': [
316 'python',
317 '<(version_py_path)',
318 '-f', '<(version_path)',
319 '-f', '<(branding_path)',
320 '-f', '<(lastchange_path)',
321 '<(template_input_path)',
322 '<@(_outputs)',
323 ],
324 'message': 'Generating version information',
325 },
326 ],
327 },
328 ],
329 }],
330 ], 271 ],
331 } 272 }
332 273
333 # Local Variables: 274 # Local Variables:
334 # tab-width:2 275 # tab-width:2
335 # indent-tabs-mode:nil 276 # indent-tabs-mode:nil
336 # End: 277 # End:
337 # vim: set expandtab tabstop=2 shiftwidth=2: 278 # vim: set expandtab tabstop=2 shiftwidth=2:
OLDNEW
« no previous file with comments | « no previous file | base/base.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698