mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 12:19:54 +00:00
Meta+CMake: Remove unused CMake functions and features
Goodbye, serenity_components and Jakt.
This commit is contained in:
parent
ec6072e7cd
commit
90af26e309
Notes:
sideshowbarker
2024-07-17 00:16:31 +09:00
Author: https://github.com/ADKaster
Commit: 90af26e309
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/46
Reviewed-by: https://github.com/trflynn89 ✅
18 changed files with 37 additions and 331 deletions
|
@ -23,12 +23,6 @@ function(embed_as_string_view name source_file output source_variable_name)
|
|||
add_dependencies(all_generated "generate_${name}")
|
||||
endfunction()
|
||||
|
||||
function(stringify_gml source output string_name)
|
||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||
get_filename_component(output_name ${output} NAME)
|
||||
embed_as_string_view(${output_name} ${source} ${output} ${string_name})
|
||||
endfunction()
|
||||
|
||||
function(compile_ipc source output)
|
||||
if (NOT IS_ABSOLUTE ${source})
|
||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||
|
@ -50,25 +44,3 @@ function(compile_ipc source output)
|
|||
install(FILES ${CMAKE_CURRENT_BINARY_DIR}/${output} DESTINATION "${CMAKE_INSTALL_INCLUDEDIR}/${current_source_dir_relative}" OPTIONAL)
|
||||
endfunction()
|
||||
|
||||
function(generate_state_machine source header)
|
||||
get_filename_component(header_name ${header} NAME)
|
||||
set(target_name "generate_${header_name}")
|
||||
# Note: This function is called twice with the same header, once in the kernel
|
||||
# and once in Userland/LibVT, this check makes sure that only one target
|
||||
# is generated for that header.
|
||||
if(NOT TARGET ${target_name})
|
||||
set(source ${CMAKE_CURRENT_SOURCE_DIR}/${source})
|
||||
set(output ${CMAKE_CURRENT_BINARY_DIR}/${header})
|
||||
add_custom_command(
|
||||
OUTPUT ${output}
|
||||
COMMAND $<TARGET_FILE:Lagom::StateMachineGenerator> ${source} -o ${output}.tmp
|
||||
COMMAND "${CMAKE_COMMAND}" -E copy_if_different ${output}.tmp ${output}
|
||||
COMMAND "${CMAKE_COMMAND}" -E remove ${output}.tmp
|
||||
VERBATIM
|
||||
DEPENDS Lagom::StateMachineGenerator
|
||||
MAIN_DEPENDENCY ${source}
|
||||
)
|
||||
add_custom_target(${target_name} DEPENDS ${output})
|
||||
add_dependencies(all_generated ${target_name})
|
||||
endif()
|
||||
endfunction()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue