Sha256: 6c641c08d2cb1719c533ac20577f317bfc5ecf27e4ffdd0ea940e26e25dfbf2c

Contents?: true

Size: 746 Bytes

Versions: 27

Compression:

Stored size: 746 Bytes

Contents

FIND_PROGRAM(DLLTOOL dlltool CMAKE_FIND_ROOT_PATH_BOTH)
IF (NOT DLLTOOL)
	MESSAGE(FATAL_ERROR "Could not find dlltool command")
ENDIF ()

SET(LIBWINHTTP_PATH "${libgit2_BINARY_DIR}/deps/winhttp")
SET(LIBWINHTTP_PATH ${LIBWINHTTP_PATH} PARENT_SCOPE)
FILE(MAKE_DIRECTORY ${LIBWINHTTP_PATH})

IF (CMAKE_SIZEOF_VOID_P EQUAL 8)
	set(WINHTTP_DEF "winhttp64.def")
ELSE()
	set(WINHTTP_DEF "winhttp.def")
ENDIF()

ADD_CUSTOM_COMMAND(
	OUTPUT ${LIBWINHTTP_PATH}/libwinhttp.a
	COMMAND ${DLLTOOL} -d ${WINHTTP_DEF} -k -D winhttp.dll -l libwinhttp.a
	DEPENDS ${WINHTTP_DEF}
	WORKING_DIRECTORY ${LIBWINHTTP_PATH}
)

SET_SOURCE_FILES_PROPERTIES(
	${CMAKE_CURRENT_SOURCE_DIR}/src/transports/winhttp.c
	PROPERTIES OBJECT_DEPENDS ${LIBWINHTTP_PATH}/libwinhttp.a
)

Version data entries

27 entries across 27 versions & 1 rubygems

Version Path
rugged-1.3.2.3 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.3.2.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.3.2 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.3.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.3.0 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.2.0 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.1.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.1.0 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.0.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.28.5 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-1.0.0 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.99.0 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.27.10.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.28.4.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.28.4 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.27.10 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.28.3.1 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.27.9 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.28.2 vendor/libgit2/deps/winhttp/CMakeLists.txt
rugged-0.28.1 vendor/libgit2/deps/winhttp/CMakeLists.txt