| OLD | NEW |
| 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 |
| 9 group("bindings_modules_generated") { | 12 group("bindings_modules_generated") { |
| 10 visibility = [ "//third_party/WebKit/*" ] | |
| 11 public_deps = [ | 13 public_deps = [ |
| 12 ":event_modules", | 14 ":bindings_modules_generated_event_modules_factory", |
| 13 ":event_modules_names", | 15 ":bindings_modules_generated_event_modules_names", |
| 14 ":event_target_modules_names", | 16 ":bindings_modules_generated_event_target_modules_names", |
| 15 ":modules_bindings_generated_event_interfaces", | 17 ":modules_bindings_generated_event_interfaces", |
| 16 ] | 18 ] |
| 17 } | 19 } |
| 18 | 20 |
| 21 # GYP version: event_interfaces action in bindings_modules_generated |
| 19 generate_event_interfaces("modules_bindings_generated_event_interfaces") { | 22 generate_event_interfaces("modules_bindings_generated_event_interfaces") { |
| 20 sources = [ | 23 sources = [ |
| 21 "//third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.idl
", | 24 "//third_party/WebKit/Source/modules/app_banner/BeforeInstallPromptEvent.idl
", |
| 22 "//third_party/WebKit/Source/modules/background_sync/SyncEvent.idl", | 25 "//third_party/WebKit/Source/modules/background_sync/SyncEvent.idl", |
| 23 "//third_party/WebKit/Source/modules/device_light/DeviceLightEvent.idl", | 26 "//third_party/WebKit/Source/modules/device_light/DeviceLightEvent.idl", |
| 24 "//third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.id
l", | 27 "//third_party/WebKit/Source/modules/device_orientation/DeviceMotionEvent.id
l", |
| 25 "//third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEve
nt.idl", | 28 "//third_party/WebKit/Source/modules/device_orientation/DeviceOrientationEve
nt.idl", |
| 26 "//third_party/WebKit/Source/modules/encryptedmedia/MediaEncryptedEvent.idl"
, | 29 "//third_party/WebKit/Source/modules/encryptedmedia/MediaEncryptedEvent.idl"
, |
| 27 "//third_party/WebKit/Source/modules/encryptedmedia/MediaKeyMessageEvent.idl
", | 30 "//third_party/WebKit/Source/modules/encryptedmedia/MediaKeyMessageEvent.idl
", |
| 28 "//third_party/WebKit/Source/modules/gamepad/GamepadEvent.idl", | 31 "//third_party/WebKit/Source/modules/gamepad/GamepadEvent.idl", |
| (...skipping 26 matching lines...) Expand all Loading... |
| 55 "//third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.id
l", | 58 "//third_party/WebKit/Source/modules/webaudio/OfflineAudioCompletionEvent.id
l", |
| 56 "//third_party/WebKit/Source/modules/webgl/WebGLContextEvent.idl", | 59 "//third_party/WebKit/Source/modules/webgl/WebGLContextEvent.idl", |
| 57 "//third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.idl", | 60 "//third_party/WebKit/Source/modules/webmidi/MIDIConnectionEvent.idl", |
| 58 "//third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.idl", | 61 "//third_party/WebKit/Source/modules/webmidi/MIDIMessageEvent.idl", |
| 59 "//third_party/WebKit/Source/modules/websockets/CloseEvent.idl", | 62 "//third_party/WebKit/Source/modules/websockets/CloseEvent.idl", |
| 60 ] | 63 ] |
| 61 output_file = "EventModulesInterfaces.in" | 64 output_file = "EventModulesInterfaces.in" |
| 62 suffix = "Modules" | 65 suffix = "Modules" |
| 63 } | 66 } |
| 64 | 67 |
| 65 make_event_factory("event_modules") { | 68 # GYP version: EventModulesFactory action in bindings_modules_generated |
| 66 visibility = [ ":*" ] | 69 make_event_factory("bindings_modules_generated_event_modules_factory") { |
| 67 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ] | 70 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ] |
| 68 outputs = [ | 71 outputs = [ |
| 69 "$blink_modules_output_dir/EventModules.cpp", | 72 "$blink_modules_output_dir/EventModules.cpp", |
| 70 "$blink_modules_output_dir/EventModulesHeaders.h", | 73 "$blink_modules_output_dir/EventModulesHeaders.h", |
| 71 ] | 74 ] |
| 72 deps = make_core_generated_deps + [ "//third_party/WebKit/Source/bindings/modu
les:modules_bindings_generated_event_interfaces" ] | 75 deps = [ |
| 76 "//third_party/WebKit/Source/bindings/modules:modules_bindings_generated_eve
nt_interfaces", |
| 77 ] |
| 73 } | 78 } |
| 74 | 79 |
| 75 make_names("event_modules_names") { | 80 # GYP version: EventModulesNames action in bindings_modules_generated |
| 76 visibility = [ ":*" ] | 81 make_names("bindings_modules_generated_event_modules_names") { |
| 77 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ] | 82 in_files = [ "$root_gen_dir/blink/EventModulesInterfaces.in" ] |
| 78 outputs = [ | 83 outputs = [ |
| 79 "$blink_modules_output_dir/EventModulesNames.cpp", | 84 "$blink_modules_output_dir/EventModulesNames.cpp", |
| 80 "$blink_modules_output_dir/EventModulesNames.h", | 85 "$blink_modules_output_dir/EventModulesNames.h", |
| 81 ] | 86 ] |
| 82 deps = make_core_generated_deps + [ "//third_party/WebKit/Source/bindings/modu
les:modules_bindings_generated_event_interfaces" ] | 87 deps = [ |
| 88 "//third_party/WebKit/Source/bindings/modules:modules_bindings_generated_eve
nt_interfaces", |
| 89 ] |
| 83 } | 90 } |
| 84 | 91 |
| 85 make_names("event_target_modules_names") { | 92 # GYP version: EventTargetModulesNames action in bindings_modules_generated |
| 86 visibility = [ ":*" ] | 93 make_names("bindings_modules_generated_event_target_modules_names") { |
| 87 in_files = [ "../../modules/EventTargetModulesFactory.in" ] | 94 in_files = [ "../../modules/EventTargetModulesFactory.in" ] |
| 88 outputs = [ | 95 outputs = [ |
| 89 "$blink_modules_output_dir/EventTargetModulesNames.cpp", | 96 "$blink_modules_output_dir/EventTargetModulesNames.cpp", |
| 90 "$blink_modules_output_dir/EventTargetModulesNames.h", | 97 "$blink_modules_output_dir/EventTargetModulesNames.h", |
| 91 ] | 98 ] |
| 92 } | 99 } |
| 93 | 100 |
| 94 # ------------------------------------------------------------------------------ | 101 # ------------------------------------------------------------------------------ |
| 95 | 102 |
| 96 # In GYP, paths needed to be passed separately for static and generated files, | 103 # In GYP, paths needed to be passed separately for static and generated files, |
| (...skipping 10 matching lines...) Expand all Loading... |
| 107 interfaces_info_file = | 114 interfaces_info_file = |
| 108 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle" | 115 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle" |
| 109 component_info_file = | 116 component_info_file = |
| 110 "$bindings_modules_output_dir/ComponentInfoModules.pickle" | 117 "$bindings_modules_output_dir/ComponentInfoModules.pickle" |
| 111 deps = [ | 118 deps = [ |
| 112 ":modules_core_global_constructors_idls", | 119 ":modules_core_global_constructors_idls", |
| 113 ":modules_global_constructors_idls", | 120 ":modules_global_constructors_idls", |
| 114 ] | 121 ] |
| 115 } | 122 } |
| 116 | 123 |
| 124 # GYP version: Source/bindings/modules/generated.gyp:interfaces_info |
| 117 action("interfaces_info") { | 125 action("interfaces_info") { |
| 118 script = "$bindings_scripts_dir/compute_interfaces_info_overall.py" | 126 script = "$bindings_scripts_dir/compute_interfaces_info_overall.py" |
| 119 | 127 |
| 120 inputs = [ | 128 inputs = [ |
| 121 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", | 129 "$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", |
| 122 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle", | 130 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle", |
| 123 ] | 131 ] |
| 124 outputs = [ | 132 outputs = [ |
| 125 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", | 133 "$bindings_modules_output_dir/InterfacesInfoOverall.pickle", |
| 126 ] | 134 ] |
| 127 | 135 |
| 128 args = [ | 136 args = [ |
| 129 "--write-file-only-if-changed=1", | 137 "--write-file-only-if-changed=1", |
| 130 "--", | 138 "--", |
| 131 rebase_path("$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", | 139 rebase_path("$bindings_core_output_dir/InterfacesInfoCoreIndividual.pickle", |
| 132 root_build_dir), | 140 root_build_dir), |
| 133 rebase_path( | 141 rebase_path( |
| 134 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle", | 142 "$bindings_modules_output_dir/InterfacesInfoOverallIndividual.pickle", |
| 135 root_build_dir), | 143 root_build_dir), |
| 136 rebase_path("$bindings_modules_output_dir/InterfacesInfoOverall.pickle", | 144 rebase_path("$bindings_modules_output_dir/InterfacesInfoOverall.pickle", |
| 137 root_build_dir), | 145 root_build_dir), |
| 138 ] | 146 ] |
| 139 | 147 |
| 140 public_deps = [ | 148 public_deps = [ |
| 141 ":interfaces_info_individual_modules", | 149 ":interfaces_info_individual_modules", |
| 142 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", | 150 "//third_party/WebKit/Source/bindings/core:interfaces_info_individual_core", |
| 143 ] | 151 ] |
| 144 } | 152 } |
| 145 | 153 |
| 154 # GYP version: Source/bindings/modules/generated.gyp:modules_global_objects |
| 146 compute_global_objects("modules_global_objects") { | 155 compute_global_objects("modules_global_objects") { |
| 147 sources = modules_idl_files | 156 sources = modules_idl_files |
| 148 sources_generated = [ "$bindings_core_output_dir/GlobalObjectsCore.pickle" ] | 157 sources_generated = [ "$bindings_core_output_dir/GlobalObjectsCore.pickle" ] |
| 149 output_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle" | 158 output_file = "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| 150 deps = [ | 159 deps = [ |
| 151 "//third_party/WebKit/Source/bindings/core:core_global_objects", | 160 "//third_party/WebKit/Source/bindings/core:core_global_objects", |
| 152 ] | 161 ] |
| 153 } | 162 } |
| 154 | 163 |
| 164 # GYP version: Source/bindings/modules/generated.gyp:modules_core_global_constru
ctors_idls |
| 155 generate_global_constructors("modules_core_global_constructors_idls") { | 165 generate_global_constructors("modules_core_global_constructors_idls") { |
| 156 sources = core_idl_files + core_idl_with_modules_dependency_files | 166 sources = core_idl_files + core_idl_with_modules_dependency_files |
| 157 global_objects_file = | 167 global_objects_file = |
| 158 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" | 168 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| 159 interfaces = modules_core_global_constructors_original_interfaces | 169 interfaces = modules_core_global_constructors_original_interfaces |
| 160 component = "Core" | 170 component = "Core" |
| 161 output_dir = blink_modules_output_dir | 171 output_dir = blink_modules_output_dir |
| 162 deps = [ | 172 deps = [ |
| 163 ":modules_global_objects", | 173 ":modules_global_objects", |
| 164 ] | 174 ] |
| 165 } | 175 } |
| 166 | 176 |
| 177 # GYP version: Source/bindings/modules/generated.gyp:modules_global_constructors
_idls |
| 167 generate_global_constructors("modules_global_constructors_idls") { | 178 generate_global_constructors("modules_global_constructors_idls") { |
| 168 sources = modules_idl_files | 179 sources = modules_idl_files |
| 169 global_objects_file = | 180 global_objects_file = |
| 170 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" | 181 "$bindings_modules_output_dir/GlobalObjectsModules.pickle" |
| 171 interfaces = modules_global_constructors_original_interfaces | 182 interfaces = modules_global_constructors_original_interfaces |
| 172 component = "Modules" | 183 component = "Modules" |
| 173 output_dir = blink_modules_output_dir | 184 output_dir = blink_modules_output_dir |
| 174 deps = [ | 185 deps = [ |
| 175 ":modules_global_objects", | 186 ":modules_global_objects", |
| 176 ] | 187 ] |
| 177 } | 188 } |
| 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 } | |
| OLD | NEW |