-
Notifications
You must be signed in to change notification settings - Fork 0
/
common.pri
31 lines (25 loc) · 1006 Bytes
/
common.pri
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
isEmpty( CXX_VERSION ) : {
CXX_VERSION = c++17
}
message("Setting $$CXX_VERSION standard version")
CONFIG += $$CXX_VERSION
VERSION = 0.1
INCLUDEPATH += $$PWD
HEADERS += $$PWD/qtwitch_global.h
TWITCH_CLIENT_ID = $$(TWITCH_CLIENT_ID)
isEmpty( TWITCH_CLIENT_ID ): {
error("Twitch API requests require a client id. Please get one via Twitch dashboard and specify it in TWITCH_CLIENT_ID environment variable.")
} else: {
DEFINES += TWITCH_CLIENT_ID=\"\\\"$$TWITCH_CLIENT_ID\\\"\"
}
TWITCH_REDIRECT_URI = $$(TWITCH_REDIRECT_URI)
isEmpty( TWITCH_REDIRECT_URI ): {
warning("Authorization requires a known redirect uri. If you want to perform user authorization, please set redirect uri on Twitch dashboard and specify it in TWITCH_REDIRECT_URI environment variable.")
DEFINES += TWITCH_REDIRECT_URI=\"\\\"\\\"\"
} else: {
DEFINES += TWITCH_REDIRECT_URI=\"\\\"$$TWITCH_REDIRECT_URI\\\"\"
}
debug {
QMAKE_CXXFLAGS += -Wall -Werror
}
DEFINES += QTWITCH_VERSION=\"\\\"$$VERSION\\\"\"