diff options
author | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-28 19:31:55 +0000 |
---|---|---|
committer | grt@chromium.org <grt@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-28 19:31:55 +0000 |
commit | 6188a8fe1fb91bd4f77a566591a775e4b353ef24 (patch) | |
tree | ba9a5395652f55a1ddfa3ab6c5ea2fba0844dd81 /chrome/installer/upgrade_test.gyp | |
parent | 5124ee8955636f089d605ec061aed3c31200d963 (diff) | |
download | chromium_src-6188a8fe1fb91bd4f77a566591a775e4b353ef24.zip chromium_src-6188a8fe1fb91bd4f77a566591a775e4b353ef24.tar.gz chromium_src-6188a8fe1fb91bd4f77a566591a775e4b353ef24.tar.bz2 |
- upgrade_test::GenerateNextVersion is now GenerateAlternateVersion and can bump up or down
- upgrade_test::GenerateAlternateVersion returns the old and new versions
- added alternate_version_generator.exe command-line tool.
BUG=none
TEST=run alternate_version_generator.exe --help and explore it
Review URL: http://codereview.chromium.org/6338020
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@72993 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/installer/upgrade_test.gyp')
-rw-r--r-- | chrome/installer/upgrade_test.gyp | 49 |
1 files changed, 41 insertions, 8 deletions
diff --git a/chrome/installer/upgrade_test.gyp b/chrome/installer/upgrade_test.gyp index b537c39..52b69ea 100644 --- a/chrome/installer/upgrade_test.gyp +++ b/chrome/installer/upgrade_test.gyp @@ -10,12 +10,33 @@ 'conditions': [ ['OS=="win"', { 'target_defaults': { + 'variables': { + 'alternate_version_generator_target': 0, + }, + 'target_conditions': [ + # This part is shared between the two targets. + ['alternate_version_generator_target==1', { + 'sources': [ + 'test/alternate_version_generator.cc', + 'test/alternate_version_generator.h', + 'test/pe_image_resources.cc', + 'test/pe_image_resources.h', + 'test/resource_loader.cc', + 'test/resource_loader.h', + 'test/resource_updater.cc', + 'test/resource_updater.h', + ], + }], + ], }, 'targets': [ { 'target_name': 'upgrade_test', 'msvs_guid': 'BC4D6130-FDAD-47FB-B4FD-FCAF78DCBC3C', 'type': 'executable', + 'variables': { + 'alternate_version_generator_target': 1, + }, 'dependencies': [ # This dependency, although correct, results in the mini installer # being rebuilt every time upgrade_test is built. So disable it @@ -33,18 +54,30 @@ '../..', ], 'sources': [ - 'test/alternate_version_generator.cc', - 'test/alternate_version_generator.h', - 'test/pe_image_resources.cc', - 'test/pe_image_resources.h', - 'test/resource_loader.cc', - 'test/resource_loader.h', - 'test/resource_updater.cc', - 'test/resource_updater.h', 'test/run_all_tests.cc', 'test/upgrade_test.cc', ], }, + { + 'target_name': 'alternate_version_generator', + 'msvs_guid': 'E6E6B339-AEC0-44C9-B9D0-E30138108379', + 'type': 'executable', + 'variables': { + 'alternate_version_generator_target': 1, + }, + 'dependencies': [ + '../../base/base.gyp:test_support_base', + '../../testing/gtest.gyp:gtest', + '../chrome.gyp:common_constants', + '../chrome.gyp:installer_util', + ], + 'include_dirs': [ + '../..', + ], + 'sources': [ + 'test/alternate_version_generator_main.cc', + ], + }, ], }], [ 'branding == "Chrome"', { |