mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-27 10:29:23 +00:00
We had weakly defined a couple utilities needed by Core::DateTime when LibCore was unable to depend on LibTimeZone. This is no longer the case.
18 lines
715 B
CMake
18 lines
715 B
CMake
include(${SerenityOS_SOURCE_DIR}/Meta/CMake/time_zone_data.cmake)
|
|
|
|
set(SOURCES
|
|
${TIME_ZONE_DATA_SOURCES}
|
|
TimeZone.cpp
|
|
)
|
|
set(GENERATED_SOURCES ${CURRENT_LIB_GENERATED})
|
|
|
|
add_library(LibTimeZone OBJECT ${SOURCES})
|
|
serenity_generated_sources(LibTimeZone)
|
|
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
|
|
|
|
# NOTE: These objects are used by the DynamicLoader, which is always built without coverage instrumentation.
|
|
# We could allow them to be instrumented for coverage if DynamicLoader built its own copy
|
|
target_link_libraries(LibTimeZone PRIVATE NoCoverage)
|
|
if (SERENITYOS)
|
|
add_dependencies(LibTimeZone install_libc_headers)
|
|
endif()
|