2021-01-20 23:07:23 +03:00
|
|
|
QT += widgets core gui network xml remoteobjects
|
2020-12-16 06:02:22 +03:00
|
|
|
|
|
|
|
|
TARGET = AmneziaVPN
|
|
|
|
|
TEMPLATE = app
|
2021-01-07 20:53:42 +03:00
|
|
|
#CONFIG += console
|
2020-12-16 06:02:22 +03:00
|
|
|
|
|
|
|
|
DEFINES += QT_DEPRECATED_WARNINGS
|
|
|
|
|
|
2020-12-26 23:55:20 +03:00
|
|
|
include("3rd/QtSsh/src/ssh/ssh.pri")
|
|
|
|
|
include("3rd/QtSsh/src/botan/botan.pri")
|
2021-02-24 23:40:57 +03:00
|
|
|
include("3rd/SingleApplication/singleapplication.pri")
|
2021-03-17 03:45:38 +03:00
|
|
|
include("3rd/QRCodeGenerator/QRCodeGenerator.pri")
|
2020-12-26 23:55:20 +03:00
|
|
|
|
2020-12-16 06:02:22 +03:00
|
|
|
HEADERS += \
|
2021-02-02 01:47:40 +03:00
|
|
|
../ipc/ipc.h \
|
2021-04-04 23:12:36 +03:00
|
|
|
configurators/cloak_configurator.h \
|
2021-05-07 23:28:37 +03:00
|
|
|
configurators/shadowsocks_configurator.h \
|
2021-05-10 02:33:31 +03:00
|
|
|
configurators/vpn_configurator.h \
|
2021-01-07 20:53:42 +03:00
|
|
|
core/defs.h \
|
|
|
|
|
core/errorstrings.h \
|
2021-02-02 01:47:40 +03:00
|
|
|
core/ipcclient.h \
|
2021-04-04 23:12:36 +03:00
|
|
|
configurators/openvpn_configurator.h \
|
|
|
|
|
core/scripts_registry.h \
|
|
|
|
|
core/server_defs.h \
|
2021-01-07 20:53:42 +03:00
|
|
|
core/servercontroller.h \
|
|
|
|
|
debug.h \
|
|
|
|
|
defines.h \
|
|
|
|
|
managementserver.h \
|
2021-04-04 23:12:36 +03:00
|
|
|
protocols/openvpnovercloakprotocol.h \
|
|
|
|
|
protocols/protocols_defs.h \
|
2021-01-26 15:01:15 +03:00
|
|
|
protocols/shadowsocksvpnprotocol.h \
|
2021-01-07 20:53:42 +03:00
|
|
|
settings.h \
|
|
|
|
|
ui/Controls/SlidingStackedWidget.h \
|
|
|
|
|
ui/mainwindow.h \
|
2021-02-24 21:58:32 +03:00
|
|
|
ui/qautostart.h \
|
2021-04-20 02:09:47 +03:00
|
|
|
ui/server_widget.h \
|
2021-05-27 22:18:36 +03:00
|
|
|
ui/sites_model.h \
|
2021-01-07 20:53:42 +03:00
|
|
|
utils.h \
|
|
|
|
|
vpnconnection.h \
|
|
|
|
|
protocols/vpnprotocol.h \
|
|
|
|
|
protocols/openvpnprotocol.h \
|
2020-12-16 06:02:22 +03:00
|
|
|
|
|
|
|
|
SOURCES += \
|
2021-04-04 23:12:36 +03:00
|
|
|
configurators/cloak_configurator.cpp \
|
2021-05-07 23:28:37 +03:00
|
|
|
configurators/shadowsocks_configurator.cpp \
|
2021-05-10 02:33:31 +03:00
|
|
|
configurators/vpn_configurator.cpp \
|
|
|
|
|
core/errorstrings.cpp \
|
2021-02-02 01:47:40 +03:00
|
|
|
core/ipcclient.cpp \
|
2021-04-04 23:12:36 +03:00
|
|
|
configurators/openvpn_configurator.cpp \
|
|
|
|
|
core/scripts_registry.cpp \
|
|
|
|
|
core/server_defs.cpp \
|
2021-01-07 20:53:42 +03:00
|
|
|
core/servercontroller.cpp \
|
|
|
|
|
debug.cpp \
|
|
|
|
|
main.cpp \
|
|
|
|
|
managementserver.cpp \
|
2021-04-04 23:12:36 +03:00
|
|
|
protocols/openvpnovercloakprotocol.cpp \
|
2021-05-10 02:33:31 +03:00
|
|
|
protocols/protocols_defs.cpp \
|
2021-01-26 15:01:15 +03:00
|
|
|
protocols/shadowsocksvpnprotocol.cpp \
|
2021-01-07 20:53:42 +03:00
|
|
|
settings.cpp \
|
|
|
|
|
ui/Controls/SlidingStackedWidget.cpp \
|
|
|
|
|
ui/mainwindow.cpp \
|
2021-02-24 21:58:32 +03:00
|
|
|
ui/qautostart.cpp \
|
2021-04-20 02:09:47 +03:00
|
|
|
ui/server_widget.cpp \
|
2021-05-27 22:18:36 +03:00
|
|
|
ui/sites_model.cpp \
|
2021-01-07 20:53:42 +03:00
|
|
|
utils.cpp \
|
|
|
|
|
vpnconnection.cpp \
|
|
|
|
|
protocols/vpnprotocol.cpp \
|
|
|
|
|
protocols/openvpnprotocol.cpp \
|
2020-12-16 06:02:22 +03:00
|
|
|
|
2021-04-20 02:09:47 +03:00
|
|
|
FORMS += ui/mainwindow.ui \
|
|
|
|
|
ui/server_widget.ui
|
2020-12-16 06:02:22 +03:00
|
|
|
|
|
|
|
|
RESOURCES += \
|
2021-01-07 20:53:42 +03:00
|
|
|
resources.qrc
|
2020-12-16 06:02:22 +03:00
|
|
|
|
|
|
|
|
TRANSLATIONS = \
|
2021-01-07 20:53:42 +03:00
|
|
|
translations/amneziavpn_ru.ts
|
2020-12-16 06:02:22 +03:00
|
|
|
|
2021-01-17 13:11:39 +03:00
|
|
|
#CONFIG(release, debug|release) {
|
|
|
|
|
# DESTDIR = $$PWD/../../AmneziaVPN-build/client/release
|
|
|
|
|
# MOC_DIR = $$DESTDIR
|
|
|
|
|
# OBJECTS_DIR = $$DESTDIR
|
|
|
|
|
# RCC_DIR = $$DESTDIR
|
|
|
|
|
#}
|
2020-12-16 06:02:22 +03:00
|
|
|
|
|
|
|
|
win32 {
|
|
|
|
|
OTHER_FILES += platform_win/vpnclient.rc
|
|
|
|
|
RC_FILE = platform_win/vpnclient.rc
|
|
|
|
|
|
2021-01-03 23:55:04 +03:00
|
|
|
HEADERS += \
|
|
|
|
|
ui/framelesswindow.h \
|
|
|
|
|
|
2021-01-03 21:18:20 +03:00
|
|
|
SOURCES += \
|
|
|
|
|
ui/framelesswindow.cpp
|
2020-12-16 06:02:22 +03:00
|
|
|
|
2020-12-26 15:03:51 +03:00
|
|
|
VERSION = 1.0.0.0
|
2020-12-16 06:02:22 +03:00
|
|
|
QMAKE_TARGET_COMPANY = "AmneziaVPN"
|
|
|
|
|
QMAKE_TARGET_PRODUCT = "AmneziaVPN"
|
|
|
|
|
|
2021-01-03 21:18:20 +03:00
|
|
|
|
|
|
|
|
|
2020-12-16 06:02:22 +03:00
|
|
|
LIBS += \
|
|
|
|
|
-luser32 \
|
|
|
|
|
-lrasapi32 \
|
|
|
|
|
-lshlwapi \
|
|
|
|
|
-liphlpapi \
|
|
|
|
|
-lws2_32 \
|
|
|
|
|
-liphlpapi \
|
|
|
|
|
-lgdi32
|
|
|
|
|
|
|
|
|
|
#LIBS += -L$$PWD/../../../../../../../OpenSSL-Win32/lib/ -llibcrypto
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
macx {
|
|
|
|
|
ICON = $$PWD/images/app.icns
|
2021-01-03 21:18:20 +03:00
|
|
|
|
2021-01-03 23:55:04 +03:00
|
|
|
HEADERS += ui/macos_util.h
|
|
|
|
|
SOURCES += ui/macos_util.mm
|
2021-01-03 21:18:20 +03:00
|
|
|
|
2021-01-16 21:04:16 +03:00
|
|
|
LIBS += -framework Cocoa -framework ApplicationServices -framework CoreServices -framework Foundation -framework AppKit
|
2020-12-16 06:02:22 +03:00
|
|
|
}
|
2021-01-20 23:07:23 +03:00
|
|
|
|
2021-02-02 01:47:40 +03:00
|
|
|
REPC_REPLICA += ../ipc/ipcinterface.rep
|
2021-01-20 23:07:23 +03:00
|
|
|
|