-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathPhoneAudioLink.pro
More file actions
79 lines (62 loc) · 1.76 KB
/
PhoneAudioLink.pro
File metadata and controls
79 lines (62 loc) · 1.76 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
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
QT += core gui bluetooth multimedia network
greaterThan(QT_MAJOR_VERSION, 4): QT += widgets
CONFIG += c++20
DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000 # disables all the APIs deprecated before Qt 6.0.0
RC_ICONS = icon.ico
# Windows-specific libraries
win32 {
QMAKE_CXXFLAGS += /await:strict /std:c++20 # Enable coroutines
LIBS += -lUser32 -lOle32
LIBS += -lwindowsapp -lruntimeobject # WinRT libs
DEFINES += WINVER=0x0A00 _WIN32_WINNT=0x0A00 # Win10+
# Require Windows 10 2004 minimum
DEFINES += NTDDI_VERSION=NTDDI_WIN10_CO
}
# Program Version
DEFINES += GLOBAL_PROGRAM_VERSION="1.2"
DEFINES += GLOBAL_MINOR_PROGRAM_VERSION_SIZE=1
CONFIG(debug, debug|release) {
DEFINES += DEBUG_BUILD
CONFIG += console
} else {
DEFINES += RELEASE_BUILD
}
SOURCES += \
animatedbutton.cpp \
audiosessionmanager.cpp \
bluetootha2dpsink.cpp \
main.cpp \
phoneaudiolink.cpp \
releasenotesdialog.cpp \
startuphelp.cpp \
updatechecker.cpp \
updatenotificationbar.cpp
HEADERS += \
animatedbutton.h \
audiosessionmanager.h \
bluetootha2dpsink.h \
phoneaudiolink.h \
releasenotesdialog.h \
startuphelp.h \
updatechecker.h \
updatenotificationbar.h
FORMS += \
phoneaudiolink.ui
TRANSLATIONS += \
PhoneAudioLink_en_US.ts
CONFIG += lrelease
CONFIG += embed_translations
# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target
RESOURCES += \
resources.qrc
DISTFILES += \
README.md
# Verify MSVC compiler on Windows
win32 {
!contains(QMAKE_COMPILER, msvc) {
error("This project requires MSVC compiler for WinRT support. MinGW is not supported.")
}
}