mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:57:45 +00:00
LibTimeZone: Parse ZONE entries from the TZDB and generate their names
This commit is contained in:
parent
41f4a5050c
commit
9253e695d1
5 changed files with 260 additions and 4 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue