parent
8a8d38a30f
commit
19c42490e3
63 changed files with 252 additions and 2638 deletions
|
@ -9,6 +9,8 @@ set(CMAKE_CXX_STANDARD_REQUIRED ON)
|
|||
find_package(Qt6 REQUIRED COMPONENTS Core Network RemoteObjects Core5Compat)
|
||||
qt_standard_project_setup()
|
||||
|
||||
configure_file(${CMAKE_SOURCE_DIR}/version.h.in ${CMAKE_CURRENT_BINARY_DIR}/version.h)
|
||||
|
||||
set(HEADERS
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../client/utilities.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/../../ipc/ipc.h
|
||||
|
@ -18,6 +20,7 @@ set(HEADERS
|
|||
${CMAKE_CURRENT_LIST_DIR}/logger.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/router.h
|
||||
${CMAKE_CURRENT_LIST_DIR}/systemservice.h
|
||||
${CMAKE_CURRENT_BINARY_DIR}/version.h
|
||||
)
|
||||
|
||||
set(SOURCES
|
||||
|
|
|
@ -5,7 +5,7 @@
|
|||
|
||||
#include <iostream>
|
||||
|
||||
#include "defines.h"
|
||||
#include "version.h"
|
||||
#include "utilities.h"
|
||||
|
||||
QFile Logger::m_file;
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
#include <QDir>
|
||||
|
||||
#include "defines.h"
|
||||
#include "version.h"
|
||||
#include "localserver.h"
|
||||
#include "logger.h"
|
||||
#include "systemservice.h"
|
||||
|
|
|
@ -1,71 +0,0 @@
|
|||
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 \
|
||||
logger.h \
|
||||
router.h \
|
||||
systemservice.h
|
||||
|
||||
SOURCES = \
|
||||
../../client/utilities.cpp \
|
||||
../../ipc/ipcserver.cpp \
|
||||
../../ipc/ipcserverprocess.cpp \
|
||||
localserver.cpp \
|
||||
logger.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
|
|
@ -1,4 +1,4 @@
|
|||
#include "defines.h"
|
||||
#include "version.h"
|
||||
#include "localserver.h"
|
||||
#include "systemservice.h"
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue