Regenerate all WebIDLs when one of them changes

WebIDL files have dependencies between each other, but cmake doesn't have any
information about them. This can cause it to not update all the changed bindings
when switching branches.
This commit is contained in:
Martina Kollarova 2018-03-06 14:55:53 +02:00
parent 226d9a5b0e
commit 25b95aa1a1

View file

@ -106,7 +106,7 @@ foreach(binding IN LISTS bindings)
.
Bindings/${binding}Binding
${webidls_src}/${binding}.webidl
DEPENDS Bindings ${bindinggen_deps} ${webidls_src}/${binding}.webidl ParserResults
DEPENDS Bindings ${bindinggen_deps} ${webidls} ParserResults
VERBATIM
)
add_custom_target(${binding} DEPENDS Bindings/${binding}Binding.rs)