Update CrOS OOBE throbber to MD throbber; delete old asset
[chromium-blink-merge.git] / chrome / installer / upgrade_test.gyp
blob07b283e96c64f62d19430bafe8dd9c669f46760b
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.
6   'variables': {
7     'branding_dir': '../app/theme/<(branding_path_component)',
8     'version_py': '<(DEPTH)/build/util/version.py',
9     'version_path': '../../chrome/VERSION',
10     'lastchange_path': '<(DEPTH)/build/util/LASTCHANGE',
11     # 'branding_dir' is set in the 'conditions' section at the bottom.
12     'msvs_use_common_release': 0,
13     'msvs_use_common_linker_extras': 0,
14   },
15   'includes': [
16     '../../build/win_precompile.gypi',
17   ],
18   'conditions': [
19     ['OS=="win"', {
20       'targets': [
21         {
22           # GN version: //chrome/installer/test:alternate_version_generator_lib
23           'target_name': 'alternate_version_generator_lib',
24           'type': 'static_library',
25           'dependencies': [
26             '../chrome.gyp:installer_util',
27             '../common_constants.gyp:common_constants',
28             '../../base/base.gyp:base',
29           ],
30           'include_dirs': [
31             '../..',
32           ],
33           'sources': [
34             'test/alternate_version_generator.cc',
35             'test/alternate_version_generator.h',
36             'test/pe_image_resources.cc',
37             'test/pe_image_resources.h',
38             'test/resource_loader.cc',
39             'test/resource_loader.h',
40             'test/resource_updater.cc',
41             'test/resource_updater.h',
42           ],
43           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
44           'msvs_disabled_warnings': [4267, ],
45         },
46         {
47           # GN version: //chrome/installer/test:upgrade_test
48           'target_name': 'upgrade_test',
49           'type': 'executable',
50           'dependencies': [
51             'alternate_version_generator_lib',
52             # This dependency, although correct, results in the mini installer
53             # being rebuilt every time upgrade_test is built.  So disable it
54             # for now.
55             # TODO(grt): fix rules/targets/etc for
56             # mini_installer.gyp:mini_installer so that it does no work if
57             # nothing has changed, then un-comment this next line:
58             # 'mini_installer.gyp:mini_installer',
59             '../../base/base.gyp:test_support_base',
60             '../../testing/gtest.gyp:gtest',
61             '../chrome.gyp:installer_util',
62             '../common_constants.gyp:common_constants',
63           ],
64           'include_dirs': [
65             '../..',
66           ],
67           'sources': [
68             'test/run_all_tests.cc',
69             'test/upgrade_test.cc',
70           ],
71         },
72         {
73           # GN version: //chrome/installer/test:alternate_version_generator
74           'target_name': 'alternate_version_generator',
75           'type': 'executable',
76           'dependencies': [
77             'alternate_version_generator_lib',
78             '../../base/base.gyp:test_support_base',
79             '../../testing/gtest.gyp:gtest',
80             '../chrome.gyp:installer_util',
81             '../common_constants.gyp:common_constants',
82           ],
83           'include_dirs': [
84             '../..',
85           ],
86           'sources': [
87             'test/alternate_version_generator_main.cc',
88           ],
89           # TODO(jschuh): crbug.com/167187 fix size_t to int truncations.
90           'msvs_disabled_warnings': [ 4267, ],
91         },
92       ],
93     }],
94   ],