1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 13:57:36 +00:00

LibWeb: Use the LibWeb source directory as the IDL #import base path

This allows us to include IDL files from other base LibWeb directories
wihout using relative `../foo.idl` references.
This commit is contained in:
Idan Horowitz 2021-10-01 18:01:20 +03:00 committed by Andreas Kling
parent bd648d082c
commit 7f551d7f6a
3 changed files with 13 additions and 7 deletions

View file

@ -323,7 +323,7 @@ function(libweb_js_wrapper class)
list(GET BINDINGS_TYPES ${iter} bindings_type)
add_custom_command(
OUTPUT "${bindings_src}"
COMMAND "$<TARGET_FILE:Lagom::WrapperGenerator>" "--${bindings_type}" "${CMAKE_CURRENT_SOURCE_DIR}/${class}.idl" > "${bindings_src}.tmp"
COMMAND "$<TARGET_FILE:Lagom::WrapperGenerator>" "--${bindings_type}" "${CMAKE_CURRENT_SOURCE_DIR}/${class}.idl" "${CMAKE_CURRENT_SOURCE_DIR}/" > "${bindings_src}.tmp"
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${bindings_src}.tmp" "${bindings_src}"
COMMAND "${CMAKE_COMMAND}" -E remove "${bindings_src}.tmp"
VERBATIM