LibWeb: Don't build iterator wrapper for NO_INSTANCE classes
This commit is contained in:
parent
647ac1bdba
commit
a8a42b4432
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/a8a42b4432 Pull-request: https://github.com/SerenityOS/serenity/pull/14816 Reviewed-by: https://github.com/ADKaster Reviewed-by: https://github.com/linusg ✅
1 changed files with 10 additions and 4 deletions
|
@ -136,15 +136,21 @@ function (generate_js_wrappers target)
|
|||
|
||||
# FIXME: Instead of requiring a manual declaration of iterable wrappers, we should ask WrapperGenerator if it's iterable
|
||||
if(LIBWEB_WRAPPER_ITERABLE)
|
||||
if(NOT LIBWEB_WRAPPER_NO_INSTANCE)
|
||||
list(APPEND BINDINGS_SOURCES
|
||||
"${LIBWEB_OUTPUT_FOLDER}Bindings/${basename}IteratorWrapper.h"
|
||||
"${LIBWEB_OUTPUT_FOLDER}Bindings/${basename}IteratorWrapper.cpp"
|
||||
)
|
||||
list(APPEND BINDINGS_TYPES
|
||||
iterator-header
|
||||
iterator-implementation
|
||||
)
|
||||
endif()
|
||||
list(APPEND BINDINGS_SOURCES
|
||||
"${LIBWEB_OUTPUT_FOLDER}Bindings/${basename}IteratorWrapper.h"
|
||||
"${LIBWEB_OUTPUT_FOLDER}Bindings/${basename}IteratorWrapper.cpp"
|
||||
"${LIBWEB_OUTPUT_FOLDER}Bindings/${basename}IteratorPrototype.h"
|
||||
"${LIBWEB_OUTPUT_FOLDER}Bindings/${basename}IteratorPrototype.cpp"
|
||||
)
|
||||
list(APPEND BINDINGS_TYPES
|
||||
iterator-header
|
||||
iterator-implementation
|
||||
iterator-prototype-header
|
||||
iterator-prototype-implementation
|
||||
)
|
||||
|
|
Loading…
Add table
Reference in a new issue