mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-27 13:11:46 +03:00
350fdf1e43
LibCore currently cannot depend on LibTimeZone directly. All build-time code generators depend on LibCore, so there'd be a circular dependency: LibCore -> LibTimeZone -> GenerateTZData -> LibCore. So to support parsing time zone names and applying their offsets, add a couple of weakly-defined helper functions. These work similar to the way AK::String declares some methods that LibUnicode defines. Any user who wants to parse time zone names (from outside of LibCore itself) can link against LibTimeZone to receive full support.
24 lines
816 B
CMake
24 lines
816 B
CMake
set(TEST_SOURCES
|
|
TestLibCoreArgsParser.cpp
|
|
TestLibCoreDateTime.cpp
|
|
TestLibCoreDeferredInvoke.cpp
|
|
TestLibCoreFilePermissionsMask.cpp
|
|
TestLibCoreFileWatcher.cpp
|
|
TestLibCoreMappedFile.cpp
|
|
TestLibCorePromise.cpp
|
|
TestLibCoreSharedSingleProducerCircularQueue.cpp
|
|
TestLibCoreStream.cpp
|
|
)
|
|
|
|
foreach(source IN LISTS TEST_SOURCES)
|
|
serenity_test("${source}" LibCore)
|
|
endforeach()
|
|
|
|
target_link_libraries(TestLibCoreDateTime PRIVATE LibTimeZone)
|
|
target_link_libraries(TestLibCorePromise PRIVATE LibThreading)
|
|
# NOTE: Required because of the LocalServer tests
|
|
target_link_libraries(TestLibCoreStream PRIVATE LibThreading)
|
|
target_link_libraries(TestLibCoreSharedSingleProducerCircularQueue PRIVATE LibThreading)
|
|
|
|
install(FILES long_lines.txt 10kb.txt small.txt DESTINATION usr/Tests/LibCore)
|