if(WINDOWS)
set(PLATFORM_LINK websockets)
elseif(LINUX)
set(PLATFORM_LINK websockets ssl crypto)
elseif(ANDROID)
else()
endif()
if(ANDROID)
set(COCOS_NETWORK_SRC
network/HttpClient-android.cpp
network/SocketIO.cpp
network/WebSocket.cpp
network/CCDownloader.cpp
network/CCDownloader-android.cpp
network/Uri.cpp
)
elseif(MACOSX OR IOS)
network/CCDownloader-apple.mm
network/HttpClient.cpp
network/CCDownloader-curl.cpp
set(COCOS_NETWORK_LINK
libcurl_imp
${PLATFORM_LINK}
curl