CMakeLists.txt 1.2 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. if(ANDROID)
  2. set(COCOS_NETWORK_HEADER
  3. network/CCDownloader-android.h
  4. )
  5. set(COCOS_NETWORK_SRC
  6. network/HttpClient-android.cpp
  7. network/SocketIO.cpp
  8. network/WebSocket.cpp
  9. network/CCDownloader.cpp
  10. network/CCDownloader-android.cpp
  11. network/Uri.cpp
  12. )
  13. elseif(APPLE)
  14. set(COCOS_NETWORK_HEADER
  15. network/CCDownloader-apple.h
  16. network/HttpAsynConnection-apple.h
  17. )
  18. set(COCOS_NETWORK_SRC
  19. network/CCDownloader-apple.mm
  20. network/HttpClient.cpp
  21. network/SocketIO.cpp
  22. network/WebSocket.cpp
  23. network/CCDownloader.cpp
  24. network/CCDownloader-curl.cpp
  25. network/Uri.cpp
  26. )
  27. else()
  28. set(COCOS_NETWORK_SRC
  29. network/HttpClient.cpp
  30. network/SocketIO.cpp
  31. network/WebSocket.cpp
  32. network/CCDownloader.cpp
  33. network/CCDownloader-curl.cpp
  34. network/Uri.cpp
  35. )
  36. endif()
  37. set(COCOS_NETWORK_HEADER
  38. ${COCOS_NETWORK_HEADER}
  39. network/CCDownloader-curl.h
  40. network/CCIDownloaderImpl.h
  41. network/CCDownloader.h
  42. network/WebSocket.h
  43. network/Uri.h
  44. network/SocketIO.h
  45. network/HttpClient.h
  46. network/HttpResponse.h
  47. network/HttpRequest.h
  48. network/HttpCookie.h
  49. )