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/chrome_build.gni") | 5 import("//build/config/chrome_build.gni") |
6 import("//build/config/chromecast_build.gni") | 6 import("//build/config/chromecast_build.gni") |
7 import("//build/config/ui.gni") | 7 import("//build/config/ui.gni") |
| 8 import("//build/split_static_library.gni") |
8 import("//third_party/WebKit/Source/bindings/bindings.gni") | 9 import("//third_party/WebKit/Source/bindings/bindings.gni") |
9 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") | 10 import("//third_party/WebKit/Source/bindings/core/v8/generated.gni") |
10 import("//third_party/WebKit/Source/bindings/modules/modules.gni") | 11 import("//third_party/WebKit/Source/bindings/modules/modules.gni") |
11 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") | 12 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
12 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 13 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
13 import("//third_party/WebKit/Source/config.gni") | 14 import("//third_party/WebKit/Source/config.gni") |
14 import("//third_party/WebKit/Source/core/core.gni") | 15 import("//third_party/WebKit/Source/core/core.gni") |
15 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 16 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
16 import("//third_party/WebKit/Source/platform/platform_generated.gni") | 17 import("//third_party/WebKit/Source/platform/platform_generated.gni") |
17 | 18 |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 config("core_include_dirs") { | 63 config("core_include_dirs") { |
63 include_dirs = [ | 64 include_dirs = [ |
64 "..", | 65 "..", |
65 "$root_gen_dir/blink", | 66 "$root_gen_dir/blink", |
66 ] | 67 ] |
67 if (is_android && use_openmax_dl_fft) { | 68 if (is_android && use_openmax_dl_fft) { |
68 include_dirs += [ "//third_party/openmax_dl" ] | 69 include_dirs += [ "//third_party/openmax_dl" ] |
69 } | 70 } |
70 } | 71 } |
71 | 72 |
| 73 if (is_component_build) { |
| 74 link_target_type = "source_set" |
| 75 } else { |
| 76 link_target_type = "split_static_library" |
| 77 |
| 78 # Safe split count for all of these split libraries - largest is ~6 GB in 32-b
it |
| 79 # official builds. |
| 80 split_count = 6 |
| 81 } |
| 82 |
72 # GYP version: WebKit/Source/core/core.gyp:webcore_generated | 83 # GYP version: WebKit/Source/core/core.gyp:webcore_generated |
73 source_set("generated") { | 84 source_set("generated") { |
74 deps = [ | 85 deps = [ |
75 ":make_core_generated", | 86 ":make_core_generated", |
76 ":prerequisites", | 87 ":prerequisites", |
77 "inspector:instrumentation_sources", | 88 "inspector:instrumentation_sources", |
78 "inspector:protocol_sources", | 89 "inspector:protocol_sources", |
79 "//gin", | 90 "//gin", |
80 "//skia", | 91 "//skia", |
81 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", | 92 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", |
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
181 # Incremental linking doesn't work on this target in debug mode, even | 192 # Incremental linking doesn't work on this target in debug mode, even |
182 # with symbol_level=1. | 193 # with symbol_level=1. |
183 configs -= [ "//build/config/win:default_incremental_linking" ] | 194 configs -= [ "//build/config/win:default_incremental_linking" ] |
184 configs += [ "//build/config/win:no_incremental_linking" ] | 195 configs += [ "//build/config/win:no_incremental_linking" ] |
185 } | 196 } |
186 | 197 |
187 public_configs = [ ":core_include_dirs" ] | 198 public_configs = [ ":core_include_dirs" ] |
188 } | 199 } |
189 | 200 |
190 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom | 201 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom |
191 source_set("dom") { | 202 target(link_target_type, "dom") { |
192 sources = rebase_path(webcore_dom_files, ".", "//") | 203 sources = rebase_path(webcore_dom_files, ".", "//") |
193 | 204 |
194 configs -= core_config_remove | 205 configs -= core_config_remove |
195 configs += core_config_add + [ | 206 configs += core_config_add + [ |
196 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 207 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
197 "//build/config/compiler:no_size_t_to_int_warning", | 208 "//build/config/compiler:no_size_t_to_int_warning", |
198 ] | 209 ] |
199 | 210 |
200 deps = [ | 211 deps = [ |
201 ":prerequisites", | 212 ":prerequisites", |
202 ] | 213 ] |
203 } | 214 } |
204 | 215 |
205 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_html | 216 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_html |
206 source_set("html") { | 217 target(link_target_type, "html") { |
207 sources = rebase_path(webcore_html_files, ".", "//") | 218 sources = rebase_path(webcore_html_files, ".", "//") |
208 | 219 |
209 configs -= core_config_remove | 220 configs -= core_config_remove |
210 configs += core_config_add | 221 configs += core_config_add |
211 | 222 |
212 deps = [ | 223 deps = [ |
213 ":prerequisites", | 224 ":prerequisites", |
214 ] | 225 ] |
215 } | 226 } |
216 | 227 |
217 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_svg | 228 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_svg |
218 source_set("svg") { | 229 target(link_target_type, "svg") { |
219 sources = rebase_path(webcore_svg_files, ".", "//") | 230 sources = rebase_path(webcore_svg_files, ".", "//") |
220 | 231 |
221 configs -= core_config_remove | 232 configs -= core_config_remove |
222 configs += core_config_add | 233 configs += core_config_add |
223 | 234 |
224 deps = [ | 235 deps = [ |
225 ":prerequisites", | 236 ":prerequisites", |
226 ] | 237 ] |
227 } | 238 } |
228 | 239 |
229 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_remaining | 240 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_remaining |
230 source_set("remaining") { | 241 target(link_target_type, "remaining") { |
231 # This is currently a mashup of "webcore_rendering" and "webcore_remaining" | 242 # This is currently a mashup of "webcore_rendering" and "webcore_remaining" |
232 # in GYP. The file list variable is the same and then GYP filters on wether | 243 # in GYP. The file list variable is the same and then GYP filters on wether |
233 # the path starts with "rendering/" or not. We should tweak the .gypis a bit | 244 # the path starts with "rendering/" or not. We should tweak the .gypis a bit |
234 # to separate out the rendering files. | 245 # to separate out the rendering files. |
235 sources = rebase_path(webcore_non_rendering_files, ".", "//") | 246 sources = rebase_path(webcore_non_rendering_files, ".", "//") |
236 sources += rebase_path(webcore_rendering_files, ".", "//") | 247 sources += rebase_path(webcore_rendering_files, ".", "//") |
237 | 248 |
238 configs -= core_config_remove | 249 configs -= core_config_remove |
239 configs += core_config_add + [ | 250 configs += core_config_add + [ |
240 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 251 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
329 "$bindings_core_v8_output_dir/V8TypeConversions.cpp", | 340 "$bindings_core_v8_output_dir/V8TypeConversions.cpp", |
330 "$bindings_core_v8_output_dir/V8TypeConversions.h", | 341 "$bindings_core_v8_output_dir/V8TypeConversions.h", |
331 "$bindings_core_v8_output_dir/V8UnionTypesTest.cpp", | 342 "$bindings_core_v8_output_dir/V8UnionTypesTest.cpp", |
332 "$bindings_core_v8_output_dir/V8UnionTypesTest.h", | 343 "$bindings_core_v8_output_dir/V8UnionTypesTest.h", |
333 "$bindings_core_v8_output_dir/V8WorkerInternals.cpp", | 344 "$bindings_core_v8_output_dir/V8WorkerInternals.cpp", |
334 "$bindings_core_v8_output_dir/V8WorkerInternals.h", | 345 "$bindings_core_v8_output_dir/V8WorkerInternals.h", |
335 ] | 346 ] |
336 } | 347 } |
337 | 348 |
338 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_generated | 349 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_generated |
339 source_set("core_generated") { | 350 target(link_target_type, "core_generated") { |
340 sources = bindings_core_v8_files | 351 sources = bindings_core_v8_files |
341 | 352 |
342 # These files include all the .cpp files generated from the .idl files | 353 # These files include all the .cpp files generated from the .idl files |
343 # in webcore_files. | 354 # in webcore_files. |
344 sources += bindings_core_generated_aggregate_files | 355 sources += bindings_core_generated_aggregate_files |
345 sources += bindings_core_generated_union_type_files | 356 sources += bindings_core_generated_union_type_files |
346 | 357 |
347 # IDL dictionary impl files generated by IDL compiler | 358 # IDL dictionary impl files generated by IDL compiler |
348 sources += generated_core_dictionary_files | 359 sources += generated_core_dictionary_files |
349 | 360 |
(...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1084 "$blink_core_output_dir/{{source_name_part}}.h", | 1095 "$blink_core_output_dir/{{source_name_part}}.h", |
1085 ] | 1096 ] |
1086 args = [ | 1097 args = [ |
1087 "{{source}}", | 1098 "{{source}}", |
1088 rel_blink_core_gen_dir, | 1099 rel_blink_core_gen_dir, |
1089 bison_exe, | 1100 bison_exe, |
1090 ] | 1101 ] |
1091 | 1102 |
1092 deps = make_core_generated_deps | 1103 deps = make_core_generated_deps |
1093 } | 1104 } |
OLD | NEW |