@@ -635,7 +635,7 @@ if(NOT CURL_FOUND)
635635 add_compile_definitions (NO_CURL)
636636 message (WARNING "git-http-push and git-http-fetch will not be built" )
637637else ()
638- list (APPEND PROGRAMS_BUILT git-http-fetch git-http-push git-imap-send git-remote-http)
638+ list (APPEND PROGRAMS_BUILT git-http-fetch git-http-push git-imap-send git-remote-http git-gvfs-helper )
639639 if (CURL_VERSION_STRING VERSION_GREATER_EQUAL 7.34.0)
640640 add_compile_definitions (USE_CURL_FOR_IMAP_SEND)
641641 endif ()
@@ -823,6 +823,9 @@ if(CURL_FOUND)
823823 add_executable (git-http-push ${CMAKE_SOURCE_DIR} /http-push.c)
824824 target_link_libraries (git-http-push http_obj common-main ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} )
825825 endif ()
826+
827+ add_executable (git-gvfs-helper ${CMAKE_SOURCE_DIR} /gvfs-helper.c)
828+ target_link_libraries (git-gvfs-helper http_obj common-main ${CURL_LIBRARIES} )
826829endif ()
827830
828831parse_makefile_for_executables(git_builtin_extra "BUILT_INS" )
@@ -1122,6 +1125,20 @@ set(wrapper_scripts
11221125set (wrapper_test_scripts
11231126 test -fake-ssh test -tool)
11241127
1128+ if (CURL_FOUND)
1129+ list (APPEND wrapper_test_scripts test -gvfs-protocol)
1130+
1131+ add_executable (test -gvfs-protocol ${CMAKE_SOURCE_DIR} /t/helper/test -gvfs-protocol.c)
1132+ target_link_libraries (test -gvfs-protocol common-main)
1133+
1134+ if (MSVC )
1135+ set_target_properties (test -gvfs-protocol
1136+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} /t/helper)
1137+ set_target_properties (test -gvfs-protocol
1138+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} /t/helper)
1139+ endif ()
1140+ endif ()
1141+
11251142
11261143foreach (script ${wrapper_scripts} )
11271144 file (STRINGS ${CMAKE_SOURCE_DIR} /bin-wrappers/wrap-for-bin.sh content NEWLINE_CONSUME )
0 commit comments