-
Notifications
You must be signed in to change notification settings - Fork 7.6k
[POC|Invalid] Testing vcpkg without installed MSVC #42129
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Draft
Neumann-A
wants to merge
119
commits into
microsoft:master
Choose a base branch
from
Neumann-A:windows-triplet-without-installed-msvc
base: master
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Draft
Changes from 2 commits
Commits
Show all changes
119 commits
Select commit
Hold shift + click to select a range
4b98150
[Invalid] Testing vcpkg without installed MSVC
Neumann-A 5e74626
use lessmsi
Neumann-A 13f4af9
update to 17.12. calc some versions
Neumann-A c668ae1
Fix details
Neumann-A 59df484
include net 4.8.x
Neumann-A 1a274d0
commit download generator
Neumann-A 68f934f
Fix MSBuild
Neumann-A 054908a
Fix Fortran stuff
Neumann-A 5df3d96
Fix stuff detecting libm.lib from the intel compiler
Neumann-A e6e9900
update cmake to 3.31.0
Neumann-A b4bc90f
adjust cmake generator instance
Neumann-A 0a72041
Only set GENERATOR_INSTANCE if supprted by generator
Neumann-A c023f86
fix single config build
Neumann-A 24c76d9
fix include order
Neumann-A 74f5fc5
Fix msbuild builds
Neumann-A c759757
fix easyhook
Neumann-A 6a8088e
fix ffnvcodec
Neumann-A 2ec7776
fix xqilla
Neumann-A 6e78d24
Merge branch 'windows-triplet-without-installed-msvc' of https://gith…
Neumann-A c3ceef3
fix arpack-ng missing fortran
Neumann-A ee45443
fix usd
Neumann-A 18e5c19
increase ninja version
Neumann-A db6afdf
adjust components
Neumann-A bd42c64
duilib fix single config
Neumann-A 9fac459
fix marble
Neumann-A b6b62f9
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 574cd1a
fix stuff
Neumann-A 335598e
more fixers
Neumann-A c47e8d5
fix stuff
Neumann-A ab745ae
print sdk version
Neumann-A c5d6b80
fix crashpad
Neumann-A 4ea0520
set policy 0149 to new in toolchain
Neumann-A a632a24
update to 17.12.3
Neumann-A b4dd862
install vcvars64.bat
Neumann-A d813402
Fix vcvars stuff
Neumann-A 572c8d4
fix kf5texteditor
Neumann-A 448a4ad
Try fixing stuff but it probably won't work
Neumann-A 206cb47
Try setting CMAKE_WINDOWS_KITS_10_DIR
Neumann-A 68ce61e
do not build qtwebengine opencv4 llvm
Neumann-A dbaad07
set policy outside the toolchain
Neumann-A 7627178
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 89c261e
Merge branch 'windows-triplet-without-installed-msvc' of https://gith…
Neumann-A 23b5965
fix abs path
Neumann-A 12bb0dc
fix pdcurses
Neumann-A ad2ab67
more fixes
Neumann-A 312720c
fix a few failures
Neumann-A 866e7d5
fix g2o
Neumann-A eeb2cf9
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 4091ec1
fix openmvg
Neumann-A 130bebb
abs path fix
Neumann-A 24952b2
fix patch
Neumann-A e6db172
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 93ac702
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 8a33676
Adjust to different vs installation approach, add llvm
Neumann-A 8c3343e
Adjust paths and port names
Neumann-A 26f048a
cleanup
Neumann-A 9c8db0b
Fix clang-cl python
Neumann-A 3fd9721
Fix more ports
Neumann-A f001738
fix a bit
Neumann-A f93dc7f
update and fix protobuf
Neumann-A 55d1b68
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 6362d9e
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 878f0eb
Fix a lot of details
Neumann-A 0da4b8d
allow LOCALAPPDATA
Neumann-A fef1d94
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 7d5791f
Adjust a few paths and allow appdata in env
Neumann-A bca2d84
remove DEBUG and observe environment variables being unset
Neumann-A 83e9ebb
allow userprofile
Neumann-A a434931
retrigger CI
Neumann-A 417e631
cannot strip whitespace
Neumann-A 2ad6f3a
allow more
Neumann-A 52395d5
dont unset
Neumann-A cfc6e8d
more whitelisting
Neumann-A 14361d2
retry with host triplet also being allowed
Neumann-A 737c447
adjust environemnt cleanup to be in a common folder
Neumann-A f2cbeb7
Adjust fortran stuff
Neumann-A 1dbe2bc
fix rename command
Neumann-A e57997c
fix missing }
Neumann-A 085a26d
fix stuff
Neumann-A 5924b1e
Fix stuff accidentally broken
Neumann-A 790b1ee
Fix stuff
Neumann-A a1d484d
more fixes
Neumann-A e1c9f9c
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A a8a3d1b
adjust toolchain a little more
Neumann-A 2a23024
fix more details
Neumann-A 3f95781
fix cmake not being available and re-enable opencv4 and llvm
Neumann-A 642ac9b
fix a few ports
Neumann-A c2d9947
use msvc for easyhook
Neumann-A 215fcd1
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 9ada8ee
fix abs path opencv4
Neumann-A a662320
adjust some ports
Neumann-A 031d2bb
more fixes
Neumann-A 7889c59
fix tesseract
Neumann-A 3f97665
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 08acd23
switch nspr and 3fd to msvc
Neumann-A 9f4b8c6
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 6bca07d
use rc for hwloc
Neumann-A be01b46
fix cspice
Neumann-A 7e74201
switching a few ports to msvc
Neumann-A b75a63a
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 4634564
fix more stuff
Neumann-A 47da960
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A ffdf37e
more adjustments
Neumann-A 12025d2
more fixes
Neumann-A 1faee64
adjust ci
Neumann-A 50dea5e
fix missing space in vcpkg-make
Neumann-A 85e40da
more adjustments
Neumann-A 416682e
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A c7d0a39
more adjustments
Neumann-A cbca88c
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A cefe1e1
fix curl
Neumann-A 77897d8
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 4a758da
Fix azure ports
Neumann-A 6ca9734
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A 9efb544
remove host path from config
Neumann-A 2449ee1
update compiler
Neumann-A 0ee0a46
Merge remote-tracking branch 'upstream/master' into windows-triplet-w…
Neumann-A d2acd0f
adjust download dir
Neumann-A 087268b
remove wx
Neumann-A File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,19 @@ | ||
| param ( | ||
| [Parameter(Mandatory=$true)] | ||
| [string]$VsixFile, | ||
| [Parameter(Mandatory=$true)] | ||
| [string]$ExtractTo = "install" | ||
| ) | ||
|
|
||
| Add-Type -AssemblyName System.IO.Compression.FileSystem | ||
| [System.IO.Compression.ZipFile]::OpenRead(${VsixFile}).Entries | | ||
| Where-Object { $_.FullName -like 'Contents/*' } | | ||
| ForEach-Object { | ||
| $relativePath = $_.FullName.Substring(9) # Remove 'Contents/' | ||
| $outputPath = Join-Path -Path ${ExtractTo} -ChildPath $relativePath | ||
| $parentPath = [System.IO.Path]::GetDirectoryName($outputPath) | ||
| if(-not (Test-Path -Path $parentPath)) { | ||
| New-Item -Path $parentPath -ItemType Directory -Force | ||
| } | ||
| [System.IO.Compression.ZipFileExtensions]::ExtractToFile($_, $outputPath, $true) # Extract entry to the install folder | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| include(CMakeFindDependencyMacro) | ||
|
|
||
| find_dependency(VCToolKit) | ||
| find_dependency(WinSDK) | ||
|
|
||
| set(${CMAKE_FIND_PACKAGE_NAME}_PACKAGE_ROOT "${CMAKE_CURRENT_LIST_DIR}/../..") | ||
|
|
||
| list(APPEND CMAKE_PROGRAM_PATH "${${CMAKE_FIND_PACKAGE_NAME}_PACKAGE_ROOT}/MSBuild/Current/Bin") | ||
|
|
||
| find_program(MSBUILD_EXECUTABLE NAMES MSBuild PATHS "${${CMAKE_FIND_PACKAGE_NAME}_PACKAGE_ROOT}/MSBuild/Current/Bin" REQUIRED NO_DEFAULT_PATH NO_CACHE) | ||
|
|
||
| set(msbuild_FOUND TRUE) | ||
| set(MSBUILD_FOUND TRUE) | ||
| set(MSBuild_FOUND TRUE) |
Empty file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,100 @@ | ||
| include_guard(GLOBAL) | ||
|
|
||
| if(NOT DEFINED ENV{VCPKG_TOOLCHAIN_ENV_ALREADY_SET}) | ||
| set(MSVC_DIR "${CMAKE_CURRENT_LIST_DIR}/../../") | ||
| set(VS_DIR "${CMAKE_CURRENT_LIST_DIR}/../../VS") | ||
| set(SDK_DIR "${CMAKE_CURRENT_LIST_DIR}/../../WinSDK") | ||
|
|
||
| set(WinSDK_VERSION "10.0.26100.0") | ||
| set(VCToolkit_VERSION "14.41.34120") | ||
| set(VCToolkit_REDIST_VERSION "14.40.33807") | ||
|
|
||
| set(LIB | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/ATLMFC/lib/x64" | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/lib/x64" | ||
| #"${SDK_DIR}/Windows Kits/NETFXSDK/4.8/lib/um/x64" | ||
| "${SDK_DIR}/Windows Kits/10/lib/${WinSDK_VERSION}/ucrt/x64" | ||
| "${SDK_DIR}/Windows Kits/10/lib/${WinSDK_VERSION}/um/x64" | ||
| ) | ||
| cmake_path(CONVERT "${LIB}" TO_NATIVE_PATH_LIST LIB NORMALIZE) | ||
| set(ENV{LIB} "${LIB}") | ||
| set(LIBPATH | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/ATLMFC/lib/x64" | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/lib/x64" | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/lib/x86/store/references" | ||
| "${SDK_DIR}/Windows Kits/10/UnionMetadata/${WinSDK_VERSION}" | ||
| "${SDK_DIR}/Windows Kits/10/References/${WinSDK_VERSION}" | ||
| #C:/Windows/Microsoft.NET/Framework64/v4.0.30319 | ||
| ) | ||
| cmake_path(CONVERT "${LIBPATH}" TO_NATIVE_PATH_LIST LIBPATH NORMALIZE) | ||
| set(ENV{LIBPATH} "${LIBPATH}") | ||
| set(INCLUDE | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/include" | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/ATLMFC/include" | ||
| "${VS_DIR}/VC/Auxiliary/VS/include" | ||
| "${SDK_DIR}/Windows Kits/10/include/${WinSDK_VERSION}/ucrt" | ||
| "${SDK_DIR}/Windows Kits/10/include/${WinSDK_VERSION}/um" | ||
| "${SDK_DIR}/Windows Kits/10/include/${WinSDK_VERSION}/shared" | ||
| "${SDK_DIR}/Windows Kits/10/include/${WinSDK_VERSION}/winrt" | ||
| "${SDK_DIR}/Windows Kits/10/include/${WinSDK_VERSION}/cppwinrt" | ||
| #"${SDK_DIR}/Windows Kits/NETFXSDK/4.8/include/um" | ||
| ) | ||
| cmake_path(CONVERT "${INCLUDE}" TO_NATIVE_PATH_LIST INCLUDE NORMALIZE) | ||
| set(ENV{INCLUDE} "${INCLUDE}") | ||
| set(EXTERNAL_INCLUDE ${INCLUDE}) | ||
| cmake_path(CONVERT "${EXTERNAL_INCLUDE}" TO_NATIVE_PATH_LIST EXTERNAL_INCLUDE NORMALIZE) | ||
|
|
||
| set(ENV{EXTERNAL_INCLUDE} "${EXTERNAL_INCLUDE}") | ||
| set(ENV{DevEnvDir} "${VS_DIR}/Common7/IDE/") | ||
| set(ENV{ExtensionSdkDir} "${SDK_DIR}/Windows Kits/10/ExtensionSDKs") | ||
| set(ENV{UniversalCRTSdkDir} "${SDK_DIR}/Windows Kits/10/") | ||
| set(ENV{UCRTVersion} "${WinSDK_VERSION}") | ||
| set(ENV{VCIDEInstallDir} "${VS_DIR}/Common7/IDE/VC/") | ||
| set(ENV{VCINSTALLDIR} "${VS_DIR}/VC/") | ||
| set(ENV{VCToolsInstallDir} "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/") | ||
| set(ENV{VCToolsRedistDir} "${VS_DIR}/VC/Redist/MSVC/${VCToolkit_REDIST_VERSION}/") | ||
| set(ENV{VCToolsVersion} "${VCToolkit_VERSION}") | ||
| set(ENV{VisualStudioVersion} "17.0") | ||
| set(ENV{VS170COMNTOOLS} "${VS_DIR}/Common7/Tools/") | ||
| set(ENV{VSINSTALLDIR} "${VS_DIR}/") | ||
| set(WindowsLibPath | ||
| "${SDK_DIR}/Windows Kits/10/UnionMetadata/${WinSDK_VERSION}" | ||
| "${SDK_DIR}/Windows Kits/10/References/${WinSDK_VERSION}" | ||
| ) | ||
| cmake_path(CONVERT "${WindowsLibPath}" TO_NATIVE_PATH_LIST WindowsLibPath NORMALIZE) | ||
| set(ENV{WindowsLibPath} "${WindowsLibPath}") | ||
| set(ENV{WindowsSdkBinPath} "${SDK_DIR}/Windows Kits/10/bin/") | ||
| set(ENV{WindowsSdkDir} "${SDK_DIR}/Windows Kits/10/") | ||
| set(ENV{WindowsSDKLibVersion} "${WinSDK_VERSION}/") | ||
| set(ENV{WindowsSdkVerBinPath} "${SDK_DIR}/Windows Kits/10/bin/${WinSDK_VERSION}/") | ||
| set(ENV{WindowsSDKVersion} "${WinSDK_VERSION}/") | ||
| #set(WindowsSDK_ExecutablePath_x64 "${SDK_DIR}/Windows/v10.0A/bin/NETFX 4.8 Tools/x64/") | ||
| #set(WindowsSDK_ExecutablePath_x86 "${SDK_DIR}/Windows/v10.0A/bin/NETFX 4.8 Tools/") | ||
|
|
||
| set(ADD_TO_PATH | ||
| "${VS_DIR}/VC/Tools/MSVC/${VCToolkit_VERSION}/bin/HostX64/x64" | ||
| #${VS_DIR}/Common7/IDE/VC/VCPackages | ||
| #${VS_DIR}/Common7/IDE/CommonExtensions/Microsoft/TestWindow | ||
| #${VS_DIR}/Common7/IDE/CommonExtensions/Microsoft/TeamFoundation/Team Explorer | ||
| "${VS_DIR}/MSBuild/Current/bin/Roslyn" | ||
| #C:/Program Files (x86)/Microsoft SDKs/Windows/v10.0A/bin/NETFX 4.8 Tools/x64/ | ||
| #C:/Program Files (x86)/HTML Help Workshop | ||
| #${VS_DIR}/Common7/IDE/CommonExtensions/Microsoft/FSharp/Tools | ||
| #${VS_DIR}/Team Tools/DiagnosticsHub/Collector | ||
| "${SDK_DIR}/Windows Kits/10/bin/${WinSDK_VERSION}/x64" | ||
| "${SDK_DIR}/Windows Kits/10/bin/x64" | ||
| "${VS_DIR}/MSBuild/Current/Bin/" | ||
| #C:/Windows/Microsoft.NET/Framework64/v4.0.30319 | ||
| #${VS_DIR}/Common7/IDE/ | ||
| #${VS_DIR}/Common7/Tools/ | ||
| ) | ||
| cmake_path(CONVERT "$ENV{PATH}" TO_CMAKE_PATH_LIST path) | ||
| list(PREPEND path ${ADD_TO_PATH}) | ||
|
|
||
| cmake_path(CONVERT "${path}" TO_NATIVE_PATH_LIST path NORMALIZE) | ||
| set(ENV{PATH} "${path}") | ||
|
|
||
| set(ENV{VCPKG_TOOLCHAIN_ENV_ALREADY_SET} "1") | ||
| endif() | ||
|
|
||
| set(MSVC_FOUND TRUE) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| set(VCPKG_POLICY_DLLS_WITHOUT_LIBS enabled) | ||
| set(VCPKG_POLICY_EMPTY_INCLUDE_FOLDER enabled) | ||
| #set(VCPKG_POLICY_SKIP_COPYRIGHT_CHECK enabled) | ||
|
Neumann-A marked this conversation as resolved.
Outdated
|
||
|
|
||
| find_program(pwsh_exe NAMES pwsh powershell) | ||
|
|
||
| set(WinSDK_VERSION "10.0.26100.0") | ||
| set(VCToolkit_VERSION "14.41.34120") | ||
| set(VCToolkit_REDIST_VERSION "14.40.33807") | ||
|
|
||
| include("${CMAKE_CURRENT_LIST_DIR}/portfile_winsdk.cmake") | ||
| include("${CMAKE_CURRENT_LIST_DIR}/portfile_toolkit.cmake") | ||
| include("${CMAKE_CURRENT_LIST_DIR}/portfile_msbuild.cmake") | ||
|
|
||
| if(NOT VCPKG_CRT_LINKAGE STREQUAL "static") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/VS/VC/Redist/MSVC/${VCToolkit_REDIST_VERSION}/x64/Microsoft.VC143.CRT/" DESTINATION "${CURRENT_PACKAGES_DIR}/bin") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/VS/VC/Redist/MSVC/${VCToolkit_REDIST_VERSION}/x64/Microsoft.VC143.MFC/" DESTINATION "${CURRENT_PACKAGES_DIR}/bin") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/WinSDK/Windows Kits/10/Redist/${WinSDK_VERSION}/ucrt/DLLs/x64/" DESTINATION "${CURRENT_PACKAGES_DIR}/bin") | ||
|
|
||
| if(NOT VCPKG_BUILD_TYPE) | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/VS/VC/Redist/MSVC/${VCToolkit_REDIST_VERSION}/debug_nonredist/x64/Microsoft.VC143.DebugCRT/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/VS/VC/Redist/MSVC/${VCToolkit_REDIST_VERSION}/debug_nonredist/x64/Microsoft.VC143.DebugMFC/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/WinSDK/Windows Kits/10/bin/${WinSDK_VERSION}/x64/ucrt" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin") | ||
| file(COPY "${CURRENT_PACKAGES_DIR}/WinSDK/Windows Kits/10/Redist/${WinSDK_VERSION}/ucrt/DLLs/x64/" DESTINATION "${CURRENT_PACKAGES_DIR}/debug/bin" PATTERN "ucrtbase.dll" EXCLUDE) | ||
| endif() | ||
| endif() | ||
|
|
||
| configure_file("${CMAKE_CURRENT_LIST_DIR}/msvc-config.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/${PORT}-config.cmake" @ONLY) | ||
| configure_file("${CMAKE_CURRENT_LIST_DIR}/msvc-env.cmake" "${CURRENT_PACKAGES_DIR}/share/${PORT}/msvc-env.cmake" @ONLY) | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,66 @@ | ||
| block() | ||
| set(MSBuild_FILES "") | ||
| include("${CMAKE_CURRENT_LIST_DIR}/download_msbuild.cmake") | ||
| set(prefix MSBuild) | ||
|
|
||
| foreach(item IN LISTS ${prefix}_FILES) | ||
| vcpkg_download_distfile( | ||
| downloaded_file | ||
| URLS "${${prefix}_${item}_URL}" | ||
| FILENAME "VS-${VERSION}/MSBuild/${${prefix}_${item}_FILENAME}" | ||
| SHA512 "${${prefix}_${item}_SHA512}" | ||
| ) | ||
|
|
||
| list(APPEND vsix_installers "${downloaded_file}") | ||
| endforeach() | ||
|
|
||
| set(counter 0) | ||
| foreach(item IN LISTS vsix_installers) | ||
| vcpkg_execute_required_process( | ||
| COMMAND "${pwsh_exe}" -ExecutionPolicy Bypass -File "${CMAKE_CURRENT_LIST_DIR}/extract-vsix.ps1" "-VsixFile" "${item}" "-ExtractTo" "${CURRENT_PACKAGES_DIR}/VS" | ||
| WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}" | ||
| LOGNAME "extract_msbuild_${counter}.log" | ||
| ) | ||
| endforeach() | ||
|
|
||
| set(msbuild_base "${CURRENT_PACKAGES_DIR}/VS/MSBuild/Microsoft/VC/v170/") | ||
| set(winsdk_props "${msbuild_base}/Microsoft.Cpp.WindowsSDK.props") | ||
| set(vc_common_props "${msbuild_base}/Microsoft.Cpp.Common.props") | ||
| file(READ "${winsdk_props}" winsdk_props_content) | ||
| string(REPLACE | ||
| [[<_LatestWindowsTargetPlatformVersion>$([Microsoft.Build.Utilities.ToolLocationHelper]::GetLatestSDKTargetPlatformVersion($(SDKIdentifier), $(SDKVersion)))</_LatestWindowsTargetPlatformVersion>]] | ||
| "<_LatestWindowsTargetPlatformVersion>${WinSDK_VERSION}</_LatestWindowsTargetPlatformVersion>" | ||
| winsdk_props_content | ||
| "${winsdk_props_content}" | ||
| ) | ||
| string(REPLACE | ||
| [[<WindowsSdkDir_10 Condition=\"'$(WindowsSdkDir_10)' == ''\">$(Registry:HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Microsoft SDKs\\Windows\\v10.0@InstallationFolder)</WindowsSdkDir_10>]] | ||
|
Neumann-A marked this conversation as resolved.
Outdated
|
||
| "" | ||
| winsdk_props_content | ||
| "${winsdk_props_content}" | ||
| ) | ||
| string(REPLACE | ||
| [[<WindowsSdkDir_10 Condition=\"'$(WindowsSdkDir_10)' == ''\">$(Registry:HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Microsoft SDKs\\Windows\\v10.0@InstallationFolder)</WindowsSdkDir_10>]] | ||
|
Neumann-A marked this conversation as resolved.
Outdated
|
||
| "<WindowsSdkDir_10 Condition=\"'$(WindowsSdkDir_10)' == ''\">$(MSBuildThisFileDirectory)\\..\\..\\..\\..\\..\\WinSDK\\Windows Kits\\10\\</WindowsSdkDir_10>" | ||
| winsdk_props_content | ||
| "${winsdk_props_content}" | ||
| ) | ||
| string(REPLACE | ||
| [[<UniversalCRTSdkDir_10 Condition=\"'$(UniversalCRTSdkDir_10)' == ''\">$(Registry:HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows Kits\\Installed Roots@KitsRoot10)</UniversalCRTSdkDir_10>]] | ||
|
Neumann-A marked this conversation as resolved.
Outdated
|
||
| "" | ||
| winsdk_props_content | ||
| "${winsdk_props_content}" | ||
| ) | ||
| string(REPLACE | ||
| [[<UniversalCRTSdkDir_10 Condition=\"'$(UniversalCRTSdkDir_10)' == ''\">$(Registry:HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows Kits\\Installed Roots@KitsRoot10)</UniversalCRTSdkDir_10>]] | ||
|
Neumann-A marked this conversation as resolved.
Outdated
|
||
| "<UniversalCRTSdkDir_10 Condition=\"'$(UniversalCRTSdkDir_10)' == ''\">$(MSBuildThisFileDirectory)\\..\\..\\..\\..\\..\\WinSDK\\Windows Kits\\10\\</UniversalCRTSdkDir_10>" | ||
| winsdk_props_content | ||
| "${winsdk_props_content}" | ||
| ) | ||
| file(WRITE "${winsdk_props}" "${winsdk_props_content}") | ||
|
|
||
| vcpkg_replace_string("${vc_common_props}" | ||
| [[<VSInstallDir>$(VsInstallRoot)\</VSInstallDir>]] | ||
| "<VSInstallDir>$(MSBuildThisFileDirectory)\\..\\..\\..\\..\\</VSInstallDir>" | ||
| ) | ||
|
Neumann-A marked this conversation as resolved.
|
||
| endblock() | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,29 @@ | ||
| block() | ||
| set(VCToolkit_FILES "") | ||
| include("${CMAKE_CURRENT_LIST_DIR}/download_toolkit.cmake") | ||
| set(prefix VCToolkit) | ||
|
|
||
| foreach(item IN LISTS VCToolkit_FILES) | ||
| vcpkg_download_distfile( | ||
| downloaded_file | ||
| URLS "${${prefix}_${item}_URL}" | ||
| FILENAME "VS-${VERSION}/VS/${${prefix}_${item}_FILENAME}" | ||
| SHA512 "${${prefix}_${item}_SHA512}" | ||
| ) | ||
|
|
||
| list(APPEND vsix_installers "${downloaded_file}") | ||
| endforeach() | ||
|
|
||
| set(counter 0) | ||
| foreach(item IN LISTS vsix_installers) | ||
| math(EXPR counter "${counter} + 1") | ||
| message(STATUS "Extracting '${item}'") | ||
| vcpkg_execute_required_process( | ||
| COMMAND "${pwsh_exe}" -ExecutionPolicy Bypass -File "${CMAKE_CURRENT_LIST_DIR}/extract-vsix.ps1" "-VsixFile" "${item}" "-ExtractTo" "${CURRENT_PACKAGES_DIR}/VS" | ||
| WORKING_DIRECTORY "${CURRENT_BUILDTREES_DIR}" | ||
| LOGNAME "extract_msbuild_${counter}.log" | ||
| ) | ||
| endforeach() | ||
| endblock() | ||
|
|
||
| #D:\vcpkg_folders\no_msvc\packages\msvc_x64-windows-release\VS\VC\Tools\MSVC\14.41.34120 |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.