summaryrefslogtreecommitdiff
path: root/Meta/CMake
diff options
context:
space:
mode:
Diffstat (limited to 'Meta/CMake')
-rw-r--r--Meta/CMake/all_the_debug_macros.cmake1
-rw-r--r--Meta/CMake/utils.cmake12
2 files changed, 13 insertions, 0 deletions
diff --git a/Meta/CMake/all_the_debug_macros.cmake b/Meta/CMake/all_the_debug_macros.cmake
index 5e729b1168..644dab935d 100644
--- a/Meta/CMake/all_the_debug_macros.cmake
+++ b/Meta/CMake/all_the_debug_macros.cmake
@@ -159,6 +159,7 @@ set(STORAGE_DEVICE_DEBUG ON)
set(TCP_DEBUG ON)
set(TERMCAP_DEBUG ON)
set(TERMINAL_DEBUG ON)
+set(ESCAPE_SEQUENCE_DEBUG ON)
set(UCI_DEBUG ON)
set(UDP_DEBUG ON)
set(UHCI_VERBOSE_DEBUG ON)
diff --git a/Meta/CMake/utils.cmake b/Meta/CMake/utils.cmake
index 396375bfbd..150d169f6c 100644
--- a/Meta/CMake/utils.cmake
+++ b/Meta/CMake/utils.cmake
@@ -154,3 +154,15 @@ function(embed_resource target section file)
)
target_sources("${target}" PRIVATE "${asm_file}")
endfunction()
+
+function(generate_state_machine source header)
+ set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
+ add_custom_command(
+ OUTPUT ${header}
+ COMMAND ${write_if_different} ${header} ${CMAKE_BINARY_DIR}/Userland/DevTools/StateMachineGenerator/StateMachineGenerator ${source} > ${header}
+ VERBATIM
+ DEPENDS StateMachineGenerator
+ MAIN_DEPENDENCY ${source}
+ )
+ get_filename_component(output_name ${header} NAME)
+endfunction()