-
Notifications
You must be signed in to change notification settings - Fork 734
/
Copy pathsocket.io-client.pri
70 lines (61 loc) · 2.17 KB
/
socket.io-client.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
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
SOCKET_IO_CLIENT_ROOT = $$PWD
SOCKET_IO_CLIENT_SRC = $$SOCKET_IO_CLIENT_ROOT/src
SOCKET_IO_CLIENT_BIN = $$PWD/bin
SOCKET_IO_CLIENT_DEPEND = $$SOCKET_IO_CLIENT_ROOT/lib
msvc {
lessThan(QMAKE_MSC_VER, 1900) {
DEFINES += _WEBSOCKETPP_NOEXCEPT_TOKEN_=_NOEXCEPT
} else {
DEFINES += _WEBSOCKETPP_NOEXCEPT_TOKEN_=noexcept
}
QMAKE_CXXFLAGS += /wd4503
} else {
DEFINES += _WEBSOCKETPP_NOEXCEPT_TOKEN_=noexcept
}
win32 {
DEFINES += _WINSOCK_DEPRECATED_NO_WARNINGS
} else {
DEFINES += _WEBSOCKETPP_CPP11_THREAD_
}
OPENSSL_INCLUDE_DIR = $$(OPENSSL_INCLUDE_DIR)
OPENSSL_LIB_DIR = $$(OPENSSL_LIB_DIR)
USE_SYSTEM_OPENSSL = $$(USE_SYSTEM_OPENSSL)
DEFINES += ASIO_STANDALONE
DEFINES += _WEBSOCKETPP_CPP11_TYPE_TRAITS_
DEFINES += _WEBSOCKETPP_CPP11_MEMORY_
DEFINES += _WEBSOCKETPP_CPP11_FUNCTIONAL_
DEFINES += _WEBSOCKETPP_CPP11_CHRONO_
DEFINES += _WEBSOCKETPP_CPP11_RANDOM_DEVICE_
DEFINES += _WEBSOCKETPP_CPP11_REGEX_
DEFINES += _WEBSOCKETPP_CPP11_SYSTEM_ERROR_
DEFINES += _WEBSOCKETPP_INITIALIZER_LISTS_
DEFINES += _WEBSOCKETPP_CONSTEXPR_TOKEN_=
DEFINES += RAPIDJSON_HAS_CXX11_RVALUE_REFS=1
macx:SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-macx
linux:SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-linux
win32 {
SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-win32
msvc:SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-msvc
}
clang:SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-clang
else::gcc:SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-gcc
ARCH = $$QT_ARCH
macx {
isEqual(QMAKE_APPLE_DEVICE_ARCHS, "x86_64") {
ARCH = $$QMAKE_APPLE_DEVICE_ARCHS
} else:isEqual(QMAKE_APPLE_DEVICE_ARCHS, "arm64") {
ARCH = $$QMAKE_APPLE_DEVICE_ARCHS
} else:contains(QMAKE_APPLE_DEVICE_ARCHS, "x86_64"):contains(QMAKE_APPLE_DEVICE_ARCHS, "arm64") {
ARCH = "universal"
}
}
SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN-$$ARCH
CONFIG(debug, debug|release) {
SOCKET_IO_CLIENT_BIN = $$SOCKET_IO_CLIENT_BIN/debug
}
INCLUDEPATH += \
$$SOCKET_IO_CLIENT_SRC \
$$SOCKET_IO_CLIENT_DEPEND/asio/asio/include \
$$SOCKET_IO_CLIENT_DEPEND/catch/single_include \
$$SOCKET_IO_CLIENT_DEPEND/rapidjson/include \
$$SOCKET_IO_CLIENT_DEPEND/websocketpp