1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-28 02:47:34 +00:00

LibTimeZone: Parse ZONE entries from the TZDB and generate their names

This commit is contained in:
Timothy Flynn 2021-12-28 12:53:53 -05:00 committed by Linus Groh
parent 41f4a5050c
commit 9253e695d1
5 changed files with 260 additions and 4 deletions

View file

@ -6,3 +6,15 @@ if (DEFINED TIME_ZONE_DATA_SOURCES)
target_compile_options(LibTimeZoneData PRIVATE -g0 -Os)
target_link_libraries(LibTimeZoneData LibCore)
endif()
set(SOURCES
TimeZone.cpp
)
serenity_lib(LibTimeZone timezone)
target_link_libraries(LibTimeZone LibCore)
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()