@@ -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 ()
@@ -811,6 +811,9 @@ if(CURL_FOUND)
811811 add_executable (git-http-push ${CMAKE_SOURCE_DIR} /http-push.c)
812812 target_link_libraries (git-http-push http_obj common-main ${CURL_LIBRARIES} ${EXPAT_LIBRARIES} )
813813 endif ()
814+
815+ add_executable (git-gvfs-helper ${CMAKE_SOURCE_DIR} /gvfs-helper.c)
816+ target_link_libraries (git-gvfs-helper http_obj common-main ${CURL_LIBRARIES} )
814817endif ()
815818
816819parse_makefile_for_executables(git_builtin_extra "BUILT_INS" )
@@ -1110,6 +1113,20 @@ set(wrapper_scripts
11101113set (wrapper_test_scripts
11111114 test -fake-ssh test -tool)
11121115
1116+ if (CURL_FOUND)
1117+ list (APPEND wrapper_test_scripts test -gvfs-protocol)
1118+
1119+ add_executable (test -gvfs-protocol ${CMAKE_SOURCE_DIR} /t/helper/test -gvfs-protocol.c)
1120+ target_link_libraries (test -gvfs-protocol common-main)
1121+
1122+ if (MSVC )
1123+ set_target_properties (test -gvfs-protocol
1124+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY_DEBUG ${CMAKE_BINARY_DIR} /t/helper)
1125+ set_target_properties (test -gvfs-protocol
1126+ PROPERTIES RUNTIME_OUTPUT_DIRECTORY_RELEASE ${CMAKE_BINARY_DIR} /t/helper)
1127+ endif ()
1128+ endif ()
1129+
11131130
11141131foreach (script ${wrapper_scripts} )
11151132 file (STRINGS ${CMAKE_SOURCE_DIR} /bin-wrappers/wrap-for-bin.sh content NEWLINE_CONSUME )
0 commit comments