summaryrefslogtreecommitdiff
path: root/Userland
diff options
context:
space:
mode:
authorAli Mohammad Pur <ali.mpfard@gmail.com>2021-05-20 14:14:23 +0430
committerLinus Groh <mail@linusgroh.de>2021-05-20 12:11:27 +0100
commitc6b12841eef263239464486b35add9d3833c84b7 (patch)
tree56a380739d6569b67878804907bb49cf35a07352 /Userland
parenta42bf0470181277d676dd0e99a577e727ea649db (diff)
downloadserenity-c6b12841eef263239464486b35add9d3833c84b7.zip
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.
Diffstat (limited to 'Userland')
-rw-r--r--Userland/Libraries/LibVT/CMakeLists.txt8
1 files changed, 5 insertions, 3 deletions
diff --git a/Userland/Libraries/LibVT/CMakeLists.txt b/Userland/Libraries/LibVT/CMakeLists.txt
index a5e3d6d729..57765612bb 100644
--- a/Userland/Libraries/LibVT/CMakeLists.txt
+++ b/Userland/Libraries/LibVT/CMakeLists.txt
@@ -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)