diff options
-rw-r--r-- | Userland/Libraries/LibUnicode/CMakeLists.txt | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/Userland/Libraries/LibUnicode/CMakeLists.txt b/Userland/Libraries/LibUnicode/CMakeLists.txt index 5a6b89d7d7..6634f4b504 100644 --- a/Userland/Libraries/LibUnicode/CMakeLists.txt +++ b/Userland/Libraries/LibUnicode/CMakeLists.txt @@ -1,7 +1,13 @@ include(${SerenityOS_SOURCE_DIR}/Meta/CMake/unicode_data.cmake) -SET(SOURCES - ${UNICODE_DATA_SOURCES} +if (DEFINED UNICODE_DATA_SOURCES) + set(SOURCES ${UNICODE_DATA_SOURCES}) + serenity_lib(LibUnicodeData unicodedata) + target_compile_options(LibUnicodeData PRIVATE -g0 -Os) + target_link_libraries(LibUnicodeData LibCore) +endif() + +set(SOURCES CharacterTypes.cpp CurrencyCode.cpp DateTimeFormat.cpp @@ -12,3 +18,7 @@ SET(SOURCES serenity_lib(LibUnicode unicode) target_link_libraries(LibUnicode LibCore) target_compile_definitions(LibUnicode PRIVATE ENABLE_UNICODE_DATA=$<BOOL:${ENABLE_UNICODE_DATABASE_DOWNLOAD}>) + +if (DEFINED UNICODE_DATA_SOURCES) + target_link_libraries(LibUnicode LibUnicodeData) +endif() |