aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFelix Queißner <git@mq32.de>2020-06-30 10:19:26 -0700
committerFelix Queißner <git@mq32.de>2020-06-30 10:19:26 -0700
commitef6e2f513cde84fcd86795259830df364d5994b2 (patch)
tree1e7631008824e5d1195e98b92f30ef4500ac41d8 /src
parent16a4956a298e36e118478cef7359c6acb87e77f0 (diff)
downloadkristall-ef6e2f513cde84fcd86795259830df364d5994b2.tar.gz
Makes windows build possible.
Diffstat (limited to 'src')
-rw-r--r--src/kristall.pro10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/kristall.pro b/src/kristall.pro
index d860340..917c212 100644
--- a/src/kristall.pro
+++ b/src/kristall.pro
@@ -16,7 +16,7 @@ DEFINES += KRISTALL_VERSION="\"$(shell cd $$PWD; git describe --tags)\""
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
-LIBS += -lcrypto
+!win32: LIBS += -lcrypto
# We need iconv on non-linux platforms
!linux: LIBS += -liconv
@@ -29,6 +29,7 @@ QMAKE_CXXFLAGS += -std=c++17
CONFIG += c++17
win32-msvc {
+ # message("Use windows/msvc build")
QMAKE_CFLAGS -= -Wno-unused-parameter
QMAKE_CXXFLAGS -= -Wno-unused-parameter
@@ -39,6 +40,13 @@ win32-msvc {
INCLUDEPATH += "C:\Program Files\OpenSSL\include"
}
+win32-g++ {
+ # message("Use windows/mingw build")
+ INCLUDEPATH += $$quote("C:\Qt\Tools\OpenSSL\Win_x64\include")
+ LIBS += -L$$quote(C:\Qt\Tools\OpenSSL\Win_x64\lib)
+ LIBS += -llibcrypto
+}
+
android: include(/home/felix/projects/android-hass/android-sdk/android_openssl/openssl.pri)
# android {