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