From: Eric Bollengier Date: Sat, 16 May 2020 09:25:18 +0000 (+0200) Subject: BEE Backport bacula/src/qt-console/bat.pro.mingw32.in X-Git-Tag: Release-11.3.2~1573 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fe97eba7ffe65a28ab03e0d6851f560b05df314b;p=thirdparty%2Fbacula.git BEE Backport bacula/src/qt-console/bat.pro.mingw32.in This commit is the result of the squash of the following main commits: Author: Eric Bollengier Date: Thu Mar 19 18:09:32 2020 +0100 more work on QT5 for windows --- diff --git a/bacula/src/qt-console/bat.pro.mingw32.in b/bacula/src/qt-console/bat.pro.mingw32.in index 23ac93a458..045b45a490 100644 --- a/bacula/src/qt-console/bat.pro.mingw32.in +++ b/bacula/src/qt-console/bat.pro.mingw32.in @@ -7,6 +7,7 @@ # !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! # CONFIG += qt cross-win32 +QT += core gui widgets # CONFIG += debug bins.path = ./ @@ -21,7 +22,7 @@ INCLUDEPATH += .. . ./console ./restore ./select cross-win32 { # LIBS += ../win32/dll/bacula.a - LIBS += -mwindows -L../win32/release32 -lbacula + LIBS += -mwindows -L../win32/release32 -lbacula -lwinpthread } !cross-win32 { LIBS += -L../lib -lbac -L../findlib -lbacfind @OPENSSL_LIBS@ @@ -38,9 +39,9 @@ OBJECTS_DIR = obj32 UI_DIR = ui32 QMAKE_CC = i686-w64-mingw32-gcc QMAKE_CXX = i686-w64-mingw32-g++ -QMAKE_INCDIR = $(DEPKGS)/depkgs-mingw32/include/pthreads $(DEPKGS)/depkgs-mingw32/include/ ../win32/compat -QMAKE_INCDIR_QT = $(DEPKGS)/depkgs-mingw32/include/qt -QMAKE_LIBDIR_QT = $(DEPKGS)/depkgs-mingw32/lib/qt +QMAKE_INCDIR = $(DEPKGS)/depkgs-mingw32/include/ ../win32/compat $(DEPKGS)/depkgs-mingw32/include/QtGui $(DEPKGS)/depkgs-mingw32/include/QtCore $(DEPKGS)/depkgs-mingw32/include/QtWidgets ui32/ +QMAKE_INCDIR_QT = +QMAKE_LIBDIR_QT = $(DEPKGS)/depkgs-mingw32/lib QMAKE_LINK = i686-w64-mingw32-g++ QMAKE_LFLAGS = -mthreads -Wl,-enable-stdcall-fixup -Wl,-enable-auto-import -m32 -fno-strict-aliasing -Wl,-enable-runtime-pseudo-reloc QMAKE_LIB = i686-w64-mingw32-ar -ru @@ -73,6 +74,15 @@ qwt { HEADERS += mainwin.h bat.h bat_conf.h qstd.h pages.h SOURCES += main.cpp bat_conf.cpp mainwin.cpp qstd.cpp pages.cpp +# include authenticatebase.cpp that is already in libbac because +# libbac is compiled with -no-rtti while qt-console use RTTI by +# default. Inherited sub-class with virtual method in shared lib +# using a diffferent RTTI model dont work well, see this error a +# link time: "... DirCommAuthenticate ... undefined reference to +# typeinfo for AuthenticateBase" +HEADERS += ../lib/authenticatebase.h +SOURCES += ../lib/authenticatebase.cc + # bcomm HEADERS += bcomm/dircomm.h SOURCES += bcomm/dircomm.cpp bcomm/dircomm_auth.cpp