File tree Expand file tree Collapse file tree
internal/frontend/bridge-gui Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -55,14 +55,6 @@ endif()
5555
5656set (VCPKG_ROOT "${BRIDGE_REPO_ROOT} /extern/vcpkg" )
5757message (STATUS "VCPKG_ROOT is ${VCPKG_ROOT} " )
58- if (WIN32 )
59- find_program (VCPKG_EXE "${VCPKG_ROOT} /vcpkg.exe" )
60- else ()
61- find_program (VCPKG_EXE "${VCPKG_ROOT} /vcpkg" )
62- endif ()
63- if (NOT VCPKG_EXE)
64- message (FATAL_ERROR "vcpkg is not installed. Run build.sh (macOS/Linux) or build.ps1 (Windows) first." )
65- endif ()
6658
6759# For now we support only a single architecture for macOS (ARM64 or x86_64). We need to investigate how to build universal binaries with vcpkg.
6860if (APPLE )
@@ -88,5 +80,3 @@ if (WIN32)
8880 message (STATUS "Building for Intel x64 Windows computers" )
8981 set (VCPKG_TARGET_TRIPLET x64-windows)
9082endif ()
91-
92- set (CMAKE_TOOLCHAIN_FILE "${VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake" CACHE STRING "toolchain" )
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ $buildDir=(Join-Path $scriptDir "cmake-build-$buildConfig".ToLower())
6363$vcpkgRoot = (Join-Path $bridgeRepoRootDir " extern/vcpkg" - Resolve)
6464$vcpkgExe = (Join-Path $vcpkgRoot " vcpkg.exe" )
6565$vcpkgBootstrap = (Join-Path $vcpkgRoot " bootstrap-vcpkg.bat" )
66+ $vcpkgToolchain = (Join-Path $vcpkgRoot " scripts/buildsystems/vcpkg.cmake" )
6667
6768function check_exit () {
6869 if ($? -ne $True )
@@ -91,6 +92,7 @@ git submodule update --init --recursive $vcpkgRoot
9192. $vcpkgExe install sentry- native:x64- windows grpc:x64- windows -- clean- after- build
9293. $vcpkgExe upgrade -- no- dry- run
9394. $cmakeExe - G " Visual Studio 17 2022" - DCMAKE_BUILD_TYPE= " $buildConfig " `
95+ - DCMAKE_TOOLCHAIN_FILE= " $vcpkgToolchain " `
9496 - DBRIDGE_APP_FULL_NAME= " $bridgeFullName " `
9597 - DBRIDGE_VENDOR= " $bridgeVendor " `
9698 - DBRIDGE_REVISION= " $REVISION_HASH " `
Original file line number Diff line number Diff line change 9595
9696cmake \
9797 -DCMAKE_BUILD_TYPE=" ${BUILD_CONFIG} " \
98+ -DCMAKE_TOOLCHAIN_FILE=" ${VCPKG_ROOT} /scripts/buildsystems/vcpkg.cmake" \
9899 -DBRIDGE_APP_FULL_NAME=" ${BRIDGE_APP_FULL_NAME} " \
99100 -DBRIDGE_VENDOR=" ${BRIDGE_VENDOR} " \
100101 -DBRIDGE_REVISION=" ${BRIDGE_REVISION} " \
You can’t perform that action at this time.
0 commit comments