-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
/
uglobalhotkey.qc.pro
38 lines (32 loc) · 1.04 KB
/
uglobalhotkey.qc.pro
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
QT = core gui
unix {
QT += gui-private
}
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
TARGET = UGlobalHotkey
TEMPLATE = lib
CONFIG += c++11
# Switch ABI to export (vs import, which is default)
DEFINES += UGLOBALHOTKEY_LIBRARY
include(uglobalhotkey-headers.pri)
include(uglobalhotkey-sources.pri)
include(uglobalhotkey-libs.pri)
CONFIG(release, debug|release):{
QMAKE_CXXFLAGS_RELEASE = $$QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO
QMAKE_LFLAGS_RELEASE = $$QMAKE_LFLAGS_RELEASE_WITH_DEBUGINFO
}
QMAKE_CXXFLAGS_RELEASE -= -O2
MY_ARCH=$$(build_arch)
equals(MY_ARCH, ARM64) {
# message("Building ARM64")
CONFIG(debug, debug|release):DESTDIR = ../Bin/ARM64/Debug
CONFIG(release, debug|release):DESTDIR = ../Bin/ARM64/Release
} else:equals(MY_ARCH, x64) {
# message("Building x64")
CONFIG(debug, debug|release):DESTDIR = ../Bin/x64/Debug
CONFIG(release, debug|release):DESTDIR = ../Bin/x64/Release
} else {
# message("Building x86")
CONFIG(debug, debug|release):DESTDIR = ../Bin/Win32/Debug
CONFIG(release, debug|release):DESTDIR = ../Bin/Win32/Release
}