File: build-vs2015.cmd

package info (click to toggle)
opentelemetry-cpp 1.23.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 11,372 kB
  • sloc: cpp: 96,239; sh: 1,766; makefile: 36; python: 31
file content (36 lines) | stat: -rw-r--r-- 1,146 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
REM Copyright The OpenTelemetry Authors
REM SPDX-License-Identifier: Apache-2.0

REM Build with Visual Studio 2015
set "PATH=%ProgramFiles(x86)%\MSBuild\14.0\Bin;%ProgramFiles(x86)%\Microsoft Visual Studio 14.0\VC\bin;%PATH%"

REM ### Note that vcpkg built with 2019/2017 can't be used with 2015!
REM ### Consider to specify custom VCPKG_ROOT for 2015 as follows:
REM
REM set VCPKG_ROOT=C:\vcpkg.2015
REM

set BUILDTOOLS_VERSION=vs2015
set ARCH=x64
if NOT "%1"=="" (
  set ARCH=%1
)
set "CMAKE_GEN=Ninja"
set "VCPKG_VISUAL_STUDIO_PATH=%ProgramFiles(x86)%\Microsoft Visual Studio 14.0"

REM Building with Windows SDK 8.1
set "PATH=%ProgramFiles(x86)%\Windows Kits\8.1\bin\%ARCH%;%PATH%"
set WINSDK_VERSION=8.1
set CMAKE_SYSTEM_VERSION=8.1
set VCPKG_PLATFORM_TOOLSET=v140

REM ### Replace above Windows SDK 8.1 by Windows 10 SDK if necessary.
REM ### Resulting binaries may not be compatible with Windows 8
REM
REM set WINSDK_VERSION=10.0.19041.0
REM set "PATH=%ProgramFiles(x86)%\Windows Kits\10\bin\10.0.19041.0\%ARCH%\;%PATH%"
REM

cd %~dp0
call setup-buildtools.cmd
call build.cmd -DMSVC_TOOLSET_VERSION=140