Commit 2113eec4 authored by Ghislain MARY's avatar Ghislain MARY
Browse files

Install libsoup when compiling desktop for Windows.

parent 1715a617
......@@ -91,6 +91,18 @@ if(MSVC)
COMMAND "${CMAKE_COMMAND}" "-E" "tar" "x" "${CMAKE_CURRENT_BINARY_DIR}/gtk+-bundle_win32.zip"
WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
)
message(STATUS "Installing libsoup")
file(DOWNLOAD http://ftp.gnome.org/pub/gnome/binaries/win32/libsoup/2.24/libsoup_2.24.0-1_win32.zip "${CMAKE_CURRENT_BINARY_DIR}/libsoup.zip" SHOW_PROGRESS)
execute_process(
COMMAND "${CMAKE_COMMAND}" "-E" "tar" "x" "${CMAKE_CURRENT_BINARY_DIR}/libsoup.zip"
WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
)
file(DOWNLOAD http://ftp.gnome.org/pub/gnome/binaries/win32/libsoup/2.24/libsoup-dev_2.24.0-1_win32.zip "${CMAKE_CURRENT_BINARY_DIR}/libsoup-dev.zip" SHOW_PROGRESS)
execute_process(
COMMAND "${CMAKE_COMMAND}" "-E" "tar" "x" "${CMAKE_CURRENT_BINARY_DIR}/libsoup-dev.zip"
WORKING_DIRECTORY "${CMAKE_INSTALL_PREFIX}"
)
file(RENAME "${CMAKE_INSTALL_PREFIX}/lib/libsoup-2.4.dll.a" "${CMAKE_INSTALL_PREFIX}/lib/soup-2.4.lib")
endif()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment