forked from openjdk/jdk
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
8283723: Update Visual Studio 2022 to version 17.1.0 for Oracle build…
…s on Windows Reviewed-by: erikj, ihse
- Loading branch information
Showing
5 changed files
with
39 additions
and
235 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
#!/bin/bash | ||
# | ||
# Copyright (c) 2019, 2020, Oracle and/or its affiliates. All rights reserved. | ||
# Copyright (c) 2015, 2022, Oracle and/or its affiliates. All rights reserved. | ||
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. | ||
# | ||
# This code is free software; you can redistribute it and/or modify it | ||
|
@@ -28,14 +28,19 @@ | |
# suitable for building OpenJDK and OracleJDK. Needs to run in Cygwin or WSL. | ||
# [email protected] | ||
|
||
VS_VERSION="2019" | ||
VS_VERSION_NUM_NODOT="160" | ||
usage_and_exit() { | ||
echo "Usage: createWindowsDevkit.sh <2019 | 2022>" | ||
exit 1 | ||
} | ||
|
||
if [ ! $# = 1 ]; then | ||
usage_and_exit | ||
fi | ||
|
||
VS_VERSION="$1" | ||
|
||
VS_DLL_VERSION="140" | ||
SDK_VERSION="10" | ||
SDK_FULL_VERSION="10.0.17763.0" | ||
MSVC_DIR="Microsoft.VC142.CRT" | ||
MSVC_FULL_VERSION="14.12.27508" | ||
REDIST_FULL_VERSION="14.20.27508" | ||
|
||
SCRIPT_DIR="$(cd "$(dirname $0)" > /dev/null && pwd)" | ||
BUILD_DIR="${SCRIPT_DIR}/../../build/devkit" | ||
|
@@ -66,13 +71,33 @@ fi | |
|
||
# Work around the insanely named ProgramFiles(x86) env variable | ||
PROGRAMFILES_X86="$($WINDOWS_PATH_TO_UNIX_PATH "$(cmd.exe /c set | sed -n 's/^ProgramFiles(x86)=//p' | tr -d '\r')")" | ||
PROGRAMFILES="$($WINDOWS_PATH_TO_UNIX_PATH "$PROGRAMFILES")" | ||
|
||
case $VS_VERSION in | ||
2019) | ||
MSVC_PROGRAMFILES_DIR="${PROGRAMFILES_X86}" | ||
MSVC_CRT_DIR="Microsoft.VC142.CRT" | ||
VS_VERSION_NUM_NODOT="160" | ||
;; | ||
|
||
2022) | ||
MSVC_PROGRAMFILES_DIR="${PROGRAMFILES}" | ||
MSVC_CRT_DIR="Microsoft.VC143.CRT" | ||
VS_VERSION_NUM_NODOT="170" | ||
;; | ||
*) | ||
echo "Unexpected VS version: $VS_VERSION" | ||
usage_and_exit | ||
;; | ||
esac | ||
|
||
|
||
# Find Visual Studio installation dir | ||
VSNNNCOMNTOOLS=`cmd.exe /c echo %VS${VS_VERSION_NUM_NODOT}COMNTOOLS% | tr -d '\r'` | ||
if [ -d "$VSNNNCOMNTOOLS" ]; then | ||
VS_INSTALL_DIR="$($WINDOWS_PATH_TO_UNIX_PATH "$VSNNNCOMNTOOLS/../..")" | ||
else | ||
VS_INSTALL_DIR="${PROGRAMFILES_X86}/Microsoft Visual Studio/2019" | ||
VS_INSTALL_DIR="${MSVC_PROGRAMFILES_DIR}/Microsoft Visual Studio/$VS_VERSION" | ||
VS_INSTALL_DIR="$(ls -d "${VS_INSTALL_DIR}/"{Community,Professional,Enterprise} 2>/dev/null | head -n1)" | ||
fi | ||
echo "VS_INSTALL_DIR: $VS_INSTALL_DIR" | ||
|
@@ -101,9 +126,9 @@ DEVKIT_BUNDLE="${DEVKIT_ROOT}.tar.gz" | |
|
||
echo "Creating devkit in $DEVKIT_ROOT" | ||
|
||
MSVCR_DLL=${MSVC_DIR}/vcruntime${VS_DLL_VERSION}.dll | ||
VCRUNTIME_1_DLL=${MSVC_DIR}/vcruntime${VS_DLL_VERSION}_1.dll | ||
MSVCP_DLL=${MSVC_DIR}/msvcp${VS_DLL_VERSION}.dll | ||
MSVCR_DLL=${MSVC_CRT_DIR}/vcruntime${VS_DLL_VERSION}.dll | ||
VCRUNTIME_1_DLL=${MSVC_CRT_DIR}/vcruntime${VS_DLL_VERSION}_1.dll | ||
MSVCP_DLL=${MSVC_CRT_DIR}/msvcp${VS_DLL_VERSION}.dll | ||
|
||
################################################################################ | ||
# Copy Visual Studio files | ||
|
This file was deleted.
Oops, something went wrong.