]> git.ipfire.org Git - thirdparty/bacula.git/commitdiff
BEE Backport bacula/src/qt-console/bat.pro.mingw32.in
authorEric Bollengier <eric@baculasystems.com>
Sat, 16 May 2020 09:25:18 +0000 (11:25 +0200)
committerEric Bollengier <eric@baculasystems.com>
Thu, 29 Apr 2021 08:44:19 +0000 (10:44 +0200)
This commit is the result of the squash of the following main commits:

Author: Eric Bollengier <eric@baculasystems.com>
Date:   Thu Mar 19 18:09:32 2020 +0100

    more work on QT5 for windows

bacula/src/qt-console/bat.pro.mingw32.in

index 23ac93a458fb7b2cb61582ce9d86eec97ef2867b..045b45a4900c83805852467cb5295a285ef098fb 100644 (file)
@@ -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