1
0
Fork 0

Add macro for disabling fonts bundling

This commit is contained in:
Ilya Fedin 2020-01-21 04:55:54 +04:00 committed by John Preston
parent e4214668a5
commit 7b68f17156
2 changed files with 8 additions and 0 deletions

View file

@ -26,6 +26,13 @@ if (DESKTOP_APP_USE_PACKAGED)
)
endif()
if (DESKTOP_APP_USE_PACKAGED_FONTS)
target_compile_definitions(common_options
INTERFACE
DESKTOP_APP_USE_PACKAGED_FONTS
)
endif()
if (WIN32)
include(cmake/options_win.cmake)
elseif (APPLE)

View file

@ -23,6 +23,7 @@ if (DESKTOP_APP_SPECIAL_TARGET STREQUAL "osx")
endif()
option(DESKTOP_APP_USE_PACKAGED_RLOTTIE "Find rlottie using CMake instead of bundled one." ${DESKTOP_APP_USE_PACKAGED})
option(DESKTOP_APP_USE_PACKAGED_FONTS "Use preinstalled fonts instead of bundled one." ${DESKTOP_APP_USE_PACKAGED})
if (DESKTOP_APP_SPECIAL_TARGET STREQUAL ""
OR DESKTOP_APP_SPECIAL_TARGET STREQUAL "uwp"