mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 23:37:35 +00:00
BindingsGenerator: Write generated code to disk instead of stdout
This commit adds the `-o` option for specifying an output path to BindingsGenerator.
This commit is contained in:
parent
30d3f2789e
commit
8d1ad592a1
4 changed files with 31 additions and 46 deletions
|
@ -113,7 +113,7 @@ function (generate_js_bindings target)
|
|||
list(TRANSFORM include_paths PREPEND -i)
|
||||
add_custom_command(
|
||||
OUTPUT "${bindings_src}"
|
||||
COMMAND "$<TARGET_FILE:Lagom::BindingsGenerator>" "--${bindings_type}" ${include_paths} "${LIBWEB_INPUT_FOLDER}/${class}.idl" "${LIBWEB_INPUT_FOLDER}" > "${bindings_src}.tmp"
|
||||
COMMAND "$<TARGET_FILE:Lagom::BindingsGenerator>" "--${bindings_type}" -o "${bindings_src}.tmp" ${include_paths} "${LIBWEB_INPUT_FOLDER}/${class}.idl" "${LIBWEB_INPUT_FOLDER}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different "${bindings_src}.tmp" "${bindings_src}"
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove "${bindings_src}.tmp"
|
||||
VERBATIM
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue