mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 11:57:35 +00:00
LibTimeZone: Do not separate the generated data from the main library
This CMakeLists.txt was basically copy-pasted from LibUnicode, where the generated data is separated into its own library. This was to let other libraries / applications decide if they actually want to link the data because it is so large. LibTimeZone's generated data is significantly smaller, so this separation really isn't needed.
This commit is contained in:
parent
b543c3e490
commit
d627367489
1 changed files with 1 additions and 11 deletions
|
@ -1,20 +1,10 @@
|
||||||
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
|
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
|
||||||
|
|
||||||
if (DEFINED TIME_ZONE_DATA_SOURCES)
|
|
||||||
set(SOURCES ${TIME_ZONE_DATA_SOURCES})
|
|
||||||
serenity_lib(LibTimeZoneData timezonedata)
|
|
||||||
target_compile_options(LibTimeZoneData PRIVATE -g0 -Os)
|
|
||||||
target_link_libraries(LibTimeZoneData LibCore)
|
|
||||||
endif()
|
|
||||||
|
|
||||||
set(SOURCES
|
set(SOURCES
|
||||||
TimeZone.cpp
|
TimeZone.cpp
|
||||||
|
${TIME_ZONE_DATA_SOURCES}
|
||||||
)
|
)
|
||||||
|
|
||||||
serenity_lib(LibTimeZone timezone)
|
serenity_lib(LibTimeZone timezone)
|
||||||
target_link_libraries(LibTimeZone LibCore)
|
target_link_libraries(LibTimeZone LibCore)
|
||||||
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
|
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
|
||||||
|
|
||||||
if (DEFINED TIME_ZONE_DATA_SOURCES)
|
|
||||||
target_link_libraries(LibTimeZone LibTimeZoneData)
|
|
||||||
endif()
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue