mirror of
https://github.com/qTox/qTox.git
synced 2024-03-22 14:00:36 +08:00
fix(cmake): Fix smileys resource adding
This commit is contained in:
parent
3f926fa602
commit
fddda5de61
|
@ -147,7 +147,7 @@ export PKG_CONFIG_PATH="$PWD/libs/lib/pkgconfig"
|
|||
|
||||
# first build qTox without support for optional dependencies
|
||||
echo '*** BUILDING "MINIMAL" VERSION ***'
|
||||
qmake qtox.pro QMAKE_CC="$CC" QMAKE_CXX="$CXX" ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND=NO ENABLE_SYSTRAY_GTK_BACKEND=NO DISABLE_PLATFORM_EXT=YES SMILEYS=NO
|
||||
qmake qtox.pro QMAKE_CC="$CC" QMAKE_CXX="$CXX" ENABLE_SYSTRAY_STATUSNOTIFIER_BACKEND=NO ENABLE_SYSTRAY_GTK_BACKEND=NO DISABLE_PLATFORM_EXT=YES SMILEYS=DISABLED
|
||||
# ↓ reduce if build fails with OOM
|
||||
make -j$(nproc)
|
||||
# clean it up, and build normal version
|
||||
|
|
|
@ -115,15 +115,21 @@ qt5_add_resources(
|
|||
DEPENDS ${${PROJECT_NAME}_QM_FILES}
|
||||
)
|
||||
|
||||
if(NOT ${SMILEYS})
|
||||
set(SMILEYS, "")
|
||||
if(NOT SMILEYS)
|
||||
set(SMILEYS "")
|
||||
endif()
|
||||
|
||||
if(NOT ${SMILEYS} MATCHES "NO")
|
||||
qt5_add_resources(smileys/emojione.qrc)
|
||||
if(NOT ${SMILEYS} MATCHES "MIN")
|
||||
qt5_add_resources(smileys/smileys.qrc)
|
||||
if(NOT "${SMILEYS}" STREQUAL "DISABLED")
|
||||
qt5_add_resources(
|
||||
${PROJECT_NAME}_RESOURCES
|
||||
smileys/emojione.qrc)
|
||||
|
||||
if(NOT "${SMILEYS}" STREQUAL "MIN")
|
||||
qt5_add_resources(
|
||||
${PROJECT_NAME}_RESOURCES
|
||||
smileys/smileys.qrc)
|
||||
endif()
|
||||
|
||||
endif()
|
||||
|
||||
file(WRITE "${CMAKE_CURRENT_BINARY_DIR}/translations.qrc.in"
|
||||
|
|
Loading…
Reference in New Issue
Block a user