Verified Commit 431ccf09 authored by Ilya Bizyaev's avatar Ilya Bizyaev 📱 Committed by Linus Jahn

Fix static build with Qt 5.12 and QXmpp 1.0

parent abfcc2ee
Pipeline #3279 failed with stages
in 2 minutes and 5 seconds
......@@ -158,7 +158,7 @@ if(ANDROID)
endif()
if(STATIC_BUILD)
add_definitions(-DQXMPP_STATIC)
add_definitions(-DQXMPP_BUILD)
find_package(Perl REQUIRED)
......@@ -218,6 +218,7 @@ if(STATIC_BUILD)
find_library(QLAYOUTS_PLUGIN qquicklayoutsplugin PATHS ${QT_QML_PATH}/qml/QtQuick/Layouts)
find_library(QWINDOW_PLUGIN windowplugin PATHS ${QT_QML_PATH}/qml/QtQuick/Window.2)
find_library(QSHAPES_PLUGIN qmlshapesplugin PATHS ${QT_QML_PATH}/qml/QtQuick/Shapes)
find_library(QUICKSHAPES Qt5QuickShapes PATHS ${QT_LIBDIR})
find_library(QTEMPLATES_PLUGIN qtquicktemplates2plugin PATHS ${QT_QML_PATH}/qml/QtQuick/Templates.2)
find_library(QMODELS_PLUGIN modelsplugin PATHS ${QT_QML_PATH}/qml/QtQml/Models.2)
target_link_libraries(${PROJECT_NAME}
......@@ -242,6 +243,7 @@ if(STATIC_BUILD)
${QLAYOUTS_PLUGIN}
${QWINDOW_PLUGIN}
${QSHAPES_PLUGIN}
${QUICKSHAPES}
${QTEMPLATES_PLUGIN}
${QMODELS_PLUGIN}
${__Qt5Widgets_LIBRARIES}
......
......@@ -57,7 +57,7 @@ echo "*****************************************"
cmake .. \
-DBUILD_SHARED_LIBS=OFF \
-DCMAKE_PREFIX_PATH=$QT_IOS \
-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF -DBUILD_TESTS=OFF -DBUILD_SHARED=OFF \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$QXMPP_BUILD \
-DCMAKE_TOOLCHAIN_FILE=../../ios-cmake/ios.toolchain.cmake \
-DIOS_PLATFORM=$IOS_PLATFORM \
......
......@@ -94,6 +94,7 @@ echo "*****************************************"
$MXE_TARGET-cmake .. \
-DBUILD_TESTS=OFF \
-DBUILD_EXAMPLES=OFF \
-DBUILD_SHARED=OFF \
-DCMAKE_BUILD_TYPE=$BUILD_TYPE
make -j$(nproc)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment