Meta: Create python version of invoke_generator

This allows for the C++ and Python generators to share the same core
implementation, which will simplify the generator migration process
This commit is contained in:
ayeteadoe 2025-06-24 17:53:19 -07:00 committed by Andrew Kaster
commit 3836d0e219
Notes: github-actions[bot] 2025-06-26 13:59:18 +00:00
4 changed files with 45 additions and 19 deletions

View file

@ -951,7 +951,7 @@ set(SOURCES
compile_ipc(Worker/WebWorkerClient.ipc Worker/WebWorkerClientEndpoint.h)
compile_ipc(Worker/WebWorkerServer.ipc Worker/WebWorkerServerEndpoint.h)
invoke_generator(
invoke_cpp_generator(
"AriaRoles.cpp"
Lagom::GenerateAriaRoles
"${CMAKE_CURRENT_SOURCE_DIR}/ARIA/AriaRoles.json"
@ -964,7 +964,7 @@ generate_css_implementation()
generate_html_implementation()
invoke_generator(
invoke_cpp_generator(
"WebGLRenderingContextImpl.cpp"
Lagom::GenerateWebGLRenderingContext
"${CMAKE_CURRENT_SOURCE_DIR}/WebGL/WebGLRenderingContextBase.idl"
@ -976,7 +976,7 @@ invoke_generator(
dependencies WebGL/WebGLRenderingContextBase.idl WebGL/WebGLRenderingContextOverloads.idl CSS/GeneratedCSSStyleProperties.idl
)
invoke_generator(
invoke_cpp_generator(
"WebGL2RenderingContextImpl.cpp"
Lagom::GenerateWebGLRenderingContext
"${CMAKE_CURRENT_SOURCE_DIR}/WebGL/WebGL2RenderingContextBase.idl"