mirror of https://github.com/axmolengine/axmol.git
39 lines
934 B
CMake
39 lines
934 B
CMake
if(EMSCRIPTEN)
|
|
set(_AX_NETWORK_HEADER
|
|
network/Downloader-emscripten.h
|
|
network/IDownloaderImpl.h
|
|
network/Downloader.h
|
|
network/Uri.h
|
|
network/HttpClient.h
|
|
network/HttpResponse.h
|
|
network/HttpRequest.h
|
|
)
|
|
|
|
set(_AX_NETWORK_SRC
|
|
network/HttpClient-emscripten.cpp
|
|
network/Downloader.cpp
|
|
network/Downloader-emscripten.cpp
|
|
network/HttpCookie.cpp
|
|
network/Uri.cpp
|
|
)
|
|
else()
|
|
set(_AX_NETWORK_HEADER
|
|
network/Downloader-curl.h
|
|
network/IDownloaderImpl.h
|
|
network/Downloader.h
|
|
network/Uri.h
|
|
network/HttpClient.h
|
|
network/HttpResponse.h
|
|
network/HttpRequest.h
|
|
network/HttpCookie.h
|
|
)
|
|
|
|
set(_AX_NETWORK_SRC
|
|
network/HttpClient.cpp
|
|
network/Downloader.cpp
|
|
network/Downloader-curl.cpp
|
|
network/HttpCookie.cpp
|
|
network/Uri.cpp
|
|
)
|
|
endif()
|