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("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") | 5 import("//third_party/WebKit/Source/bindings/modules/v8/generated.gni") |
6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") | 6 import("//third_party/WebKit/Source/bindings/scripts/scripts.gni") |
7 import("//third_party/WebKit/Source/modules/modules.gni") | 7 import("//third_party/WebKit/Source/modules/modules.gni") |
8 import("//third_party/WebKit/Source/modules/modules_idl_files.gni") | 8 import("//third_party/WebKit/Source/modules/modules_idl_files.gni") |
9 | 9 |
10 visibility = [ "//third_party/WebKit/*" ] | 10 visibility = [ "//third_party/WebKit/*" ] |
(...skipping 30 matching lines...) Expand all Loading... |
41 target_component = "modules" | 41 target_component = "modules" |
42 } | 42 } |
43 | 43 |
44 idl_compiler("generate_bindings_modules_v8_partial_interfaces_for_testing") { | 44 idl_compiler("generate_bindings_modules_v8_partial_interfaces_for_testing") { |
45 sources = webcore_testing_idl_with_modules_dependency_files | 45 sources = webcore_testing_idl_with_modules_dependency_files |
46 output_dir = bindings_modules_v8_output_dir | 46 output_dir = bindings_modules_v8_output_dir |
47 output_name_suffix = "Partial" | 47 output_name_suffix = "Partial" |
48 target_component = "modules" | 48 target_component = "modules" |
49 } | 49 } |
50 | 50 |
| 51 generate_conditional_features("bindings_modules_conditional_features") { |
| 52 sources = |
| 53 modules_idl_files + modules_global_constructors_generated_idl_files + |
| 54 modules_dependency_idl_files |
| 55 component = "Modules" |
| 56 output_dir = bindings_modules_output_dir + "/v8" |
| 57 deps = [ |
| 58 "//third_party/WebKit/Source/bindings/modules:modules_global_constructors_id
ls", |
| 59 ] |
| 60 } |
| 61 |
51 action("bindings_modules_v8_generated_init_partial") { | 62 action("bindings_modules_v8_generated_init_partial") { |
52 script = "$bindings_scripts_dir/generate_init_partial_interfaces.py" | 63 script = "$bindings_scripts_dir/generate_init_partial_interfaces.py" |
53 | 64 |
54 inputs = [ | 65 inputs = [ |
55 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", | 66 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", |
56 ] | 67 ] |
57 outputs = [ | 68 outputs = [ |
58 bindings_modules_generated_init_partial_interfaces_file, | 69 bindings_modules_generated_init_partial_interfaces_file, |
59 ] | 70 ] |
60 | 71 |
(...skipping 14 matching lines...) Expand all Loading... |
75 ] | 86 ] |
76 } | 87 } |
77 | 88 |
78 blink_modules_sources("bindings_modules_impl") { | 89 blink_modules_sources("bindings_modules_impl") { |
79 # ":generate_bindings_modules_v8_partial_interfaces_for_testing" is not | 90 # ":generate_bindings_modules_v8_partial_interfaces_for_testing" is not |
80 # included here. | 91 # included here. |
81 sources = | 92 sources = |
82 get_target_outputs(":generate_bindings_modules_v8_interfaces") + | 93 get_target_outputs(":generate_bindings_modules_v8_interfaces") + |
83 get_target_outputs(":bindings_modules_impl_generated") + | 94 get_target_outputs(":bindings_modules_impl_generated") + |
84 get_target_outputs(":generate_bindings_modules_v8_partial_interfaces") + | 95 get_target_outputs(":generate_bindings_modules_v8_partial_interfaces") + |
85 get_target_outputs(":bindings_modules_v8_generated_init_partial") | 96 get_target_outputs(":bindings_modules_v8_generated_init_partial") + |
| 97 get_target_outputs(":bindings_modules_conditional_features") |
86 | 98 |
87 deps = [ | 99 deps = [ |
| 100 ":bindings_modules_conditional_features", |
88 ":bindings_modules_v8_generated", | 101 ":bindings_modules_v8_generated", |
89 ] | 102 ] |
90 | 103 |
91 if (!is_component_build && is_win) { | 104 if (!is_component_build && is_win) { |
92 # This target as a static library (for non-component builds) is >4GB on | 105 # This target as a static library (for non-component builds) is >4GB on |
93 # Windows, this causes linking to fail. As a workaround, split it into | 106 # Windows, this causes linking to fail. As a workaround, split it into |
94 # multiple shards. | 107 # multiple shards. |
95 split_count = 5 | 108 split_count = 5 |
96 } | 109 } |
97 } | 110 } |
OLD | NEW |