-
Notifications
You must be signed in to change notification settings - Fork 62
/
set_env.bat
executable file
·30 lines (24 loc) · 1.29 KB
/
set_env.bat
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
@echo off
rem
rem Copyright Elasticsearch B.V. and/or licensed to Elasticsearch B.V. under one
rem or more contributor license agreements. Licensed under the Elastic License
rem 2.0 and the following additional limitation. Functionality enabled by the
rem files subject to the Elastic License 2.0 may only be used in production when
rem invoked by an Elasticsearch process with a license key installed that permits
rem use of machine learning features. You may not use this file except in
rem compliance with the Elastic License 2.0 and the foregoing additional
rem limitation.
rem
rem Set up a build environment, to ensure repeatable builds
rem Initialize the Visual Studio command prompt environment variables
call "C:\Program Files\Microsoft Visual Studio\2022\Professional\Common7\Tools\vsdevcmd.bat" -arch=amd64
rem Set %CPP_SRC_HOME% to be an absolute path to this script's location, as
rem different builds will come from different repositories and go to different
rem staging areas
set CPP_SRC_HOME=%~dp0
rem Assume the drive letter where our 3rd party dependencies are installed under
rem \usr\local is the current drive at the time this script is run
set ROOT=%CD:~0,2%
set PATH=C:\Program Files\CMake\bin;%CPP_SRC_HOME%\build\distribution\platform\windows-x86_64\bin;%PATH%
set INCLUDE=
set LIBPATH=