| 1234567891011121314151617181920212223242526272829303132333435363738 | REM Copyright The OpenTelemetry AuthorsREM SPDX-License-Identifier: Apache-2.0@echo offset BUILDTOOLS_VERSION=vs2019set CMAKE_GEN="Visual Studio 16 2019"echo Building Google Benchmark (test only dependency)...@setlocal ENABLEEXTENSIONSecho Auto-detecting Visual Studio version...call "%~dp0\vcvars.cmd"pushd "%~dp0\.."set "ROOT=%CD%"set MAXCPUCOUNT=%NUMBER_OF_PROCESSORS%set platform=if not exist "%ROOT%\third_party\benchmark\" (  echo "Google Benchmark library is not available, skipping benchmark build."  call skip_the_build)cd "%ROOT%\third_party\benchmark\"set "GOOGLETEST_PATH=%ROOT%\third_party\googletest"if not exist "build" (  mkdir build)cd buildREM By default we generate the project for the older Visual Studio 2017 even if we have newer version installedcmake ../ -G %CMAKE_GEN% -Ax64 -DBENCHMARK_ENABLE_TESTING=OFFset SOLUTION=%ROOT%\third_party\benchmark\build\benchmark.slnmsbuild %SOLUTION% /maxcpucount:%MAXCPUCOUNT% /p:Configuration=Debug /p:Platform=x64msbuild %SOLUTION% /maxcpucount:%MAXCPUCOUNT% /p:Configuration=Release /p:Platform=x64popd:skip_the_build
 |