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 # Define the common dependencies that contain all the actual | 8 # Define the common dependencies that contain all the actual |
9 # Chromium functionality. This list gets pulled in below by | 9 # Chromium functionality. This list gets pulled in below by |
10 # the link of the actual chrome (or chromium) executable on | 10 # the link of the actual chrome (or chromium) executable on |
(...skipping 3659 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3670 'include_dirs': [ | 3670 'include_dirs': [ |
3671 'third_party/wtl/include', | 3671 'third_party/wtl/include', |
3672 ], | 3672 ], |
3673 'dependencies': [ | 3673 'dependencies': [ |
3674 # On Windows, link the dependencies (libraries) that make | 3674 # On Windows, link the dependencies (libraries) that make |
3675 # up actual Chromium functionality into this .dll. | 3675 # up actual Chromium functionality into this .dll. |
3676 '<@(chromium_dependencies)', | 3676 '<@(chromium_dependencies)', |
3677 'chrome_resources', | 3677 'chrome_resources', |
3678 'installer/installer.gyp:installer_util_strings', | 3678 'installer/installer.gyp:installer_util_strings', |
3679 'worker', | 3679 'worker', |
| 3680 '../build/util/build_util.gyp:lastchange', |
3680 '../net/net.gyp:net_resources', | 3681 '../net/net.gyp:net_resources', |
3681 '../views/views.gyp:views', | 3682 '../views/views.gyp:views', |
3682 '../webkit/webkit.gyp:webkit_resources', | 3683 '../webkit/webkit.gyp:webkit_resources', |
3683 '../gears/gears.gyp:gears', | 3684 '../gears/gears.gyp:gears', |
3684 'tcmalloc', | 3685 'tcmalloc', |
3685 ], | 3686 ], |
3686 'rules': [ | 3687 'rules': [ |
3687 { | 3688 { |
3688 'rule_name': 'win_version', | 3689 'rule_name': 'win_version', |
3689 'extension': 'version', | 3690 'extension': 'version', |
3690 'variables': { | 3691 'variables': { |
3691 'version_py': '../chrome/tools/build/version.py', | 3692 'lastchange_path': |
3692 'VERSION': '../chrome/VERSION', | 3693 '<(SHARED_INTERMEDIATE_DIR)/build/LASTCHANGE', |
| 3694 'version_py': 'tools/build/version.py', |
| 3695 'version_path': 'VERSION', |
3693 'template_input_path': 'app/chrome_dll_version.rc.version', | 3696 'template_input_path': 'app/chrome_dll_version.rc.version', |
3694 'template_output_path': | 3697 'template_output_path': '<(grit_out_dir)/chrome_dll_version.rc', |
3695 '<(grit_out_dir)/chrome_dll_version.rc', | |
3696 }, | 3698 }, |
3697 'conditions': [ | 3699 'conditions': [ |
3698 [ 'branding == "Chrome"', { | 3700 [ 'branding == "Chrome"', { |
3699 'variables': { | 3701 'variables': { |
3700 'BRANDING': | 3702 'branding_path': 'app/theme/google_chrome/BRANDING', |
3701 '../chrome/app/theme/google_chrome/BRANDING', | |
3702 }, | 3703 }, |
3703 }, { # else branding!="Chrome" | 3704 }, { # else branding!="Chrome" |
3704 'variables': { | 3705 'variables': { |
3705 'BRANDING': | 3706 'branding_path': 'app/theme/chromium/BRANDING', |
3706 '../chrome/app/theme/chromium/BRANDING', | |
3707 }, | 3707 }, |
3708 }], | 3708 }], |
3709 ], | 3709 ], |
3710 'inputs': [ | 3710 'inputs': [ |
3711 '<(template_input_path)', | 3711 '<(template_input_path)', |
3712 '<(VERSION)', | 3712 '<(version_path)', |
3713 '<(BRANDING)', | 3713 '<(branding_path)', |
| 3714 '<(lastchange_path)', |
3714 ], | 3715 ], |
3715 'outputs': [ | 3716 'outputs': [ |
3716 # Use a non-existant output so this action always runs and | 3717 # Use a non-existant output so this action always runs and |
3717 # generates version information, e.g. to capture revision | 3718 # generates version information, e.g. to capture revision |
3718 # changes, which aren't captured by file dependencies. | 3719 # changes, which aren't captured by file dependencies. |
3719 '<(grit_out_dir)/chrome_dll_version.bogus', | 3720 '<(grit_out_dir)/chrome_dll_version.always', |
3720 | 3721 |
3721 # And this is the real output, so that the build system knows | 3722 # And this is the real output, so that the build system knows |
3722 # what action generates it. | 3723 # what action generates it. |
3723 '<(template_output_path)', | 3724 '<(template_output_path)', |
3724 ], | 3725 ], |
3725 'action': [ | 3726 'action': [ |
3726 'python', | 3727 'python', |
3727 '<(version_py)', | 3728 '<(version_py)', |
3728 '-f', '<(VERSION)', | 3729 '-f', '<(version_path)', |
3729 '-f', '<(BRANDING)', | 3730 '-f', '<(branding_path)', |
| 3731 '-f', '<(lastchange_path)', |
3730 '<(template_input_path)', | 3732 '<(template_input_path)', |
3731 '<(template_output_path)', | 3733 '<(template_output_path)', |
3732 ], | 3734 ], |
3733 'process_outputs_as_sources': 1, | 3735 'process_outputs_as_sources': 1, |
3734 'message': 'Generating version information' | 3736 'message': 'Generating version information in <(template_output_pa
th)' |
3735 }, | 3737 }, |
3736 ], | 3738 ], |
3737 'sources': [ | 3739 'sources': [ |
3738 'app/chrome_dll.rc', | 3740 'app/chrome_dll.rc', |
3739 'app/chrome_dll_main.cc', | 3741 'app/chrome_dll_main.cc', |
3740 'app/chrome_dll_resource.h', | 3742 'app/chrome_dll_resource.h', |
3741 'app/chrome_dll_version.rc.version', | 3743 'app/chrome_dll_version.rc.version', |
3742 | 3744 |
3743 '../webkit/glue/resources/aliasb.cur', | 3745 '../webkit/glue/resources/aliasb.cur', |
3744 '../webkit/glue/resources/cell.cur', | 3746 '../webkit/glue/resources/cell.cur', |
(...skipping 570 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4315 # Use outputs of this action as inputs for the main target build. | 4317 # Use outputs of this action as inputs for the main target build. |
4316 # Seems as a misnomer but makes this happy on Linux (scons). | 4318 # Seems as a misnomer but makes this happy on Linux (scons). |
4317 'process_outputs_as_sources': 1, | 4319 'process_outputs_as_sources': 1, |
4318 }, | 4320 }, |
4319 ], # 'actions' | 4321 ], # 'actions' |
4320 }, | 4322 }, |
4321 ] | 4323 ] |
4322 }], | 4324 }], |
4323 ], # 'conditions' | 4325 ], # 'conditions' |
4324 } | 4326 } |
OLD | NEW |