1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:27:35 +00:00

LibWeb: Add code generator for CSS transform functions

This first step just generates the TransformFunction enum, but more will
follow.
This commit is contained in:
Sam Atkins 2022-04-17 15:33:50 +01:00 committed by Andreas Kling
parent 807101e394
commit 5f3498d50f
4 changed files with 139 additions and 0 deletions

View file

@ -74,6 +74,7 @@ set(SOURCES
CSS/Supports.cpp
CSS/SyntaxHighlighter/SyntaxHighlighter.cpp
CSS/Time.cpp
CSS/TransformFunctions.cpp
CSS/ValueID.cpp
CSS/ValueID.h
Cookie/ParsedCookie.cpp
@ -647,6 +648,16 @@ invoke_generator(
arguments -j "${CMAKE_CURRENT_SOURCE_DIR}/CSS/Properties.json"
)
invoke_generator(
"TransformFunctions"
Lagom::GenerateCSSTransformFunctions
"${CMAKE_CURRENT_SOURCE_DIR}/CSS/TransformFunctions.json"
""
"CSS/TransformFunctions.h"
"CSS/TransformFunctions.cpp"
arguments -j "${CMAKE_CURRENT_SOURCE_DIR}/CSS/TransformFunctions.json"
)
invoke_generator(
"ValueID"
Lagom::GenerateCSSValueID