Meta+CMake: Remove unused CMake functions and features

Goodbye, serenity_components and Jakt.
This commit is contained in:
Andrew Kaster 2024-06-04 15:03:02 -06:00 committed by Tim Flynn
commit 90af26e309
Notes: sideshowbarker 2024-07-17 00:16:31 +09:00
18 changed files with 37 additions and 331 deletions

View file

@ -1,5 +1,4 @@
include(${CMAKE_CURRENT_LIST_DIR}/serenity_components.cmake)
include(${CMAKE_CURRENT_LIST_DIR}/code_generators.cmake)
function(serenity_set_implicit_links target_name)
@ -149,20 +148,6 @@ function(serenity_app target_name)
endif()
endfunction()
function(embed_resource target section file)
get_filename_component(asm_file "${file}" NAME)
set(asm_file "${CMAKE_CURRENT_BINARY_DIR}/${target}-${section}.s")
get_filename_component(input_file "${file}" ABSOLUTE)
file(SIZE "${input_file}" file_size)
add_custom_command(
OUTPUT "${asm_file}"
COMMAND "${SerenityOS_SOURCE_DIR}/Meta/generate-embedded-resource-assembly.sh" "${asm_file}" "${section}" "${input_file}" "${file_size}"
DEPENDS "${input_file}" "${SerenityOS_SOURCE_DIR}/Meta/generate-embedded-resource-assembly.sh"
COMMENT "Generating ${asm_file}"
)
target_sources("${target}" PRIVATE "${asm_file}")
endfunction()
function(remove_path_if_version_changed version version_file cache_path)
set(version_differs YES)