mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 20:27:46 +00:00
LibLocale: Move locale source files to the LibLocale library
Everything is now setup to create the LibLocale library and link it where needed.
This commit is contained in:
parent
f082b6ae48
commit
9e860d973e
7 changed files with 38 additions and 17 deletions
|
@ -6,3 +6,19 @@ if (DEFINED LOCALE_DATA_SOURCES)
|
|||
target_compile_options(LibLocaleData PRIVATE -g0 -Os -Wno-parentheses-equality)
|
||||
target_link_libraries(LibLocaleData LibCore LibTimeZone)
|
||||
endif()
|
||||
|
||||
set(SOURCES
|
||||
DateTimeFormat.cpp
|
||||
Locale.cpp
|
||||
NumberFormat.cpp
|
||||
PluralRules.cpp
|
||||
RelativeTimeFormat.cpp
|
||||
)
|
||||
|
||||
serenity_lib(LibLocale locale)
|
||||
target_link_libraries(LibLocale LibCore LibUnicode)
|
||||
target_compile_definitions(LibLocale PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>)
|
||||
|
||||
if (DEFINED LOCALE_DATA_SOURCES)
|
||||
add_dependencies(LibLocale LibLocaleData)
|
||||
endif()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue