forked from aeagean/QtNetworkService
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathQtNetworkService.pro
50 lines (42 loc) · 1.35 KB
/
QtNetworkService.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
39
40
41
42
43
44
45
46
47
48
49
50
#**********************************************************
#* Author(作者) : Qt君
#* 微信公众号 : Qt君
#* Website(网站) : qthub.com
#* QQ交流群 : 1039852727
#* Email(邮箱) : [email protected]
#* Support(技术支持&合作) :2088201923(QQ)
#* Source Code(源码): https://github.com/aeagean/QtNetworkService
#* LISCENSE(开源协议): MIT
#* Demo(演示):
#==========================================================
# static AeaQt::HttpClient client;
# client.get("https://qthub.com")
# .onSuccess([](QString result) { qDebug()<<"success!"; })
# .onFailed([](QString error) { qDebug()<<"failed!"; })
# .exec();
#==========================================================
#*********************************************************/
QT += core
QT -= gui
DEFINES += QT_APP_MODE
contains(DEFINES, QT_APP_MODE) {
SOURCES += sample/main.cpp
message(" ================ QtNetworkService Application ================ ")
}
else {
CONFIG += staticlib
TEMPLATE = lib
unix: TARGET = $$PWD/lib/QtNetworkService
win32: {
DESTDIR = $$PWD/Lib/
TARGET = QtNetworkService
}
message(" ================ QtNetworkService Library ================ ")
}
msvc {
QMAKE_CFLAGS += /utf-8
QMAKE_CXXFLAGS += /utf-8
}
include($$PWD/src/QtNetworkService.pri)
DISTFILES += \
README.md