OLD | NEW |
| (Empty) |
1 # Copyright 2016 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 # The install_static_util target should only depend on functions in kernel32. | |
6 # Please don't add dependencies on other system libraries. | |
7 { | |
8 'target_defaults': { | |
9 'variables': { | |
10 'installer_static_target': 0, | |
11 }, | |
12 'target_conditions': [ | |
13 # This part is shared between the two versions of the target. | |
14 ['installer_static_target==1', { | |
15 'sources': [ | |
16 'install_static/install_util.h', | |
17 'install_static/install_util.cc', | |
18 ], | |
19 'include_dirs': [ | |
20 '<(DEPTH)', | |
21 ], | |
22 }], | |
23 ], | |
24 }, | |
25 'conditions': [ | |
26 ['OS=="win"', { | |
27 'targets': [ | |
28 { | |
29 # GN version: //chrome/install_static | |
30 'target_name': 'install_static_util', | |
31 'type': 'static_library', | |
32 'variables': { | |
33 'installer_static_target': 1, | |
34 }, | |
35 'dependencies': [ | |
36 '../chrome_elf/nt_registry/nt_registry.gyp:chrome_elf_nt_registry', | |
37 ], | |
38 'msvs_settings': { | |
39 'VCLinkerTool': { | |
40 # Please don't add dependencies on other system libraries. | |
41 'AdditionalDependencies': [ | |
42 'kernel32.lib', | |
43 ], | |
44 }, | |
45 }, | |
46 }, | |
47 { | |
48 'target_name': 'install_static_unittests', | |
49 'type': 'executable', | |
50 'sources': [ | |
51 'install_static/install_util_unittest.cc', | |
52 ], | |
53 'include_dirs': [ | |
54 '..', | |
55 '<(SHARED_INTERMEDIATE_DIR)', | |
56 ], | |
57 'dependencies': [ | |
58 '../base/base.gyp:base', | |
59 '../base/base.gyp:run_all_unittests', | |
60 '../base/base.gyp:test_support_base', | |
61 'chrome.gyp:install_static_util', | |
62 '../testing/gmock.gyp:gmock', | |
63 '../testing/gtest.gyp:gtest', | |
64 ], | |
65 }, | |
66 ], | |
67 }], | |
68 ['OS=="win" and test_isolation_mode != "noop"', { | |
69 'targets': [ | |
70 { | |
71 'target_name': 'install_static_unittests_run', | |
72 'type': 'none', | |
73 'dependencies': [ | |
74 'install_static_unittests', | |
75 ], | |
76 'includes': [ '../build/isolate.gypi' ], | |
77 'sources': [ | |
78 'install_static_unittests.isolate' | |
79 ], | |
80 }, | |
81 ], | |
82 }], | |
83 ['OS=="win" and target_arch=="ia32"', { | |
84 'targets': [ | |
85 { | |
86 'target_name': 'install_static_util_nacl_win64', | |
87 'type': 'static_library', | |
88 'variables': { | |
89 'installer_static_target': 1, | |
90 }, | |
91 'dependencies': [ | |
92 '../chrome_elf/nt_registry/nt_registry.gyp:chrome_elf_nt_registry_na
cl_win64', | |
93 ], | |
94 'include_dirs': [ | |
95 '<(SHARED_INTERMEDIATE_DIR)', | |
96 ], | |
97 'configurations': { | |
98 'Common_Base': { | |
99 'msvs_target_platform': 'x64', | |
100 }, | |
101 }, | |
102 'msvs_settings': { | |
103 'VCLinkerTool': { | |
104 # Please don't add dependencies on other system libraries. | |
105 'AdditionalDependencies': [ | |
106 'kernel32.lib', | |
107 ], | |
108 }, | |
109 }, | |
110 }, | |
111 ], | |
112 }], | |
113 ], | |
114 } | |
OLD | NEW |