FrontendCommon: Add HTTPDownloader class

This commit is contained in:
Connor McLaughlin
2021-02-21 18:30:58 +10:00
parent 20fa5b74d2
commit ef524d7dea
7 changed files with 623 additions and 18 deletions

View File

@@ -91,6 +91,19 @@ if(ENABLE_DISCORD_PRESENCE)
target_link_libraries(frontend-common PRIVATE discord-rpc)
endif()
if(ENABLE_RETROACHIEVEMENTS)
target_sources(frontend-common PRIVATE
http_downloader.cpp
http_downloader.h
)
if(WIN32)
target_sources(frontend-common PRIVATE
http_downloader_winhttp.cpp
http_downloader_winhttp.h
)
endif()
endif()
# Copy the provided data directory to the output directory.
add_custom_command(TARGET frontend-common POST_BUILD
COMMAND ${CMAKE_COMMAND} -E copy_directory "${CMAKE_SOURCE_DIR}/data" "${CMAKE_RUNTIME_OUTPUT_DIRECTORY}"