Building custom IDL in blink/modules Failed

1 view
Skip to first unread message

大天鹅呆头呆毛

unread,
11:39 AM (4 hours ago) 11:39 AM
to Chromium-dev
Hi All,

I'm currently developing a web IDL interface.

1 - I created a very simple file named `chromium\src\third_party\blink\renderer\modules\localtube\binary_observer.idl` with the following content:

[ Exposed=Window
] interface BinaryObserver {
readonly attribute DOMString xxxx;
}

2 - In the `static_idl_files_in_modules` section of `chromium\src\third_party\blink\renderer\bindings\idl_in_modules.gni`, I added the line `"//third_party/blink/renderer/modules/localtube/binary_observer.idl"` to tell GN to generate bindings for this IDL.

3 - In the `chromium\src\third_party\blink\renderer\bindings\generated_in_modules.gni` file, two lines of code were added to `generated_interface_sources_in_modules` as follows, instructing GN to generate the corresponding V8 glue code:

"$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_binary_observer.cc",

"$root_gen_dir/third_party/blink/renderer/bindings/modules/v8/v8_binary_observer.h",

However, the following error occurs during compilation:

image.png

In short, the glue code v8_binary_observer.cc that I specified should be generated was not generated correctly. How should I handle this?
Reply all
Reply to author
Forward
0 new messages