forked from Jellyfrog/azclient
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazclient.pro
More file actions
60 lines (52 loc) · 1.75 KB
/
Copy pathazclient.pro
File metadata and controls
60 lines (52 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
VERSION = 0.5
QT += core gui widgets network svg
CONFIG += c++11
TARGET = azclient
TEMPLATE = app
SOURCES += main.cpp \
ConnectionWindow.cpp \
VpnApi.cpp \
LogWindow.cpp \
StatusIcon.cpp \
OpenVpnRunner.cpp \
PowerNotifier.cpp
HEADERS += ConnectionWindow.h \
VpnApi.h \
customization.h \
LogWindow.h \
StatusIcon.h \
OpenVpnRunner.h \
platform-constants.h \
PowerNotifier.h
TRANSLATIONS += locale/sv.ts locale/nl.ts locale/fr.ts
qtPrepareTool(LRELEASE, lrelease)
system("$$LRELEASE" "$$_PRO_FILE_")
RESOURCES += locale/locales.qrc
RESOURCES += resources/resources.qrc
DEFINES += VERSION=\\\"$$VERSION\\\"
win32 {
QMAKE_LFLAGS += \"/MANIFESTUAC:level=\'requireAdministrator\' uiAccess=\'false\'\"
DESTDIR = bin
RC_ICONS = resources/icons/win/app.ico
CONFIG += embed_manifest_exe
extrabin.commands = xcopy \"$$replace(_PRO_FILE_PWD_, /, $$QMAKE_DIR_SEP)\\dist\\win\\bin\\*\" \"$$DESTDIR\\\" /Y /S
QMAKE_EXTRA_TARGETS += extrabin
PRE_TARGETDEPS += extrabin
installer.commands = "cd \"$$replace(_PRO_FILE_PWD_, /, $$QMAKE_DIR_SEP)\dist\win\" && set VERSION=$${VERSION}&& set QTDIR=$$[QT_INSTALL_PREFIX]&& makeinstaller.bat"
QMAKE_EXTRA_TARGETS += installer
}
macx {
QMAKE_LFLAGS += -framework IOKit -framework Cocoa
ICON = resources/icons/mac/app.icns
BUNDLE_TARGET = "./$${TARGET}.app"
extrabin.files = $$system(echo $$_PRO_FILE_PWD_/dist/mac/bin/*)
extrabin.path = "Contents/MacOS"
QMAKE_BUNDLE_DATA += extrabin
QMAKE_INFO_PLIST = dist/mac/Info.plist
installer.commands = "cd \"$$_PRO_FILE_PWD_/dist/mac\" && VERSION=$$VERSION QTDIR=$$[QT_INSTALL_PREFIX] ./makedmg.sh"
QMAKE_EXTRA_TARGETS += installer
}
linux {
install.commands = "cd \"$$_PRO_FILE_PWD_/dist/linux\" && ./install.sh"
QMAKE_EXTRA_TARGETS += install
}