Kaydet (Commit) 9ba9307e authored tarafından Aron Budea's avatar Aron Budea Kaydeden (comit) Andras Timar

Don't search for old (<= 2.0) .NET SDK anymore

Try to find >= 4.6 .NET SDK first.

+allow .NET SDK 4.7.2.

Change-Id: I64084e894ee829ecff091fe16a45f309a51eb4d5
Reviewed-on: https://gerrit.libreoffice.org/57550
Tested-by: Jenkins
Reviewed-by: 's avatarMike Kaganski <mike.kaganski@collabora.com>
(cherry picked from commit 9b8c8c70)
Reviewed-on: https://gerrit.libreoffice.org/59205Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst 6b9fb354
...@@ -4997,7 +4997,7 @@ find_al() ...@@ -4997,7 +4997,7 @@ find_al()
done done
# We need this additional check to detect 4.6.1 or above. # We need this additional check to detect 4.6.1 or above.
for ver in 4.7.1 4.7 4.6.2 4.6.1; do for ver in 4.7.2 4.7.1 4.7 4.6.2 4.6.1; do
reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/WinSDK-NetFx40Tools/InstallationFolder" reg_get_value_32 "HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/Microsoft SDKs/NETFXSDK/$ver/WinSDK-NetFx40Tools/InstallationFolder"
if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then if test -n "$regvalue" -a \( -f "$regvalue/al.exe" -o -f "$regvalue/bin/al.exe" \); then
altest=$regvalue altest=$regvalue
...@@ -5012,26 +5012,11 @@ find_al() ...@@ -5012,26 +5012,11 @@ find_al()
done done
} }
find_dotnetsdk()
{
# Return value: $frametest (that's a silly name...)
unset frametest
for ver in 1.1 2.0; do
reg_get_value_32 HKEY_LOCAL_MACHINE/SOFTWARE/Microsoft/.NETFramework/sdkInstallRootv$ver
if test -n "$regvalue"; then
frametest=$regvalue
return
fi
done
}
find_dotnetsdk46() find_dotnetsdk46()
{ {
unset frametest unset frametest
for ver in 4.7.1 4.7 4.6.2 4.6.1 4.6; do for ver in 4.7.2 4.7.1 4.7 4.6.2 4.6.1 4.6; do
reg_get_value_64 "HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Microsoft SDKs/NETFXSDK/$ver/KitsInstallationFolder" reg_get_value_64 "HKEY_LOCAL_MACHINE/SOFTWARE/Wow6432Node/Microsoft/Microsoft SDKs/NETFXSDK/$ver/KitsInstallationFolder"
if test -n "$regvalue"; then if test -n "$regvalue"; then
frametest=$regvalue frametest=$regvalue
...@@ -5398,23 +5383,17 @@ if test "$build_os" = "cygwin"; then ...@@ -5398,23 +5383,17 @@ if test "$build_os" = "cygwin"; then
dnl Check mscoree.lib / .NET Framework dir dnl Check mscoree.lib / .NET Framework dir
AC_MSG_CHECKING(.NET Framework) AC_MSG_CHECKING(.NET Framework)
find_dotnetsdk find_dotnetsdk46
if test -f "$frametest/lib/mscoree.lib"; then PathFormat "$frametest"
frametest="$formatted_path"
if test -f "$frametest/Lib/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
DOTNET_FRAMEWORK_HOME="$frametest" DOTNET_FRAMEWORK_HOME="$frametest"
else else
find_winsdk find_winsdk
if test -f "$winsdktest/lib/mscoree.lib" -o -f "$winsdktest/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then if test -f "$winsdktest/lib/mscoree.lib" -o -f "$winsdktest/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
DOTNET_FRAMEWORK_HOME="$winsdktest" DOTNET_FRAMEWORK_HOME="$winsdktest"
else
find_dotnetsdk46
PathFormat "$frametest"
frametest="$formatted_path"
if test -f "$frametest/Lib/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
DOTNET_FRAMEWORK_HOME="$frametest"
fi
fi fi
fi fi
if test ! -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib" -a ! -f "$DOTNET_FRAMEWORK_HOME/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/mscoree.lib" -a ! -f "$DOTNET_FRAMEWORK_HOME/Lib/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then if test ! -f "$DOTNET_FRAMEWORK_HOME/lib/mscoree.lib" -a ! -f "$DOTNET_FRAMEWORK_HOME/lib/$winsdklibsubdir/um/$WINDOWS_SDK_ARCH/mscoree.lib" -a ! -f "$DOTNET_FRAMEWORK_HOME/Lib/um/$WINDOWS_SDK_ARCH/mscoree.lib"; then
AC_MSG_ERROR([mscoree.lib not found]) AC_MSG_ERROR([mscoree.lib not found])
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment