mirror of
https://github.com/git-for-windows/git.git
synced 2026-03-16 19:41:56 -05:00
Merge pull request #2971 from dennisameling/vcpkg-dlls
cmake(install): include vcpkg dlls
This commit is contained in:
6
.github/workflows/main.yml
vendored
6
.github/workflows/main.yml
vendored
@@ -129,6 +129,7 @@ jobs:
|
||||
vs-build:
|
||||
needs: ci-config
|
||||
if: needs.ci-config.outputs.enabled == 'yes'
|
||||
timeout-minutes: 15
|
||||
env:
|
||||
NO_PERL: 1
|
||||
GIT_CONFIG_PARAMETERS: "'user.name=CI' 'user.email=ci@git'"
|
||||
@@ -139,6 +140,11 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
- uses: git-for-windows/setup-git-for-windows-sdk@v0
|
||||
- name: initialize vcpkg
|
||||
uses: actions/checkout@v2
|
||||
with:
|
||||
repository: 'microsoft/vcpkg'
|
||||
path: 'compat/vcbuild/vcpkg'
|
||||
- name: download vcpkg artifacts
|
||||
shell: powershell
|
||||
run: |
|
||||
|
||||
@@ -58,6 +58,10 @@ if(WIN32)
|
||||
|
||||
# In the vcpkg edition, we need this to be able to link to libcurl
|
||||
set(CURL_NO_CURL_CMAKE ON)
|
||||
|
||||
# Copy the necessary vcpkg DLLs (like iconv) to the install dir
|
||||
set(X_VCPKG_APPLOCAL_DEPS_INSTALL ON)
|
||||
set(CMAKE_TOOLCHAIN_FILE ${VCPKG_DIR}/scripts/buildsystems/vcpkg.cmake CACHE STRING "Vcpkg toolchain file")
|
||||
endif()
|
||||
|
||||
find_program(SH_EXE sh PATHS "C:/Program Files/Git/bin")
|
||||
@@ -813,15 +817,19 @@ list(TRANSFORM git_shell_scripts PREPEND "${CMAKE_BINARY_DIR}/")
|
||||
list(TRANSFORM git_perl_scripts PREPEND "${CMAKE_BINARY_DIR}/")
|
||||
|
||||
#install
|
||||
install(TARGETS git git-shell
|
||||
foreach(program ${PROGRAMS_BUILT})
|
||||
if(${program} STREQUAL git OR ${program} STREQUAL git-shell)
|
||||
install(TARGETS ${program}
|
||||
RUNTIME DESTINATION bin)
|
||||
else()
|
||||
install(TARGETS ${program}
|
||||
RUNTIME DESTINATION libexec/git-core)
|
||||
endif()
|
||||
endforeach()
|
||||
|
||||
install(PROGRAMS ${CMAKE_BINARY_DIR}/git-cvsserver
|
||||
DESTINATION bin)
|
||||
|
||||
list(REMOVE_ITEM PROGRAMS_BUILT git git-shell)
|
||||
install(TARGETS ${PROGRAMS_BUILT}
|
||||
RUNTIME DESTINATION libexec/git-core)
|
||||
|
||||
set(bin_links
|
||||
git-receive-pack git-upload-archive git-upload-pack)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user