1
0
mirror of https://github.com/qTox/qTox.git synced 2024-03-22 14:00:36 +08:00

fix: don't link emoji resources into targets that don't need them

The emoji resouce file is quite big, so link it only when really needed.
This commit is contained in:
sudden6 2022-02-23 22:04:02 +01:00
parent aeb8a9aca1
commit cd8af735fc
No known key found for this signature in database
GPG Key ID: 279509B499E032B9
2 changed files with 6 additions and 7 deletions

View File

@ -181,17 +181,15 @@ if(NOT SMILEYS)
set(SMILEYS "")
endif()
set(SMILEY_RESOURCES "")
if(NOT "${SMILEYS}" STREQUAL "DISABLED")
set(${PROJECT_NAME}_RESOURCES
${${PROJECT_NAME}_RESOURCES}
smileys/emojione.qrc)
set(SMILEY_RESOURCES smileys/emojione.qrc)
if(NOT "${SMILEYS}" STREQUAL "MIN")
set(${PROJECT_NAME}_RESOURCES
${${PROJECT_NAME}_RESOURCES}
set(SMILEY_RESOURCES
${SMILEY_RESOURCES}
smileys/smileys.qrc)
endif()
endif()
set(${PROJECT_NAME}_SOURCES
@ -662,6 +660,7 @@ add_executable(${PROJECT_NAME}
WIN32
MACOSX_BUNDLE
${${PROJECT_NAME}_RESOURCES}
${SMILEY_RESOURCES}
src/main.cpp)
target_link_libraries(${PROJECT_NAME}
${PROJECT_NAME}_static

View File

@ -51,7 +51,7 @@ auto_test(persistence paths "")
auto_test(persistence dbschema "")
auto_test(persistence offlinemsgengine "")
if(NOT "${SMILEYS}" STREQUAL "DISABLED")
auto_test(persistence smileypack "${${PROJECT_NAME}_RESOURCES}") # needs emojione
auto_test(persistence smileypack "${SMILEY_RESOURCES}") # needs emojione
endif()
auto_test(model friendlistmanager "")
auto_test(model friendmessagedispatcher "")