2014-01-09 19:49:11 +08:00
|
|
|
if(WIN32)
|
|
|
|
set(PLATFORM_SRC
|
2014-05-02 04:01:51 +08:00
|
|
|
network/WebSocket.cpp
|
2014-01-09 19:49:11 +08:00
|
|
|
)
|
2014-02-11 22:21:15 +08:00
|
|
|
|
|
|
|
set(PLATFORM_LINK
|
|
|
|
websockets
|
|
|
|
)
|
|
|
|
elseif(NOT APPLE)
|
|
|
|
set(PLATFORM_SRC
|
2014-05-02 04:01:51 +08:00
|
|
|
network/WebSocket.cpp
|
2014-02-11 22:21:15 +08:00
|
|
|
)
|
|
|
|
|
2014-01-09 19:49:11 +08:00
|
|
|
set(PLATFORM_LINK
|
|
|
|
websockets
|
2014-02-11 22:21:15 +08:00
|
|
|
ssl
|
|
|
|
crypto
|
2014-01-09 19:49:11 +08:00
|
|
|
)
|
|
|
|
endif()
|
|
|
|
|
2014-05-02 04:01:51 +08:00
|
|
|
set(COCOS_NETWORK_SRC
|
|
|
|
network/HttpClient.cpp
|
|
|
|
network/SocketIO.cpp
|
2014-01-09 19:49:11 +08:00
|
|
|
${PLATFORM_SRC}
|
2013-11-02 18:07:34 +08:00
|
|
|
)
|
|
|
|
|
2014-05-02 04:01:51 +08:00
|
|
|
set(COCOS_NETWORK_LINK
|
2013-11-04 13:10:04 +08:00
|
|
|
curl
|
2014-01-09 19:49:11 +08:00
|
|
|
${PLATFORM_LINK}
|
2013-11-04 13:10:04 +08:00
|
|
|
)
|