jdk

Форк
0
/
extract-vs-env.cmd 
47 строк · 1.7 Кб
1
@echo off
2
REM
3
REM Copyright (c) 2020, Oracle and/or its affiliates. All rights reserved.
4
REM DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
5
REM
6
REM This code is free software; you can redistribute it and/or modify it
7
REM under the terms of the GNU General Public License version 2 only, as
8
REM published by the Free Software Foundation.
9
REM
10
REM This code is distributed in the hope that it will be useful, but WITHOUT
11
REM ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12
REM FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13
REM version 2 for more details (a copy is included in the LICENSE file that
14
REM accompanied this code).
15
REM
16
REM You should have received a copy of the GNU General Public License version
17
REM 2 along with this work; if not, write to the Free Software Foundation,
18
REM Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19
REM
20
REM Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21
REM or visit www.oracle.com if you need additional information or have any
22
REM questions.
23
REM
24

25
set vcvarscmd=%1
26
set output=%2
27
if not "%3" == "auto" set version=-vcvars_ver=%3
28

29
set PATH_BEFORE=%PATH%
30

31
call %vcvarscmd% %version% %4 %5 %6 %7 %8 %9
32
if exist %output% del %output%
33

34
call :extract "%PATH_BEFORE%", PATH_BEFORE
35
call :extract "%PATH%", PATH_AFTER
36
call :extract "%INCLUDE%", VS_INCLUDE
37
call :extract "%LIB%", VS_LIB
38
call :extract "%VCINSTALLDIR%", VCINSTALLDIR
39
call :extract "%VCToolsRedistDir%", VCToolsRedistDir
40
call :extract "%WindowsSdkDir%", WindowsSdkDir
41
call :extract "%WINDOWSSDKDIR%", WINDOWSSDKDIR
42

43
exit /b 0
44

45
:extract
46
echo %~2=$($BASH $TOPDIR/make/scripts/fixpath.sh -i import '%~1 ') >> %output%
47
exit /b 0
48

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.