Home | History | Annotate | Download | only in installer
      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': '<(DEPTH)/build/util/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           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     42           'msvs_disabled_warnings': [4267, ],
     43         },
     44         {
     45           'target_name': 'upgrade_test',
     46           'type': 'executable',
     47           'dependencies': [
     48             'alternate_version_generator_lib',
     49             # This dependency, although correct, results in the mini installer
     50             # being rebuilt every time upgrade_test is built.  So disable it
     51             # for now.
     52             # TODO(grt): fix rules/targets/etc for
     53             # mini_installer.gyp:mini_installer so that it does no work if
     54             # nothing has changed, then un-comment this next line:
     55             # 'mini_installer.gyp:mini_installer',
     56             '../../base/base.gyp:test_support_base',
     57             '../../testing/gtest.gyp:gtest',
     58             '../chrome.gyp:installer_util',
     59             '../common_constants.gyp:common_constants',
     60           ],
     61           'include_dirs': [
     62             '../..',
     63           ],
     64           'sources': [
     65             'test/run_all_tests.cc',
     66             'test/upgrade_test.cc',
     67           ],
     68         },
     69         {
     70           'target_name': 'alternate_version_generator',
     71           'type': 'executable',
     72           'dependencies': [
     73             'alternate_version_generator_lib',
     74             '../../base/base.gyp:test_support_base',
     75             '../../testing/gtest.gyp:gtest',
     76             '../chrome.gyp:installer_util',
     77             '../common_constants.gyp:common_constants',
     78           ],
     79           'include_dirs': [
     80             '../..',
     81           ],
     82           'sources': [
     83             'test/alternate_version_generator_main.cc',
     84           ],
     85           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
     86           'msvs_disabled_warnings': [ 4267, ],
     87         },
     88       ],
     89     }],
     90     [ 'branding == "Chrome"', {
     91       'variables': {
     92          'branding_dir': '../app/theme/google_chrome',
     93       },
     94     }, { # else branding!="Chrome"
     95       'variables': {
     96          'branding_dir': '../app/theme/chromium',
     97       },
     98     }],
     99   ],
    100 }
    101