mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 13:49:16 +00:00
Meta: Remove serenity_lib_static() CMake helper function
Its one user (LibMain) can now just specify a STATIC library type in an invocation of serenity_lib().
This commit is contained in:
parent
d1e2d2a4df
commit
4c08a1e0c0
Notes:
sideshowbarker
2024-07-17 06:51:10 +09:00
Author: https://github.com/trflynn89
Commit: 4c08a1e0c0
Pull-request: https://github.com/SerenityOS/serenity/pull/23717
Issue: https://github.com/SerenityOS/serenity/issues/23625
Reviewed-by: https://github.com/ADKaster ✅
3 changed files with 1 additions and 19 deletions
|
@ -71,20 +71,6 @@ if (NOT COMMAND serenity_lib)
|
|||
endfunction()
|
||||
endif()
|
||||
|
||||
if (NOT COMMAND serenity_lib_static)
|
||||
function(serenity_lib_static target_name fs_name)
|
||||
serenity_install_headers(${target_name})
|
||||
serenity_install_sources()
|
||||
add_library(${target_name} STATIC ${SOURCES} ${GENERATED_SOURCES})
|
||||
set_target_properties(${target_name} PROPERTIES EXCLUDE_FROM_ALL TRUE)
|
||||
set_target_properties(${target_name} PROPERTIES VERSION "serenity")
|
||||
install(TARGETS ${target_name} DESTINATION ${CMAKE_INSTALL_LIBDIR} OPTIONAL)
|
||||
set_target_properties(${target_name} PROPERTIES OUTPUT_NAME ${fs_name})
|
||||
serenity_generated_sources(${target_name})
|
||||
serenity_set_implicit_links(${target_name})
|
||||
endfunction()
|
||||
endif()
|
||||
|
||||
function(serenity_libc target_name fs_name)
|
||||
serenity_install_headers("")
|
||||
serenity_install_sources()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue