Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(14)

Side by Side Diff: chrome_elf/chrome_elf.gyp

Issue 183773003: Only add chrome_redirects as a dependency of base.dll in component builds. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: no deps change Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2013 The Chromium Authors. All rights reserved. 1 # Copyright 2013 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 'variables': { 5 'variables': {
6 'chromium_code': 1, 6 'chromium_code': 1,
7 }, 7 },
8 'includes': [ 8 'includes': [
9 '../build/util/version.gypi', 9 '../build/util/version.gypi',
10 '../build/win_precompile.gypi', 10 '../build/win_precompile.gypi',
(...skipping 22 matching lines...) Expand all
33 # Set /SUBSYSTEM:WINDOWS. 33 # Set /SUBSYSTEM:WINDOWS.
34 'SubSystem': '2', 34 'SubSystem': '2',
35 'AdditionalDependencies!': [ 35 'AdditionalDependencies!': [
36 'user32.lib', 36 'user32.lib',
37 ], 37 ],
38 'IgnoreDefaultLibraryNames': [ 38 'IgnoreDefaultLibraryNames': [
39 'user32.lib', 39 'user32.lib',
40 ], 40 ],
41 }, 41 },
42 }, 42 },
43 'conditions': [
44 ['component=="shared_library"', {
45 # In component builds, all targets depend on chrome_redirects by
46 # default. Remove it here to avoid a circular dependency.
47 'dependencies!': [
48 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
49 ],
50 }],
51 ],
52 }, 43 },
53 { 44 {
54 'target_name': 'chrome_elf_unittests_exe', 45 'target_name': 'chrome_elf_unittests_exe',
55 'product_name': 'chrome_elf_unittests', 46 'product_name': 'chrome_elf_unittests',
56 'type': 'executable', 47 'type': 'executable',
57 'sources': [ 48 'sources': [
58 'blacklist/test/blacklist_test.cc', 49 'blacklist/test/blacklist_test.cc',
59 'chrome_elf_util_unittest.cc', 50 'chrome_elf_util_unittest.cc',
60 'create_file/chrome_create_file_unittest.cc', 51 'create_file/chrome_create_file_unittest.cc',
61 'elf_imports_unittest.cc', 52 'elf_imports_unittest.cc',
62 'ntdll_cache_unittest.cc', 53 'ntdll_cache_unittest.cc',
63 ], 54 ],
64 'include_dirs': [ 55 'include_dirs': [
65 '..', 56 '..',
66 '<(SHARED_INTERMEDIATE_DIR)', 57 '<(SHARED_INTERMEDIATE_DIR)',
67 ], 58 ],
68 'dependencies': [ 59 'dependencies': [
69 'chrome_elf_lib', 60 'chrome_elf_lib',
70 '../base/base.gyp:base', 61 '../base/base.gyp:base',
71 '../base/base.gyp:run_all_unittests', 62 '../base/base.gyp:run_all_unittests',
72 '../base/base.gyp:test_support_base', 63 '../base/base.gyp:test_support_base',
73 '../sandbox/sandbox.gyp:sandbox', 64 '../sandbox/sandbox.gyp:sandbox',
74 '../testing/gtest.gyp:gtest', 65 '../testing/gtest.gyp:gtest',
75 'blacklist', 66 'blacklist',
76 'blacklist_test_dll_1', 67 'blacklist_test_dll_1',
77 'blacklist_test_dll_2', 68 'blacklist_test_dll_2',
78 'blacklist_test_dll_3', 69 'blacklist_test_dll_3',
79 'blacklist_test_main_dll', 70 'blacklist_test_main_dll',
80 ], 71 ],
81 'conditions': [
82 ['component=="shared_library"', {
83 # In component builds, all targets depend on chrome_redirects by
84 # default. Remove it here so we are able to test it.
85 'dependencies!': [
86 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
87 ],
88 }],
89 ],
90 }, 72 },
91 { 73 {
92 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets built 74 # A dummy target to ensure that chrome_elf.dll and chrome.exe gets built
93 # when building chrome_elf_unittests.exe without introducing an 75 # when building chrome_elf_unittests.exe without introducing an
94 # explicit runtime dependency. 76 # explicit runtime dependency.
95 'target_name': 'chrome_elf_unittests', 77 'target_name': 'chrome_elf_unittests',
96 'type': 'none', 78 'type': 'none',
97 'dependencies': [ 79 'dependencies': [
98 '../chrome/chrome.gyp:chrome', 80 '../chrome/chrome.gyp:chrome',
99 'chrome_elf', 81 'chrome_elf',
100 'chrome_elf_unittests_exe', 82 'chrome_elf_unittests_exe',
101 ], 83 ],
102 }, 84 },
103 { 85 {
104 'target_name': 'chrome_elf_lib', 86 'target_name': 'chrome_elf_lib',
105 'type': 'static_library', 87 'type': 'static_library',
106 'include_dirs': [ 88 'include_dirs': [
107 '..', 89 '..',
108 ], 90 ],
109 'sources': [ 91 'sources': [
110 'create_file/chrome_create_file.cc', 92 'create_file/chrome_create_file.cc',
111 'create_file/chrome_create_file.h', 93 'create_file/chrome_create_file.h',
112 'ntdll_cache.cc', 94 'ntdll_cache.cc',
113 'ntdll_cache.h', 95 'ntdll_cache.h',
114 ], 96 ],
115 'dependencies': [ 97 'dependencies': [
116 'chrome_elf_common', 98 'chrome_elf_common',
117 ], 99 ],
118 'conditions': [
119 ['component=="shared_library"', {
120 # In component builds, all targets depend on chrome_redirects by
121 # default. Remove it here to avoid a circular dependency.
122 'dependencies!': [
123 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
124 ],
125 }],
126 ],
127 }, 100 },
128 { 101 {
129 'target_name': 'chrome_elf_constants', 102 'target_name': 'chrome_elf_constants',
130 'type': 'static_library', 103 'type': 'static_library',
131 'include_dirs': [ 104 'include_dirs': [
132 '..', 105 '..',
133 ], 106 ],
134 'sources': [ 107 'sources': [
135 'chrome_elf_constants.cc', 108 'chrome_elf_constants.cc',
136 'chrome_elf_constants.h', 109 'chrome_elf_constants.h',
137 ], 110 ],
138 'conditions': [
139 ['component=="shared_library"', {
140 # In component builds, all targets depend on chrome_redirects by
141 # default. Remove it here so we are able to test it.
142 'dependencies!': [
143 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
144 ],
145 }],
146 ],
147 }, 111 },
148 { 112 {
149 'target_name': 'chrome_elf_common', 113 'target_name': 'chrome_elf_common',
150 'type': 'static_library', 114 'type': 'static_library',
151 'dependencies': [ 115 'dependencies': [
152 'chrome_elf_constants', 116 'chrome_elf_constants',
153 ], 117 ],
154 'include_dirs': [ 118 'include_dirs': [
155 '..', 119 '..',
156 ], 120 ],
157 'sources': [ 121 'sources': [
158 'chrome_elf_types.h', 122 'chrome_elf_types.h',
159 'chrome_elf_util.cc', 123 'chrome_elf_util.cc',
160 'chrome_elf_util.h', 124 'chrome_elf_util.h',
161 ], 125 ],
162 'conditions': [
163 ['component=="shared_library"', {
164 # In component builds, all targets depend on chrome_redirects by
165 # default. Remove it here so we are able to test it.
166 'dependencies!': [
167 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
168 ],
169 }],
170 ],
171 }, 126 },
172 { 127 {
173 'target_name': 'chrome_elf_breakpad', 128 'target_name': 'chrome_elf_breakpad',
174 'type': 'static_library', 129 'type': 'static_library',
175 'include_dirs': [ 130 'include_dirs': [
176 '..', 131 '..',
177 '<(SHARED_INTERMEDIATE_DIR)', 132 '<(SHARED_INTERMEDIATE_DIR)',
178 ], 133 ],
179 'sources': [ 134 'sources': [
180 'breakpad.cc', 135 'breakpad.cc',
(...skipping 22 matching lines...) Expand all
203 'dependencies': [ 158 'dependencies': [
204 'chrome_elf_lib', 159 'chrome_elf_lib',
205 ], 160 ],
206 'msvs_settings': { 161 'msvs_settings': {
207 'VCLinkerTool': { 162 'VCLinkerTool': {
208 'BaseAddress': '0x01c10000', 163 'BaseAddress': '0x01c10000',
209 # Set /SUBSYSTEM:WINDOWS. 164 # Set /SUBSYSTEM:WINDOWS.
210 'SubSystem': '2', 165 'SubSystem': '2',
211 }, 166 },
212 }, 167 },
213 'conditions': [
214 ['component=="shared_library"', {
215 # In component builds, all targets depend on chrome_redirects by
216 # default. Remove it here to avoid a circular dependency.
217 'dependencies!': [
218 '../chrome_elf/chrome_elf.gyp:chrome_redirects',
219 ],
220 }],
221 ],
222 }, 168 },
223 ], 169 ],
224 }], 170 }],
225 ], 171 ],
226 } 172 }
227 173
OLDNEW
« no previous file with comments | « build/common.gypi ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698