| 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 if (is_win && is_official_build) { |
| 79 # Shard this target into parts to work around linker limitations |
| 80 # on link time code generation builds. |
| 81 split_count = 5 |
| 82 } else { |
| 83 split_count = 1 |
| 84 } |
| 85 } |
| 86 |
| 72 # GYP version: WebKit/Source/core/core.gyp:webcore_generated | 87 # GYP version: WebKit/Source/core/core.gyp:webcore_generated |
| 73 source_set("generated") { | 88 source_set("generated") { |
| 74 deps = [ | 89 deps = [ |
| 75 ":make_core_generated", | 90 ":make_core_generated", |
| 76 ":prerequisites", | 91 ":prerequisites", |
| 77 "inspector:instrumentation_sources", | 92 "inspector:instrumentation_sources", |
| 78 "inspector:protocol_sources", | 93 "inspector:protocol_sources", |
| 79 "//gin", | 94 "//gin", |
| 80 "//skia", | 95 "//skia", |
| 81 "//third_party/WebKit/Source/bindings/core/v8:bindings_core_v8_generated", | 96 "//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 | 196 # Incremental linking doesn't work on this target in debug mode, even |
| 182 # with symbol_level=1. | 197 # with symbol_level=1. |
| 183 configs -= [ "//build/config/win:default_incremental_linking" ] | 198 configs -= [ "//build/config/win:default_incremental_linking" ] |
| 184 configs += [ "//build/config/win:no_incremental_linking" ] | 199 configs += [ "//build/config/win:no_incremental_linking" ] |
| 185 } | 200 } |
| 186 | 201 |
| 187 public_configs = [ ":core_include_dirs" ] | 202 public_configs = [ ":core_include_dirs" ] |
| 188 } | 203 } |
| 189 | 204 |
| 190 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom | 205 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_dom |
| 191 source_set("dom") { | 206 target(link_target_type, "dom") { |
| 192 sources = rebase_path(webcore_dom_files, ".", "//") | 207 sources = rebase_path(webcore_dom_files, ".", "//") |
| 193 | 208 |
| 194 configs -= core_config_remove | 209 configs -= core_config_remove |
| 195 configs += core_config_add + [ | 210 configs += core_config_add + [ |
| 196 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 211 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. |
| 197 "//build/config/compiler:no_size_t_to_int_warning", | 212 "//build/config/compiler:no_size_t_to_int_warning", |
| 198 ] | 213 ] |
| 199 | 214 |
| 200 deps = [ | 215 deps = [ |
| 201 ":prerequisites", | 216 ":prerequisites", |
| 202 ] | 217 ] |
| 203 } | 218 } |
| 204 | 219 |
| 205 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_html | 220 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_html |
| 206 source_set("html") { | 221 target(link_target_type, "html") { |
| 207 sources = rebase_path(webcore_html_files, ".", "//") | 222 sources = rebase_path(webcore_html_files, ".", "//") |
| 208 | 223 |
| 209 configs -= core_config_remove | 224 configs -= core_config_remove |
| 210 configs += core_config_add | 225 configs += core_config_add |
| 211 | 226 |
| 212 deps = [ | 227 deps = [ |
| 213 ":prerequisites", | 228 ":prerequisites", |
| 214 ] | 229 ] |
| 215 } | 230 } |
| 216 | 231 |
| 217 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_svg | 232 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_svg |
| 218 source_set("svg") { | 233 target(link_target_type, "svg") { |
| 219 sources = rebase_path(webcore_svg_files, ".", "//") | 234 sources = rebase_path(webcore_svg_files, ".", "//") |
| 220 | 235 |
| 221 configs -= core_config_remove | 236 configs -= core_config_remove |
| 222 configs += core_config_add | 237 configs += core_config_add |
| 223 | 238 |
| 224 deps = [ | 239 deps = [ |
| 225 ":prerequisites", | 240 ":prerequisites", |
| 226 ] | 241 ] |
| 227 } | 242 } |
| 228 | 243 |
| 229 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_remaining | 244 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_remaining |
| 230 source_set("remaining") { | 245 target(link_target_type, "remaining") { |
| 246 if (is_win && is_official_build) { |
| 247 # Shard this target into parts to work around linker limitations |
| 248 # on link time code generation builds. |
| 249 split_count = 19 |
| 250 } |
| 251 |
| 231 # This is currently a mashup of "webcore_rendering" and "webcore_remaining" | 252 # 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 | 253 # 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 | 254 # the path starts with "rendering/" or not. We should tweak the .gypis a bit |
| 234 # to separate out the rendering files. | 255 # to separate out the rendering files. |
| 235 sources = rebase_path(webcore_non_rendering_files, ".", "//") | 256 sources = rebase_path(webcore_non_rendering_files, ".", "//") |
| 236 sources += rebase_path(webcore_rendering_files, ".", "//") | 257 sources += rebase_path(webcore_rendering_files, ".", "//") |
| 237 | 258 |
| 238 configs -= core_config_remove | 259 configs -= core_config_remove |
| 239 configs += core_config_add + [ | 260 configs += core_config_add + [ |
| 240 # TODO(jschuh): crbug.com/167187 fix size_t to int truncations. | 261 # 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", | 350 "$bindings_core_v8_output_dir/V8TypeConversions.cpp", |
| 330 "$bindings_core_v8_output_dir/V8TypeConversions.h", | 351 "$bindings_core_v8_output_dir/V8TypeConversions.h", |
| 331 "$bindings_core_v8_output_dir/V8UnionTypesTest.cpp", | 352 "$bindings_core_v8_output_dir/V8UnionTypesTest.cpp", |
| 332 "$bindings_core_v8_output_dir/V8UnionTypesTest.h", | 353 "$bindings_core_v8_output_dir/V8UnionTypesTest.h", |
| 333 "$bindings_core_v8_output_dir/V8WorkerInternals.cpp", | 354 "$bindings_core_v8_output_dir/V8WorkerInternals.cpp", |
| 334 "$bindings_core_v8_output_dir/V8WorkerInternals.h", | 355 "$bindings_core_v8_output_dir/V8WorkerInternals.h", |
| 335 ] | 356 ] |
| 336 } | 357 } |
| 337 | 358 |
| 338 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_generated | 359 # GYP version: //third_party/WebKit/Source/core/core.gyp:webcore_generated |
| 339 source_set("core_generated") { | 360 target(link_target_type, "core_generated") { |
| 340 sources = bindings_core_v8_files | 361 sources = bindings_core_v8_files |
| 341 | 362 |
| 342 # These files include all the .cpp files generated from the .idl files | 363 # These files include all the .cpp files generated from the .idl files |
| 343 # in webcore_files. | 364 # in webcore_files. |
| 344 sources += bindings_core_generated_aggregate_files | 365 sources += bindings_core_generated_aggregate_files |
| 345 sources += bindings_core_generated_union_type_files | 366 sources += bindings_core_generated_union_type_files |
| 346 | 367 |
| 347 # IDL dictionary impl files generated by IDL compiler | 368 # IDL dictionary impl files generated by IDL compiler |
| 348 sources += generated_core_dictionary_files | 369 sources += generated_core_dictionary_files |
| 349 | 370 |
| (...skipping 734 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1084 "$blink_core_output_dir/{{source_name_part}}.h", | 1105 "$blink_core_output_dir/{{source_name_part}}.h", |
| 1085 ] | 1106 ] |
| 1086 args = [ | 1107 args = [ |
| 1087 "{{source}}", | 1108 "{{source}}", |
| 1088 rel_blink_core_gen_dir, | 1109 rel_blink_core_gen_dir, |
| 1089 bison_exe, | 1110 bison_exe, |
| 1090 ] | 1111 ] |
| 1091 | 1112 |
| 1092 deps = make_core_generated_deps | 1113 deps = make_core_generated_deps |
| 1093 } | 1114 } |
| OLD | NEW |