OLD | NEW |
1 # Copyright 2016 The Chromium Authors. All rights reserved. | 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 | 2 # Use of this source code is governed by a BSD-style license that can be |
3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
4 | 4 |
5 # The install_static_util target should only depend on functions in kernel32 | 5 # The install_static_util target should only depend on functions in kernel32. |
6 # and advapi32. Please don't add dependencies on other system libraries. | 6 # Please don't add dependencies on other system libraries. |
7 { | 7 { |
8 'target_defaults': { | 8 'target_defaults': { |
9 'variables': { | 9 'variables': { |
10 'installer_static_target': 0, | 10 'installer_static_target': 0, |
11 }, | 11 }, |
12 'target_conditions': [ | 12 'target_conditions': [ |
13 # This part is shared between the two versions of the target. | 13 # This part is shared between the two versions of the target. |
14 ['installer_static_target==1', { | 14 ['installer_static_target==1', { |
15 'sources': [ | 15 'sources': [ |
16 'install_static/install_util.h', | 16 'install_static/install_util.h', |
17 'install_static/install_util.cc', | 17 'install_static/install_util.cc', |
18 ], | 18 ], |
19 'include_dirs': [ | 19 'include_dirs': [ |
20 '<(DEPTH)', | 20 '<(DEPTH)', |
21 ], | 21 ], |
22 }], | 22 }], |
23 ], | 23 ], |
24 }, | 24 }, |
25 'conditions': [ | 25 'conditions': [ |
26 ['OS=="win"', { | 26 ['OS=="win"', { |
27 'targets': [ | 27 'targets': [ |
28 { | 28 { |
29 # GN version: //chrome/install_static | 29 # GN version: //chrome/install_static |
30 'target_name': 'install_static_util', | 30 'target_name': 'install_static_util', |
31 'type': 'static_library', | 31 'type': 'static_library', |
32 'variables': { | 32 'variables': { |
33 'installer_static_target': 1, | 33 'installer_static_target': 1, |
34 }, | 34 }, |
35 'dependencies': [ | 35 'dependencies': [ |
36 'installer_util_strings', | 36 '../chrome_elf/nt_registry/nt_registry.gyp:chrome_elf_nt_registry', |
37 '<(DEPTH)/base/base.gyp:base', | |
38 ], | 37 ], |
39 'msvs_settings': { | 38 'msvs_settings': { |
40 'VCLinkerTool': { | 39 'VCLinkerTool': { |
41 # Please don't add dependencies on other system libraries. | 40 # Please don't add dependencies on other system libraries. |
42 'AdditionalDependencies': [ | 41 'AdditionalDependencies': [ |
43 'kernel32.lib', | 42 'kernel32.lib', |
44 'advapi32.lib', | |
45 ], | 43 ], |
46 }, | 44 }, |
47 }, | 45 }, |
48 }, | 46 }, |
49 { | 47 { |
50 'target_name': 'install_static_unittests', | 48 'target_name': 'install_static_unittests', |
51 'type': 'executable', | 49 'type': 'executable', |
52 'sources': [ | 50 'sources': [ |
53 'install_static/install_util_unittest.cc', | 51 'install_static/install_util_unittest.cc', |
54 ], | 52 ], |
(...skipping 29 matching lines...) Expand all Loading... |
84 }], | 82 }], |
85 ['OS=="win" and target_arch=="ia32"', { | 83 ['OS=="win" and target_arch=="ia32"', { |
86 'targets': [ | 84 'targets': [ |
87 { | 85 { |
88 'target_name': 'install_static_util_nacl_win64', | 86 'target_name': 'install_static_util_nacl_win64', |
89 'type': 'static_library', | 87 'type': 'static_library', |
90 'variables': { | 88 'variables': { |
91 'installer_static_target': 1, | 89 'installer_static_target': 1, |
92 }, | 90 }, |
93 'dependencies': [ | 91 'dependencies': [ |
94 'installer_util_strings', | 92 '../chrome_elf/nt_registry/nt_registry.gyp:chrome_elf_nt_registry_na
cl_win64', |
95 ], | 93 ], |
96 'include_dirs': [ | 94 'include_dirs': [ |
97 '<(SHARED_INTERMEDIATE_DIR)', | 95 '<(SHARED_INTERMEDIATE_DIR)', |
98 ], | 96 ], |
99 'configurations': { | 97 'configurations': { |
100 'Common_Base': { | 98 'Common_Base': { |
101 'msvs_target_platform': 'x64', | 99 'msvs_target_platform': 'x64', |
102 }, | 100 }, |
103 }, | 101 }, |
104 'msvs_settings': { | 102 'msvs_settings': { |
105 'VCLinkerTool': { | 103 'VCLinkerTool': { |
106 # Please don't add dependencies on other system libraries. | 104 # Please don't add dependencies on other system libraries. |
107 'AdditionalDependencies': [ | 105 'AdditionalDependencies': [ |
108 'kernel32.lib', | 106 'kernel32.lib', |
109 'advapi32.lib', | |
110 ], | 107 ], |
111 }, | 108 }, |
112 }, | 109 }, |
113 }, | 110 }, |
114 ], | 111 ], |
115 }], | 112 }], |
116 ], | 113 ], |
117 } | 114 } |
OLD | NEW |