mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 05:07:45 +00:00
Meta: Use add_serenity_directory for LibTimeZone
This lets us eliminate the "meta prefix" for the LibTimeZone generators.
This commit is contained in:
parent
f7f92f104f
commit
a01c0e81f3
2 changed files with 9 additions and 23 deletions
|
@ -143,6 +143,7 @@ include_directories(../../Userland/Services)
|
|||
include_directories(${CMAKE_BINARY_DIR})
|
||||
include_directories(${CMAKE_CURRENT_BINARY_DIR})
|
||||
include_directories(${CMAKE_BINARY_DIR}/Libraries)
|
||||
include_directories(${CMAKE_BINARY_DIR}/Userland/Libraries)
|
||||
include_directories(${CMAKE_BINARY_DIR}/Services)
|
||||
|
||||
# install rules, think about moving to its own helper cmake file
|
||||
|
@ -298,12 +299,9 @@ add_serenity_subdirectory(Userland/Libraries/LibMain)
|
|||
|
||||
# LibTimeZone
|
||||
# This is needed even if Lagom is not enabled because it is depended upon by code generators.
|
||||
include(time_zone_data)
|
||||
file(GLOB LIBTIMEZONE_SOURCES CONFIGURE_DEPENDS "../../Userland/Libraries/LibTimeZone/*.cpp")
|
||||
lagom_lib(TimeZone timezone
|
||||
SOURCES ${LIBTIMEZONE_SOURCES} ${TIME_ZONE_DATA_SOURCES}
|
||||
)
|
||||
target_compile_definitions(LibTimeZone PRIVATE ENABLE_TIME_ZONE_DATA=$<BOOL:${ENABLE_TIME_ZONE_DATABASE_DOWNLOAD}>)
|
||||
add_serenity_subdirectory(Userland/Libraries/LibTimeZone)
|
||||
# We need an install rule for LibTimeZone b/c it is a manual OBJECT library instead of serenity_lib
|
||||
install(TARGETS LibTimeZone EXPORT LagomTargets)
|
||||
|
||||
# LibIDL
|
||||
# This is used by the BindingsGenerator so needs to always be built.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue