mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 07:30:19 +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: https://github.com/SerenityOS/serenity/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()
|
||||
|
|
|
@ -315,10 +315,6 @@ function(serenity_lib name fs_name)
|
|||
lagom_lib(${name} ${fs_name} LIBRARY_TYPE ${SERENITY_LIB_TYPE} SOURCES ${SOURCES} ${GENERATED_SOURCES})
|
||||
endfunction()
|
||||
|
||||
function(serenity_lib_static name fs_name)
|
||||
lagom_lib(${name} ${fs_name} LIBRARY_TYPE STATIC SOURCES ${SOURCES} ${GENERATED_SOURCES})
|
||||
endfunction()
|
||||
|
||||
function(serenity_install_headers dir)
|
||||
endfunction()
|
||||
|
||||
|
|
|
@ -2,4 +2,4 @@ set(SOURCES
|
|||
Main.cpp
|
||||
)
|
||||
|
||||
serenity_lib_static(LibMain main)
|
||||
serenity_lib(LibMain main TYPE STATIC)
|
||||
|
|
Loading…
Reference in a new issue