| 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 global_objects_file = |
| 56 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| 57 component = "Modules" |
| 58 output_dir = bindings_modules_output_dir + "/v8" |
| 59 deps = [ |
| 60 "//third_party/WebKit/Source/bindings/modules:modules_global_constructors_id
ls", |
| 61 "//third_party/WebKit/Source/bindings/modules:modules_global_objects", |
| 62 ] |
| 63 } |
| 64 |
| 51 action("bindings_modules_v8_generated_init_partial") { | 65 action("bindings_modules_v8_generated_init_partial") { |
| 52 script = "$bindings_scripts_dir/generate_init_partial_interfaces.py" | 66 script = "$bindings_scripts_dir/generate_init_partial_interfaces.py" |
| 53 | 67 |
| 54 inputs = [ | 68 inputs = [ |
| 55 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", | 69 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", |
| 56 ] | 70 ] |
| 57 outputs = [ | 71 outputs = [ |
| 58 bindings_modules_generated_init_partial_interfaces_file, | 72 bindings_modules_generated_init_partial_interfaces_file, |
| 59 ] | 73 ] |
| 60 | 74 |
| (...skipping 14 matching lines...) Expand all Loading... |
| 75 ] | 89 ] |
| 76 } | 90 } |
| 77 | 91 |
| 78 blink_modules_sources("bindings_modules_impl") { | 92 blink_modules_sources("bindings_modules_impl") { |
| 79 # ":generate_bindings_modules_v8_partial_interfaces_for_testing" is not | 93 # ":generate_bindings_modules_v8_partial_interfaces_for_testing" is not |
| 80 # included here. | 94 # included here. |
| 81 sources = | 95 sources = |
| 82 get_target_outputs(":generate_bindings_modules_v8_interfaces") + | 96 get_target_outputs(":generate_bindings_modules_v8_interfaces") + |
| 83 get_target_outputs(":bindings_modules_impl_generated") + | 97 get_target_outputs(":bindings_modules_impl_generated") + |
| 84 get_target_outputs(":generate_bindings_modules_v8_partial_interfaces") + | 98 get_target_outputs(":generate_bindings_modules_v8_partial_interfaces") + |
| 85 get_target_outputs(":bindings_modules_v8_generated_init_partial") | 99 get_target_outputs(":bindings_modules_v8_generated_init_partial") + |
| 100 get_target_outputs(":bindings_modules_conditional_features") |
| 86 | 101 |
| 87 deps = [ | 102 deps = [ |
| 103 ":bindings_modules_conditional_features", |
| 88 ":bindings_modules_v8_generated", | 104 ":bindings_modules_v8_generated", |
| 89 ] | 105 ] |
| 90 | 106 |
| 91 if (!is_component_build && is_win) { | 107 if (!is_component_build && is_win) { |
| 92 # This target as a static library (for non-component builds) is >4GB on | 108 # 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 | 109 # Windows, this causes linking to fail. As a workaround, split it into |
| 94 # multiple shards. | 110 # multiple shards. |
| 95 split_count = 5 | 111 split_count = 5 |
| 96 } | 112 } |
| 97 } | 113 } |
| OLD | NEW |