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

Meta: Make generate_state_machine() generate a proper target

And use GENERATED_SOURCES (or add_dependencies) to make LibVT depend on
that target.
Fixes a FIXME.
This commit is contained in:
Ali Mohammad Pur 2021-05-20 14:14:23 +04:30 committed by Linus Groh
parent a42bf04701
commit c6b12841ee
3 changed files with 24 additions and 13 deletions

View file

@ -1,6 +1,3 @@
# FIXME: this assumes that EscapeSequenceStateMachine.h has been
# already generated when the kernel was built. This will probably
# mess builds up later on.
set(SOURCES
Line.cpp
Terminal.cpp
@ -8,5 +5,10 @@ set(SOURCES
EscapeSequenceParser.cpp
)
set(GENERATED_SOURCES
EscapeSequenceStateMachine.h
)
generate_state_machine(StateMachine.txt EscapeSequenceStateMachine.h)
serenity_lib(LibVT vt)
target_link_libraries(LibVT LibC LibCore LibGUI LibGfx LibDesktop)