OLD | NEW |
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 '../build/common.gypi', | 10 '../build/common.gypi', |
(...skipping 344 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
355 # These warnings are needed for the files in third_party\dmg_fp. | 355 # These warnings are needed for the files in third_party\dmg_fp. |
356 'msvs_disabled_warnings': [ | 356 'msvs_disabled_warnings': [ |
357 4244, 4554, 4018, 4102, | 357 4244, 4554, 4018, 4102, |
358 ], | 358 ], |
359 'conditions': [ | 359 'conditions': [ |
360 [ 'OS == "linux"', { | 360 [ 'OS == "linux"', { |
361 'actions': [ | 361 'actions': [ |
362 { | 362 { |
363 'action_name': 'linux_version', | 363 'action_name': 'linux_version', |
364 'variables': { | 364 'variables': { |
| 365 'lastchange_path': |
| 366 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
365 'version_py_path': '../chrome/tools/build/version.py', | 367 'version_py_path': '../chrome/tools/build/version.py', |
366 'version_path': '../chrome/VERSION', | 368 'version_path': '../chrome/VERSION', |
367 'template_input_path': 'file_version_info_linux.h.version', | 369 'template_input_path': 'file_version_info_linux.h.version', |
368 'template_output_path': | 370 'template_output_path': |
369 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h', | 371 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h', |
370 }, | 372 }, |
371 'conditions': [ | 373 'conditions': [ |
372 [ 'branding == "Chrome"', { | 374 [ 'branding == "Chrome"', { |
373 'variables': { | 375 'variables': { |
374 'branding_path': | 376 'branding_path': |
375 '../chrome/app/theme/google_chrome/BRANDING', | 377 '../chrome/app/theme/google_chrome/BRANDING', |
376 }, | 378 }, |
377 }, { # else branding!="Chrome" | 379 }, { # else branding!="Chrome" |
378 'variables': { | 380 'variables': { |
379 'branding_path': | 381 'branding_path': |
380 '../chrome/app/theme/chromium/BRANDING', | 382 '../chrome/app/theme/chromium/BRANDING', |
381 }, | 383 }, |
382 }], | 384 }], |
383 ], | 385 ], |
384 'inputs': [ | 386 'inputs': [ |
385 '<(template_input_path)', | 387 '<(template_input_path)', |
386 '<(version_path)', | 388 '<(version_path)', |
387 '<(branding_path)', | 389 '<(branding_path)', |
| 390 '<(lastchange_path)', |
388 ], | 391 ], |
389 'outputs': [ | 392 'outputs': [ |
390 # Use a non-existant output so this action always runs and | 393 # Use a non-existant output so this action always runs and |
391 # generates version information, e.g. to capture revision | 394 # generates version information, e.g. to capture revision |
392 # changes, which aren't captured by file dependencies. | 395 # changes, which aren't captured by file dependencies. |
393 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.bogus
', | 396 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.alway
s', |
394 | 397 |
395 # And this is the real output, so that the build system knows | 398 # And this is the real output, so that the build system knows |
396 # what action generates it. | 399 # what action generates it. |
397 '<(SHARED_INTERMEDIATE_DIR)/base/file_version_info_linux.h', | 400 '<(template_output_path)', |
398 ], | 401 ], |
399 'action': [ | 402 'action': [ |
400 'python', | 403 'python', |
401 '<(version_py_path)', | 404 '<(version_py_path)', |
402 '-f', '<(version_path)', | 405 '-f', '<(version_path)', |
403 '-f', '<(branding_path)', | 406 '-f', '<(branding_path)', |
| 407 '-f', '<(lastchange_path)', |
404 '<(template_input_path)', | 408 '<(template_input_path)', |
405 '<(template_output_path)', | 409 '<(template_output_path)', |
406 ], | 410 ], |
407 'message': 'Generating version information', | 411 'message': 'Generating version information', |
408 }, | 412 }, |
409 ], | 413 ], |
410 'include_dirs': [ | 414 'include_dirs': [ |
411 '<(SHARED_INTERMEDIATE_DIR)', | 415 '<(SHARED_INTERMEDIATE_DIR)', |
412 ], | 416 ], |
413 'sources/': [ ['exclude', '_(mac|win)\\.cc$'], | 417 'sources/': [ ['exclude', '_(mac|win)\\.cc$'], |
414 ['exclude', '\\.mm?$' ] ], | 418 ['exclude', '\\.mm?$' ] ], |
415 'sources!': [ | 419 'sources!': [ |
416 # Linux has an implementation of idle_timer that depends | 420 # Linux has an implementation of idle_timer that depends |
417 # on XScreenSaver, but it's unclear if we want it yet, | 421 # on XScreenSaver, but it's unclear if we want it yet, |
418 # so use idle_timer_none.cc instead. | 422 # so use idle_timer_none.cc instead. |
419 'idle_timer.cc', | 423 'idle_timer.cc', |
420 ], | 424 ], |
421 'dependencies': [ | 425 'dependencies': [ |
| 426 '../build/util/build_util.gyp:lastchange', |
422 '../build/linux/system.gyp:gtk', | 427 '../build/linux/system.gyp:gtk', |
423 '../build/linux/system.gyp:nss', | 428 '../build/linux/system.gyp:nss', |
424 ], | 429 ], |
425 'cflags': [ | 430 'cflags': [ |
426 '-Wno-write-strings', | 431 '-Wno-write-strings', |
427 ], | 432 ], |
428 'link_settings': { | 433 'link_settings': { |
429 'libraries': [ | 434 'libraries': [ |
430 # We need rt for clock_gettime(). | 435 # We need rt for clock_gettime(). |
431 '-lrt', | 436 '-lrt', |
(...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
763 'msvs_settings': { | 768 'msvs_settings': { |
764 'VCLinkerTool': { | 769 'VCLinkerTool': { |
765 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS | 770 'SubSystem': '2', # Set /SUBSYSTEM:WINDOWS |
766 }, | 771 }, |
767 }, | 772 }, |
768 }, | 773 }, |
769 ], | 774 ], |
770 }], | 775 }], |
771 ], | 776 ], |
772 } | 777 } |
OLD | NEW |