upgrade_test.gyp revision 5821806d5e7f356e8fa4b058a389a808ea183019
1# Copyright (c) 2011 The Chromium Authors. All rights reserved. 2# Use of this source code is governed by a BSD-style license that can be 3# found in the LICENSE file. 4 5{ 6 'variables': { 7 'version_py': '../../chrome/tools/build/version.py', 8 'version_path': '../../chrome/VERSION', 9 'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE', 10 # 'branding_dir' is set in the 'conditions' section at the bottom. 11 'msvs_use_common_release': 0, 12 'msvs_use_common_linker_extras': 0, 13 }, 14 'includes': [ 15 '../../build/win_precompile.gypi', 16 ], 17 'conditions': [ 18 ['OS=="win"', { 19 'targets': [ 20 { 21 'target_name': 'alternate_version_generator_lib', 22 'type': 'static_library', 23 'dependencies': [ 24 '../chrome.gyp:installer_util', 25 '../common_constants.gyp:common_constants', 26 '../../base/base.gyp:base', 27 ], 28 'include_dirs': [ 29 '../..', 30 ], 31 'sources': [ 32 'test/alternate_version_generator.cc', 33 'test/alternate_version_generator.h', 34 'test/pe_image_resources.cc', 35 'test/pe_image_resources.h', 36 'test/resource_loader.cc', 37 'test/resource_loader.h', 38 'test/resource_updater.cc', 39 'test/resource_updater.h', 40 ], 41 }, 42 { 43 'target_name': 'upgrade_test', 44 'type': 'executable', 45 'dependencies': [ 46 'alternate_version_generator_lib', 47 # This dependency, although correct, results in the mini installer 48 # being rebuilt every time upgrade_test is built. So disable it 49 # for now. 50 # TODO(grt): fix rules/targets/etc for 51 # mini_installer.gyp:mini_installer so that it does no work if 52 # nothing has changed, then un-comment this next line: 53 # 'mini_installer.gyp:mini_installer', 54 '../../base/base.gyp:test_support_base', 55 '../../testing/gtest.gyp:gtest', 56 '../chrome.gyp:installer_util', 57 '../common_constants.gyp:common_constants', 58 ], 59 'include_dirs': [ 60 '../..', 61 ], 62 'sources': [ 63 'test/run_all_tests.cc', 64 'test/upgrade_test.cc', 65 ], 66 }, 67 { 68 'target_name': 'alternate_version_generator', 69 'type': 'executable', 70 'dependencies': [ 71 'alternate_version_generator_lib', 72 '../../base/base.gyp:test_support_base', 73 '../../testing/gtest.gyp:gtest', 74 '../chrome.gyp:installer_util', 75 '../common_constants.gyp:common_constants', 76 ], 77 'include_dirs': [ 78 '../..', 79 ], 80 'sources': [ 81 'test/alternate_version_generator_main.cc', 82 ], 83 }, 84 ], 85 }], 86 [ 'branding == "Chrome"', { 87 'variables': { 88 'branding_dir': '../app/theme/google_chrome', 89 }, 90 }, { # else branding!="Chrome" 91 'variables': { 92 'branding_dir': '../app/theme/chromium', 93 }, 94 }], 95 ], 96} 97