Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(289)

Side by Side Diff: third_party/WebKit/Source/bindings/modules/BUILD.gn

Issue 2328773002: Remove more blink modules gypi code. (Closed)
Patch Set: Selling correction Created 4 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/scripts.gni » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # Copyright 2014 Tfe Chromium Authors. All rights reserved. 1 # Copyright 2014 Tfe 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/modules/modules.gni") 5 import("//third_party/WebKit/Source/modules/modules.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/build/scripts/scripts.gni") 7 import("//third_party/WebKit/Source/build/scripts/scripts.gni")
8 8
9 visibility = [ "//third_party/WebKit/*" ]
10
11 # GYP version: Source/bindings/modules/generated.gyp:bindings_modules_generated
12 group("bindings_modules_generated") { 9 group("bindings_modules_generated") {
10 visibility = [ "//third_party/WebKit/*" ]
13 public_deps = [ 11 public_deps = [
14 ":bindings_modules_generated_event_modules_factory", 12 ":event_modules",
15 ":bindings_modules_generated_event_modules_names", 13 ":event_modules_names",
16 ":bindings_modules_generated_event_target_modules_names", 14 ":event_target_modules_names",
17 ":modules_bindings_generated_event_interfaces", 15 ":modules_bindings_generated_event_interfaces",
18 ] 16 ]
19 } 17 }
20 18
21 # GYP version: event_interfaces action in bindings_modules_generated
22 generate_event_interfaces("modules_bindings_generated_event_interfaces") { 19 generate_event_interfaces("modules_bindings_generated_event_interfaces") {
23 sources = [ 20 sources = [
24 "//third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.idl ", 21 "//third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.idl ",
25 "//third_party/WebKit/Source/modules/background_sync/SyncEvent.idl", 22 "//third_party/WebKit/Source/modules/background_sync/SyncEvent.idl",
26 "//third_party/WebKit/Source/modules/device_light/DeviceLightEvent.idl", 23 "//third_party/WebKit/Source/modules/device_light/DeviceLightEvent.idl",
27 "//third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.id l", 24 "//third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.id l",
28 "//third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEve nt.idl", 25 "//third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEve nt.idl",
29 "//third_party/WebKit/Source/modules/encryptedmedia/MediaEncryptedEvent.idl" , 26 "//third_party/WebKit/Source/modules/encryptedmedia/MediaEncryptedEvent.idl" ,
30 "//third_party/WebKit/Source/modules/encryptedmedia/MediaKeyMessageEvent.idl ", 27 "//third_party/WebKit/Source/modules/encryptedmedia/MediaKeyMessageEvent.idl ",
31 "//third_party/WebKit/Source/modules/gamepad/GamepadEvent.idl", 28 "//third_party/WebKit/Source/modules/gamepad/GamepadEvent.idl",
(...skipping 26 matching lines...) Expand all
58 "//third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.id l", 55 "//third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.id l",
59 "//third_party/WebKit/Source/modules/webgl/WebGLContextEvent.idl", 56 "//third_party/WebKit/Source/modules/webgl/WebGLContextEvent.idl",
60 "//third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.idl", 57 "//third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.idl",
61 "//third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.idl", 58 "//third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.idl",
62 "//third_party/WebKit/Source/modules/websockets/CloseEvent.idl", 59 "//third_party/WebKit/Source/modules/websockets/CloseEvent.idl",
63 ] 60 ]
64 output_file = "EventModulesInterfaces.in" 61 output_file = "EventModulesInterfaces.in"
65 suffix = "Modules" 62 suffix = "Modules"
66 } 63 }
67 64
68 # GYP version: EventModulesFactory action in bindings_modules_generated 65 make_event_factory("event_modules") {
69 make_event_factory("bindings_modules_generated_event_modules_factory") { 66 visibility = [ ":*" ]
70 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ] 67 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ]
71 outputs = [ 68 outputs = [
72 "$blink_modules_output_dir/EventModules.cpp", 69 "$blink_modules_output_dir/EventModules.cpp",
73 "$blink_modules_output_dir/EventModulesHeaders.h", 70 "$blink_modules_output_dir/EventModulesHeaders.h",
74 ] 71 ]
75 deps = [ 72 deps = make_core_generated_deps + [ "//third_party/WebKit/Source/bindings/modu les:modules_bindings_generated_event_interfaces" ]
76 "//third_party/WebKit/Source/bindings/modules:modules_bindings_generated_eve nt_interfaces",
77 ]
78 } 73 }
79 74
80 # GYP version: EventModulesNames action in bindings_modules_generated 75 make_names("event_modules_names") {
81 make_names("bindings_modules_generated_event_modules_names") { 76 visibility = [ ":*" ]
82 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ] 77 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ]
83 outputs = [ 78 outputs = [
84 "$blink_modules_output_dir/EventModulesNames.cpp", 79 "$blink_modules_output_dir/EventModulesNames.cpp",
85 "$blink_modules_output_dir/EventModulesNames.h", 80 "$blink_modules_output_dir/EventModulesNames.h",
86 ] 81 ]
87 deps = [ 82 deps = make_core_generated_deps + [ "//third_party/WebKit/Source/bindings/modu les:modules_bindings_generated_event_interfaces" ]
88 "//third_party/WebKit/Source/bindings/modules:modules_bindings_generated_eve nt_interfaces",
89 ]
90 } 83 }
91 84
92 # GYP version: EventTargetModulesNames action in bindings_modules_generated 85 make_names("event_target_modules_names") {
93 make_names("bindings_modules_generated_event_target_modules_names") { 86 visibility = [ ":*" ]
94 in_files = [ "../../modules/EventTargetModulesFactory.in" ] 87 in_files = [ "../../modules/EventTargetModulesFactory.in" ]
95 outputs = [ 88 outputs = [
96 "$blink_modules_output_dir/EventTargetModulesNames.cpp", 89 "$blink_modules_output_dir/EventTargetModulesNames.cpp",
97 "$blink_modules_output_dir/EventTargetModulesNames.h", 90 "$blink_modules_output_dir/EventTargetModulesNames.h",
98 ] 91 ]
99 } 92 }
100 93
101 # ------------------------------------------------------------------------------ 94 # ------------------------------------------------------------------------------
102 95
103 # In GYP, paths needed to be passed separately for static and generated files, 96 # In GYP, paths needed to be passed separately for static and generated files,
(...skipping 10 matching lines...) Expand all
114 interfaces_info_file = 107 interfaces_info_file =
115 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle" 108 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle"
116 component_info_file = 109 component_info_file =
117 "$bindings_modules_output_dir/ComponentInfoModules.pickle" 110 "$bindings_modules_output_dir/ComponentInfoModules.pickle"
118 deps = [ 111 deps = [
119 ":modules_core_global_constructors_idls", 112 ":modules_core_global_constructors_idls",
120 ":modules_global_constructors_idls", 113 ":modules_global_constructors_idls",
121 ] 114 ]
122 } 115 }
123 116
124 # GYP version: Source/bindings/modules/generated.gyp:interfaces_info
125 action("interfaces_info") { 117 action("interfaces_info") {
126 script = "$bindings_scripts_dir/compute_interfaces_info_overall.py" 118 script = "$bindings_scripts_dir/compute_interfaces_info_overall.py"
127 119
128 inputs = [ 120 inputs = [
129 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", 121 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle",
130 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle", 122 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle",
131 ] 123 ]
132 outputs = [ 124 outputs = [
133 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", 125 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle",
134 ] 126 ]
135 127
136 args = [ 128 args = [
137 "--write-file-only-if-changed=1", 129 "--write-file-only-if-changed=1",
138 "--", 130 "--",
139 rebase_path("$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", 131 rebase_path("$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle",
140 root_build_dir), 132 root_build_dir),
141 rebase_path( 133 rebase_path(
142 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle", 134 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle",
143 root_build_dir), 135 root_build_dir),
144 rebase_path("$bindings_modules_output_dir/InterfacesInfoOverall.pickle", 136 rebase_path("$bindings_modules_output_dir/InterfacesInfoOverall.pickle",
145 root_build_dir), 137 root_build_dir),
146 ] 138 ]
147 139
148 public_deps = [ 140 public_deps = [
149 ":interfaces_info_individual_modules", 141 ":interfaces_info_individual_modules",
150 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", 142 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core",
151 ] 143 ]
152 } 144 }
153 145
154 # GYP version: Source/bindings/modules/generated.gyp:modules_global_objects
155 compute_global_objects("modules_global_objects") { 146 compute_global_objects("modules_global_objects") {
156 sources = modules_idl_files 147 sources = modules_idl_files
157 sources_generated = [ "$bindings_core_output_dir/GlobalObjectsCore.pickle" ] 148 sources_generated = [ "$bindings_core_output_dir/GlobalObjectsCore.pickle" ]
158 output_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle" 149 output_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle"
159 deps = [ 150 deps = [
160 "//third_party/WebKit/Source/bindings/core:core_global_objects", 151 "//third_party/WebKit/Source/bindings/core:core_global_objects",
161 ] 152 ]
162 } 153 }
163 154
164 # GYP version: Source/bindings/modules/generated.gyp:modules_core_global_constru ctors_idls
165 generate_global_constructors("modules_core_global_constructors_idls") { 155 generate_global_constructors("modules_core_global_constructors_idls") {
166 sources = core_idl_files + core_idl_with_modules_dependency_files 156 sources = core_idl_files + core_idl_with_modules_dependency_files
167 global_objects_file = 157 global_objects_file =
168 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" 158 "$bindings_modules_output_dir/GlobalObjectsModules.pickle"
169 interfaces = modules_core_global_constructors_original_interfaces 159 interfaces = modules_core_global_constructors_original_interfaces
170 component = "Core" 160 component = "Core"
171 output_dir = blink_modules_output_dir 161 output_dir = blink_modules_output_dir
172 deps = [ 162 deps = [
173 ":modules_global_objects", 163 ":modules_global_objects",
174 ] 164 ]
175 } 165 }
176 166
177 # GYP version: Source/bindings/modules/generated.gyp:modules_global_constructors _idls
178 generate_global_constructors("modules_global_constructors_idls") { 167 generate_global_constructors("modules_global_constructors_idls") {
179 sources = modules_idl_files 168 sources = modules_idl_files
180 global_objects_file = 169 global_objects_file =
181 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" 170 "$bindings_modules_output_dir/GlobalObjectsModules.pickle"
182 interfaces = modules_global_constructors_original_interfaces 171 interfaces = modules_global_constructors_original_interfaces
183 component = "Modules" 172 component = "Modules"
184 output_dir = blink_modules_output_dir 173 output_dir = blink_modules_output_dir
185 deps = [ 174 deps = [
186 ":modules_global_objects", 175 ":modules_global_objects",
187 ] 176 ]
188 } 177 }
178
179 # Compile the sources produced above. This will get linked into "modules".
180 source_set("generated") {
181 visibility = [ "//third_party/WebKit/Source/modules" ]
182
183 sources = get_target_outputs(":event_modules") +
184 get_target_outputs(":event_modules_names") +
185 get_target_outputs(":event_target_modules_names")
186
187 configs += [
188 "//third_party/WebKit/Source:config",
189 "//third_party/WebKit/Source/modules:modules_implementation",
190 "//third_party/WebKit/Source:non_test_config",
191 "//third_party/WebKit/Source:inside_blink",
192 ]
193
194 deps = [
195 ":event_modules",
196 ":event_modules_names",
197 ":event_target_modules_names",
198 "//third_party/WebKit/Source/core",
199 "//third_party/WebKit/Source/wtf",
200 "//v8",
201 ]
202 }
OLDNEW
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/scripts.gni » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698