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.
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.
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).
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.
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
27
if not "%3" == "auto" set version=-vcvars_ver=%3
31
call %vcvarscmd% %version% %4 %5 %6 %7 %8 %9
32
if exist %output% del %output%
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
46
echo %~2=$($BASH $TOPDIR/make/scripts/fixpath.sh -i import '%~1 ') >> %output%