amnezia-client/service/server/server.pro
Mortie 8c20a67cfa migrated the codebase to Qt6 and fixed some compatibility issues
* used a Qt6 ported version of SortFilterProxyModel
* used an updated Qt6 compatible version of QXZing
* added a flag to windows linker to avoid WinMain problem of MSVCRTD
* renamed utils.cpp to utilities.cpp for avoiding confusion with the same file name in SortFilterProxyModel
2022-08-29 12:21:09 +04:30

71 lines
1.3 KiB
Prolog

TARGET = AmneziaVPN-service
TEMPLATE = app
CONFIG += console qt no_batch
QT += core network remoteobjects
equals(QT_MAJOR_VERSION, 6): QT += core5compat
HEADERS = \
../../client/utilities.h \
../../ipc/ipc.h \
../../ipc/ipcserver.h \
../../ipc/ipcserverprocess.h \
localserver.h \
log.h \
router.h \
systemservice.h
SOURCES = \
../../client/utilities.cpp \
../../ipc/ipcserver.cpp \
../../ipc/ipcserverprocess.cpp \
localserver.cpp \
log.cpp \
main.cpp \
router.cpp \
systemservice.cpp
win32 {
HEADERS += \
tapcontroller_win.h \
router_win.h
SOURCES += \
tapcontroller_win.cpp \
router_win.cpp
LIBS += \
-luser32 \
-lrasapi32 \
-lshlwapi \
-liphlpapi \
-lws2_32 \
-liphlpapi \
-lgdi32 \
-lAdvapi32 \
-lKernel32
}
macx {
HEADERS += \
router_mac.h \
helper_route_mac.h
SOURCES += \
router_mac.cpp \
helper_route_mac.c
}
linux {
HEADERS += \
router_linux.h
SOURCES += \
router_linux.cpp
}
include(../src/qtservice.pri)
INCLUDEPATH += "$$PWD/../../client"
REPC_SOURCE += ../../ipc/ipc_interface.rep
!ios: REPC_SOURCE += ../../ipc/ipc_process_interface.rep