mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +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
|
@ -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)
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue