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/split_static_library.gni") | |
6 import("//third_party/WebKit/Source/bindings/bindings.gni") | 5 import("//third_party/WebKit/Source/bindings/bindings.gni") |
7 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") | 6 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
8 import("//third_party/WebKit/Source/bindings/modules/v8/v8.gni") | 7 import("//third_party/WebKit/Source/bindings/modules/v8/v8.gni") |
9 import("//third_party/WebKit/Source/build/scripts/scripts.gni") | 8 import("//third_party/WebKit/Source/build/scripts/scripts.gni") |
10 import("//third_party/WebKit/Source/modules/modules.gni") | 9 import("//third_party/WebKit/Source/modules/modules.gni") |
11 | 10 |
12 visibility = [ "//third_party/WebKit/Source/*" ] | 11 visibility = [ "//third_party/WebKit/Source/*" ] |
13 | 12 |
14 if (!is_component_build && is_win && is_official_build) { | 13 # GYP version: WebKit/Source/modules/modules.gyp:modules |
15 # This target as a static library (for non-component builds) is >2GB for | 14 component("modules") { |
16 # official builds on Windows. This causes linking fail. As a workaround, | |
17 # force using a split static library for this configuration. | |
18 modules_target_type = "split_static_library" | |
19 } else { | |
20 modules_target_type = "component" | |
21 } | |
22 | |
23 target(modules_target_type, "modules") { | |
24 output_name = "blink_modules" | 15 output_name = "blink_modules" |
25 | 16 |
26 if (modules_target_type == "split_static_library") { | 17 if (is_win && is_official_build) { |
27 split_count = 5 | 18 # This target is >2GB for official builds on Windows which causes linking |
| 19 # with the library to fail. As a workaround, force using a source set in |
| 20 # this configuration whcih avoids generating the .lib file (although will |
| 21 # cause slower links). |
| 22 static_component_type = "source_set" |
28 } | 23 } |
29 | 24 |
30 visibility = [] # Allow re-assignment of list. | 25 visibility = [] # Allow re-assignment of list. |
31 visibility = [ "//third_party/WebKit/*" ] | 26 visibility = [ "//third_party/WebKit/*" ] |
32 | 27 |
33 sources = rebase_path(modules_files, ".", "//") | 28 sources = rebase_path(modules_files, ".", "//") |
34 sources += bindings_modules_v8_files | 29 sources += bindings_modules_v8_files |
35 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") | 30 sources += rebase_path(bindings_modules_generated_aggregate_files, ".", "//") |
36 sources += rebase_path(bindings_modules_generated_union_type_files, ".", "//") | 31 sources += rebase_path(bindings_modules_generated_union_type_files, ".", "//") |
37 sources += | 32 sources += |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
122 } | 117 } |
123 | 118 |
124 # GYP version: WebKit/Source/modules/modules_generated.gyp:make_modules_generate
d | 119 # GYP version: WebKit/Source/modules/modules_generated.gyp:make_modules_generate
d |
125 group("make_modules_generated") { | 120 group("make_modules_generated") { |
126 public_deps = [ | 121 public_deps = [ |
127 ":module_names", | 122 ":module_names", |
128 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", | 123 "//third_party/WebKit/Source/bindings/modules:bindings_modules_generated", |
129 "//third_party/WebKit/Source/core:core_event_interfaces", | 124 "//third_party/WebKit/Source/core:core_event_interfaces", |
130 ] | 125 ] |
131 } | 126 } |
OLD | NEW |