OLD | NEW |
1 # Copyright 2014 The Chromium Authors. All rights reserved. | 1 # Copyright 2014 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 import("//build/config/chromecast_build.gni") | 5 import("//build/config/chromecast_build.gni") |
6 import("//build/config/ui.gni") | 6 import("//build/config/ui.gni") |
7 import("//build/split_static_library.gni") | 7 import("//build/split_static_library.gni") |
8 import("//testing/libfuzzer/fuzzer_test.gni") | 8 import("//testing/libfuzzer/fuzzer_test.gni") |
9 import("//third_party/WebKit/Source/bindings/bindings.gni") | 9 import("//third_party/WebKit/Source/bindings/bindings.gni") |
10 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") | 10 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 ":core_generated", | 143 ":core_generated", |
144 "//skia", | 144 "//skia", |
145 "//third_party/WebKit/Source/platform", | 145 "//third_party/WebKit/Source/platform", |
146 "//third_party/WebKit/Source/wtf", | 146 "//third_party/WebKit/Source/wtf", |
147 "//third_party/qcms", | 147 "//third_party/qcms", |
148 "//url", | 148 "//url", |
149 "//v8", | 149 "//v8", |
150 ] | 150 ] |
151 deps = [ | 151 deps = [ |
152 ":remaining", | 152 ":remaining", |
153 ":rendering", | 153 "//third_party/WebKit/Source/core/animation", |
| 154 "//third_party/WebKit/Source/core/clipboard", |
| 155 "//third_party/WebKit/Source/core/css", |
154 "//third_party/WebKit/Source/core/dom", | 156 "//third_party/WebKit/Source/core/dom", |
| 157 "//third_party/WebKit/Source/core/editing", |
155 "//third_party/WebKit/Source/core/events", | 158 "//third_party/WebKit/Source/core/events", |
| 159 "//third_party/WebKit/Source/core/fetch", |
| 160 "//third_party/WebKit/Source/core/fileapi", |
| 161 "//third_party/WebKit/Source/core/frame", |
156 "//third_party/WebKit/Source/core/html", | 162 "//third_party/WebKit/Source/core/html", |
157 "//third_party/WebKit/Source/core/input", | 163 "//third_party/WebKit/Source/core/input", |
| 164 "//third_party/WebKit/Source/core/layout", |
158 "//third_party/WebKit/Source/core/layout/svg", | 165 "//third_party/WebKit/Source/core/layout/svg", |
159 "//third_party/WebKit/Source/core/observer", | 166 "//third_party/WebKit/Source/core/observer", |
| 167 "//third_party/WebKit/Source/core/style:rendering", |
160 "//third_party/WebKit/Source/core/style:svg", | 168 "//third_party/WebKit/Source/core/style:svg", |
161 "//third_party/WebKit/Source/core/svg", | 169 "//third_party/WebKit/Source/core/svg", |
162 ] | 170 ] |
163 | 171 |
164 if (is_win && is_debug && is_component_build) { | 172 if (is_win && is_debug && is_component_build) { |
165 # Incremental linking doesn't work on this target in debug mode, even | 173 # Incremental linking doesn't work on this target in debug mode, even |
166 # with symbol_level=1. | 174 # with symbol_level=1. |
167 configs -= [ "//build/config/win:default_incremental_linking" ] | 175 configs -= [ "//build/config/win:default_incremental_linking" ] |
168 configs += [ "//build/config/win:no_incremental_linking" ] | 176 configs += [ "//build/config/win:no_incremental_linking" ] |
169 } | 177 } |
170 | 178 |
171 public_configs = [ ":core_include_dirs" ] | 179 public_configs = [ ":core_include_dirs" ] |
172 } | 180 } |
173 | 181 |
174 target(core_link_large_target_type, "remaining") { | 182 target(core_link_large_target_type, "remaining") { |
175 if (is_win && is_official_build && | 183 if (is_win && is_official_build && |
176 core_link_large_target_type == "split_static_library") { | 184 core_link_large_target_type == "split_static_library") { |
177 # Shard this target into parts to work around linker limitations | 185 # Shard this target into parts to work around linker limitations |
178 # on link time code generation builds. | 186 # on link time code generation builds. |
179 split_count = 19 | 187 split_count = 19 |
180 } | 188 } |
181 | 189 |
182 # This is currently a mashup of "webcore_rendering" and "webcore_remaining" | 190 # This is currently a mashup of "webcore_rendering" and "webcore_remaining" |
183 # in GYP. The file list variable is the same and then GYP filters on wether | 191 # in GYP. The file list variable is the same and then GYP filters on wether |
184 # the path starts with "rendering/" or not. We should tweak the .gypis a bit | 192 # the path starts with "rendering/" or not. We should tweak the .gypis a bit |
185 # to separate out the rendering files. | 193 # to separate out the rendering files. |
186 sources = rebase_path(webcore_non_rendering_files, ".", "//") | 194 sources = rebase_path(webcore_non_rendering_files, ".", "//") |
187 sources += rebase_path(webcore_rendering_files, ".", "//") | |
188 | 195 |
189 configs -= core_config_remove | 196 configs -= core_config_remove |
190 configs += core_config_add + [ | 197 configs += core_config_add + [ |
191 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 198 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
192 "//build/config/compiler:no_size_t_to_int_warning", | 199 "//build/config/compiler:no_size_t_to_int_warning", |
193 ] | 200 ] |
194 | 201 |
195 cflags = [] | 202 cflags = [] |
196 libs = [] | 203 libs = [] |
197 | 204 |
198 deps = [ | 205 deps = [ |
199 ":core_generated", | 206 ":core_generated", |
200 ":prerequisites", | 207 ":prerequisites", |
201 ] | 208 ] |
202 | 209 |
203 if (is_win) { | |
204 cflags += [ "/wd4334" ] | |
205 sources -= [ "layout/LayoutThemeFontProviderDefault.cpp" ] | |
206 } else { # !is_win | |
207 sources -= [ | |
208 "layout/LayoutThemeFontProviderWin.cpp", | |
209 "layout/LayoutThemeWin.cpp", | |
210 "layout/LayoutThemeWin.h", | |
211 ] | |
212 } | |
213 | |
214 if (!is_linux) { | |
215 sources -= [ | |
216 "layout/LayoutThemeLinux.cpp", | |
217 "layout/LayoutThemeLinux.h", | |
218 ] | |
219 } | |
220 | |
221 if (!is_android) { | |
222 sources -= [ | |
223 "layout/LayoutThemeAndroid.cpp", | |
224 "layout/LayoutThemeAndroid.h", | |
225 ] | |
226 } | |
227 | |
228 if (is_mac) { | 210 if (is_mac) { |
229 libs += [ | 211 libs += [ |
230 "AppKit.framework", | 212 "AppKit.framework", |
231 "Carbon.framework", | 213 "Carbon.framework", |
232 ] | 214 ] |
233 } else { # !is_mac | |
234 sources -= [ "editing/commands/SmartReplaceCF.cpp" ] | |
235 } | 215 } |
236 } | 216 } |
237 | 217 |
238 source_set("rendering") { | |
239 # The files that go here are currently in "remaining". | |
240 } | |
241 | |
242 source_set("testing") { | 218 source_set("testing") { |
243 configs += [ | 219 configs += [ |
244 "//third_party/WebKit/Source:inside_blink", | 220 "//third_party/WebKit/Source:inside_blink", |
245 "//third_party/WebKit/Source:config", | 221 "//third_party/WebKit/Source:config", |
246 ] | 222 ] |
247 | 223 |
248 deps = [ | 224 deps = [ |
249 ":core", | 225 ":core", |
250 ":generated_testing_idls", | 226 ":generated_testing_idls", |
251 ] | 227 ] |
(...skipping 973 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1225 sources = [ | 1201 sources = [ |
1226 "css/StyleSheetContentsFuzzer.cpp", | 1202 "css/StyleSheetContentsFuzzer.cpp", |
1227 ] | 1203 ] |
1228 deps = [ | 1204 deps = [ |
1229 ":core", | 1205 ":core", |
1230 "../platform:blink_fuzzer_test_support", | 1206 "../platform:blink_fuzzer_test_support", |
1231 ] | 1207 ] |
1232 seed_corpus = "//third_party/WebKit/LayoutTests/fast/css/resources" | 1208 seed_corpus = "//third_party/WebKit/LayoutTests/fast/css/resources" |
1233 libfuzzer_options = [ "max_len=2048" ] | 1209 libfuzzer_options = [ "max_len=2048" ] |
1234 } | 1210 } |
OLD | NEW |