Update dependencies from https://github.com/dotnet/arcade build 20211227.1 (#12908)
[main] Update dependencies from dotnet/arcade - Coherency Updates: - Microsoft.DotNet.XliffTasks: from 1.0.0-beta.21621.1 to 1.0.0-beta.21624.1 (parent: Microsoft.DotNet.Arcade.Sdk)
This commit is contained in:
parent
7f8edf63a4
commit
416a6e8833
5 changed files with 61 additions and 31 deletions
|
@ -172,19 +172,19 @@
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ProductDependencies>
|
</ProductDependencies>
|
||||||
<ToolsetDependencies>
|
<ToolsetDependencies>
|
||||||
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21623.2">
|
<Dependency Name="Microsoft.DotNet.Arcade.Sdk" Version="7.0.0-beta.21627.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>1a66526b0c1eb068cab89909b7d52fe6f57d64df</Sha>
|
<Sha>28ea474e02753fe23295f60e8792bc845b8b6e20</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="7.0.0-beta.21623.2">
|
<Dependency Name="Microsoft.DotNet.CMake.Sdk" Version="7.0.0-beta.21627.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>1a66526b0c1eb068cab89909b7d52fe6f57d64df</Sha>
|
<Sha>28ea474e02753fe23295f60e8792bc845b8b6e20</Sha>
|
||||||
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
<SourceBuild RepoName="arcade" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21623.2">
|
<Dependency Name="Microsoft.DotNet.Build.Tasks.Installers" Version="7.0.0-beta.21627.1">
|
||||||
<Uri>https://github.com/dotnet/arcade</Uri>
|
<Uri>https://github.com/dotnet/arcade</Uri>
|
||||||
<Sha>1a66526b0c1eb068cab89909b7d52fe6f57d64df</Sha>
|
<Sha>28ea474e02753fe23295f60e8792bc845b8b6e20</Sha>
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="7.0.0-alpha.1.21616.2">
|
<Dependency Name="Microsoft.SourceBuild.Intermediate.source-build-reference-packages" Version="7.0.0-alpha.1.21616.2">
|
||||||
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
<Uri>https://github.com/dotnet/source-build-reference-packages</Uri>
|
||||||
|
@ -196,9 +196,9 @@
|
||||||
<Sha>392126dabae557bf0664f599b5469ccc6d1dfcd8</Sha>
|
<Sha>392126dabae557bf0664f599b5469ccc6d1dfcd8</Sha>
|
||||||
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
|
<SourceBuild RepoName="sourcelink" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.21621.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
<Dependency Name="Microsoft.DotNet.XliffTasks" Version="1.0.0-beta.21624.1" CoherentParentDependency="Microsoft.DotNet.Arcade.Sdk">
|
||||||
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
|
<Uri>https://github.com/dotnet/xliff-tasks</Uri>
|
||||||
<Sha>24deafb2c24a96bf2ab5b2eb6c9306532bfcf31a</Sha>
|
<Sha>83b25ddf3bb32541ae885e9f3b2e8503e4488902</Sha>
|
||||||
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
|
<SourceBuild RepoName="xliff-tasks" ManagedOnly="true" />
|
||||||
</Dependency>
|
</Dependency>
|
||||||
</ToolsetDependencies>
|
</ToolsetDependencies>
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/arcade -->
|
<!-- Dependency from https://github.com/dotnet/arcade -->
|
||||||
<MicrosoftDotNetBuildTasksInstallersPackageVersion>7.0.0-beta.21623.2</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
<MicrosoftDotNetBuildTasksInstallersPackageVersion>7.0.0-beta.21627.1</MicrosoftDotNetBuildTasksInstallersPackageVersion>
|
||||||
</PropertyGroup>
|
</PropertyGroup>
|
||||||
<PropertyGroup>
|
<PropertyGroup>
|
||||||
<!-- Dependency from https://github.com/dotnet/winforms -->
|
<!-- Dependency from https://github.com/dotnet/winforms -->
|
||||||
|
|
|
@ -3,18 +3,26 @@ set(CROSS_ROOTFS $ENV{ROOTFS_DIR})
|
||||||
set(TARGET_ARCH_NAME $ENV{TARGET_BUILD_ARCH})
|
set(TARGET_ARCH_NAME $ENV{TARGET_BUILD_ARCH})
|
||||||
if(EXISTS ${CROSS_ROOTFS}/bin/freebsd-version)
|
if(EXISTS ${CROSS_ROOTFS}/bin/freebsd-version)
|
||||||
set(CMAKE_SYSTEM_NAME FreeBSD)
|
set(CMAKE_SYSTEM_NAME FreeBSD)
|
||||||
|
set(FREEBSD 1)
|
||||||
elseif(EXISTS ${CROSS_ROOTFS}/usr/platform/i86pc)
|
elseif(EXISTS ${CROSS_ROOTFS}/usr/platform/i86pc)
|
||||||
set(CMAKE_SYSTEM_NAME SunOS)
|
set(CMAKE_SYSTEM_NAME SunOS)
|
||||||
set(ILLUMOS 1)
|
set(ILLUMOS 1)
|
||||||
else()
|
else()
|
||||||
set(CMAKE_SYSTEM_NAME Linux)
|
set(CMAKE_SYSTEM_NAME Linux)
|
||||||
|
set(LINUX 1)
|
||||||
endif()
|
endif()
|
||||||
set(CMAKE_SYSTEM_VERSION 1)
|
set(CMAKE_SYSTEM_VERSION 1)
|
||||||
|
|
||||||
|
if(EXISTS ${CROSS_ROOTFS}/etc/tizen-release)
|
||||||
|
set(TIZEN 1)
|
||||||
|
elseif(EXISTS ${CROSS_ROOTFS}/android_platform)
|
||||||
|
set(ANDROID 1)
|
||||||
|
endif()
|
||||||
|
|
||||||
if(TARGET_ARCH_NAME STREQUAL "armel")
|
if(TARGET_ARCH_NAME STREQUAL "armel")
|
||||||
set(CMAKE_SYSTEM_PROCESSOR armv7l)
|
set(CMAKE_SYSTEM_PROCESSOR armv7l)
|
||||||
set(TOOLCHAIN "arm-linux-gnueabi")
|
set(TOOLCHAIN "arm-linux-gnueabi")
|
||||||
if("$ENV{__DistroRid}" MATCHES "tizen.*")
|
if(TIZEN)
|
||||||
set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/9.2.0")
|
set(TIZEN_TOOLCHAIN "armv7l-tizen-linux-gnueabi/9.2.0")
|
||||||
endif()
|
endif()
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "arm")
|
elseif(TARGET_ARCH_NAME STREQUAL "arm")
|
||||||
|
@ -26,7 +34,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "arm")
|
||||||
else()
|
else()
|
||||||
set(TOOLCHAIN "arm-linux-gnueabihf")
|
set(TOOLCHAIN "arm-linux-gnueabihf")
|
||||||
endif()
|
endif()
|
||||||
if("$ENV{__DistroRid}" MATCHES "tizen.*")
|
if(TIZEN)
|
||||||
set(TIZEN_TOOLCHAIN "armv7hl-tizen-linux-gnueabihf/9.2.0")
|
set(TIZEN_TOOLCHAIN "armv7hl-tizen-linux-gnueabihf/9.2.0")
|
||||||
endif()
|
endif()
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
||||||
|
@ -36,7 +44,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
||||||
else()
|
else()
|
||||||
set(TOOLCHAIN "aarch64-linux-gnu")
|
set(TOOLCHAIN "aarch64-linux-gnu")
|
||||||
endif()
|
endif()
|
||||||
if("$ENV{__DistroRid}" MATCHES "tizen.*")
|
if(TIZEN)
|
||||||
set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0")
|
set(TIZEN_TOOLCHAIN "aarch64-tizen-linux-gnu/9.2.0")
|
||||||
endif()
|
endif()
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "s390x")
|
elseif(TARGET_ARCH_NAME STREQUAL "s390x")
|
||||||
|
@ -45,7 +53,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "s390x")
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "x86")
|
elseif(TARGET_ARCH_NAME STREQUAL "x86")
|
||||||
set(CMAKE_SYSTEM_PROCESSOR i686)
|
set(CMAKE_SYSTEM_PROCESSOR i686)
|
||||||
set(TOOLCHAIN "i686-linux-gnu")
|
set(TOOLCHAIN "i686-linux-gnu")
|
||||||
elseif (CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
elseif (FREEBSD)
|
||||||
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
|
set(CMAKE_SYSTEM_PROCESSOR "x86_64")
|
||||||
set(triple "x86_64-unknown-freebsd12")
|
set(triple "x86_64-unknown-freebsd12")
|
||||||
elseif (ILLUMOS)
|
elseif (ILLUMOS)
|
||||||
|
@ -60,7 +68,7 @@ if(DEFINED ENV{TOOLCHAIN})
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# Specify include paths
|
# Specify include paths
|
||||||
if(DEFINED TIZEN_TOOLCHAIN)
|
if(TIZEN)
|
||||||
if(TARGET_ARCH_NAME STREQUAL "arm")
|
if(TARGET_ARCH_NAME STREQUAL "arm")
|
||||||
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
|
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/)
|
||||||
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/armv7hl-tizen-linux-gnueabihf)
|
include_directories(SYSTEM ${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}/include/c++/armv7hl-tizen-linux-gnueabihf)
|
||||||
|
@ -75,7 +83,7 @@ if(DEFINED TIZEN_TOOLCHAIN)
|
||||||
endif()
|
endif()
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if("$ENV{__DistroRid}" MATCHES "android.*")
|
if(ANDROID)
|
||||||
if(TARGET_ARCH_NAME STREQUAL "arm")
|
if(TARGET_ARCH_NAME STREQUAL "arm")
|
||||||
set(ANDROID_ABI armeabi-v7a)
|
set(ANDROID_ABI armeabi-v7a)
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
||||||
|
@ -83,7 +91,9 @@ if("$ENV{__DistroRid}" MATCHES "android.*")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
# extract platform number required by the NDK's toolchain
|
# extract platform number required by the NDK's toolchain
|
||||||
string(REGEX REPLACE ".*\\.([0-9]+)-.*" "\\1" ANDROID_PLATFORM "$ENV{__DistroRid}")
|
file(READ "${CROSS_ROOTFS}/android_platform" RID_FILE_CONTENTS)
|
||||||
|
string(REPLACE "RID=" "" ANDROID_RID "${RID_FILE_CONTENTS}")
|
||||||
|
string(REGEX REPLACE ".*\\.([0-9]+)-.*" "\\1" ANDROID_PLATFORM "${ANDROID_RID}")
|
||||||
|
|
||||||
set(ANDROID_TOOLCHAIN clang)
|
set(ANDROID_TOOLCHAIN clang)
|
||||||
set(FEATURE_EVENT_TRACE 0) # disable event trace as there is no lttng-ust package in termux repository
|
set(FEATURE_EVENT_TRACE 0) # disable event trace as there is no lttng-ust package in termux repository
|
||||||
|
@ -92,7 +102,7 @@ if("$ENV{__DistroRid}" MATCHES "android.*")
|
||||||
|
|
||||||
# include official NDK toolchain script
|
# include official NDK toolchain script
|
||||||
include(${CROSS_ROOTFS}/../build/cmake/android.toolchain.cmake)
|
include(${CROSS_ROOTFS}/../build/cmake/android.toolchain.cmake)
|
||||||
elseif(CMAKE_SYSTEM_NAME STREQUAL "FreeBSD")
|
elseif(FREEBSD)
|
||||||
# we cross-compile by instructing clang
|
# we cross-compile by instructing clang
|
||||||
set(CMAKE_C_COMPILER_TARGET ${triple})
|
set(CMAKE_C_COMPILER_TARGET ${triple})
|
||||||
set(CMAKE_CXX_COMPILER_TARGET ${triple})
|
set(CMAKE_CXX_COMPILER_TARGET ${triple})
|
||||||
|
@ -152,20 +162,20 @@ function(add_toolchain_linker_flag Flag)
|
||||||
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}_INIT" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}_INIT} ${Flag}" PARENT_SCOPE)
|
set("CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}_INIT" "${CMAKE_SHARED_LINKER_FLAGS${CONFIG_SUFFIX}_INIT} ${Flag}" PARENT_SCOPE)
|
||||||
endfunction()
|
endfunction()
|
||||||
|
|
||||||
if(CMAKE_SYSTEM_NAME STREQUAL "Linux")
|
if(LINUX)
|
||||||
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/lib/${TOOLCHAIN}")
|
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/lib/${TOOLCHAIN}")
|
||||||
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib/${TOOLCHAIN}")
|
add_toolchain_linker_flag("-Wl,--rpath-link=${CROSS_ROOTFS}/usr/lib/${TOOLCHAIN}")
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(TARGET_ARCH_NAME STREQUAL "arm" OR TARGET_ARCH_NAME STREQUAL "armel")
|
if(TARGET_ARCH_NAME MATCHES "^(arm|armel)$")
|
||||||
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
|
if(TIZEN)
|
||||||
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
|
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib/gcc/${TIZEN_TOOLCHAIN}")
|
||||||
endif()
|
endif()
|
||||||
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
elseif(TARGET_ARCH_NAME STREQUAL "arm64")
|
||||||
if(DEFINED TIZEN_TOOLCHAIN) # For Tizen only
|
if(TIZEN)
|
||||||
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
|
add_toolchain_linker_flag("-B${CROSS_ROOTFS}/usr/lib64/gcc/${TIZEN_TOOLCHAIN}")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib64")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/lib64")
|
||||||
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib64")
|
add_toolchain_linker_flag("-L${CROSS_ROOTFS}/usr/lib64")
|
||||||
|
@ -184,7 +194,7 @@ endif()
|
||||||
|
|
||||||
# Specify compile options
|
# Specify compile options
|
||||||
|
|
||||||
if((TARGET_ARCH_NAME MATCHES "^(arm|armel|arm64|s390x)$" AND NOT "$ENV{__DistroRid}" MATCHES "android.*") OR ILLUMOS)
|
if((TARGET_ARCH_NAME MATCHES "^(arm|armel|arm64|s390x)$" AND NOT ANDROID) OR ILLUMOS)
|
||||||
set(CMAKE_C_COMPILER_TARGET ${TOOLCHAIN})
|
set(CMAKE_C_COMPILER_TARGET ${TOOLCHAIN})
|
||||||
set(CMAKE_CXX_COMPILER_TARGET ${TOOLCHAIN})
|
set(CMAKE_CXX_COMPILER_TARGET ${TOOLCHAIN})
|
||||||
set(CMAKE_ASM_COMPILER_TARGET ${TOOLCHAIN})
|
set(CMAKE_ASM_COMPILER_TARGET ${TOOLCHAIN})
|
||||||
|
@ -211,7 +221,7 @@ elseif(TARGET_ARCH_NAME STREQUAL "x86")
|
||||||
add_compile_options(-Wno-error=unused-command-line-argument)
|
add_compile_options(-Wno-error=unused-command-line-argument)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
if(DEFINED TIZEN_TOOLCHAIN)
|
if(TIZEN)
|
||||||
if(TARGET_ARCH_NAME MATCHES "^(arm|armel|arm64)$")
|
if(TARGET_ARCH_NAME MATCHES "^(arm|armel|arm64)$")
|
||||||
add_compile_options(-Wno-deprecated-declarations) # compile-time option
|
add_compile_options(-Wno-deprecated-declarations) # compile-time option
|
||||||
add_compile_options(-D__extern_always_inline=inline) # compile-time option
|
add_compile_options(-D__extern_always_inline=inline) # compile-time option
|
||||||
|
|
|
@ -6,21 +6,41 @@
|
||||||
|
|
||||||
if [[ "$#" -lt 3 ]]; then
|
if [[ "$#" -lt 3 ]]; then
|
||||||
echo "Usage..."
|
echo "Usage..."
|
||||||
echo "init-compiler.sh <script directory> <Architecture> <compiler> <compiler major version> <compiler minor version>"
|
echo "init-compiler.sh <script directory> <Architecture> <compiler>"
|
||||||
echo "Specify the script directory."
|
echo "Specify the script directory."
|
||||||
echo "Specify the target architecture."
|
echo "Specify the target architecture."
|
||||||
echo "Specify the name of compiler (clang or gcc)."
|
echo "Specify the name of compiler (clang or gcc)."
|
||||||
echo "Specify the major version of compiler."
|
|
||||||
echo "Specify the minor version of compiler."
|
|
||||||
exit 1
|
exit 1
|
||||||
fi
|
fi
|
||||||
|
|
||||||
nativescriptroot="$1"
|
nativescriptroot="$1"
|
||||||
build_arch="$2"
|
build_arch="$2"
|
||||||
compiler="$3"
|
compiler="$3"
|
||||||
|
|
||||||
|
case "$compiler" in
|
||||||
|
clang*|-clang*|--clang*)
|
||||||
|
# clangx.y or clang-x.y
|
||||||
|
version="$(echo "$compiler" | tr -d '[:alpha:]-=')"
|
||||||
|
parts=(${version//./ })
|
||||||
|
majorVersion="${parts[0]}"
|
||||||
|
minorVersion="${parts[1]}"
|
||||||
|
if [[ -z "$minorVersion" && "$majorVersion" -le 6 ]]; then
|
||||||
|
minorVersion=0;
|
||||||
|
fi
|
||||||
|
compiler=clang
|
||||||
|
;;
|
||||||
|
|
||||||
|
gcc*|-gcc*|--gcc*)
|
||||||
|
# gccx.y or gcc-x.y
|
||||||
|
version="$(echo "$compiler" | tr -d '[:alpha:]-=')"
|
||||||
|
parts=(${version//./ })
|
||||||
|
majorVersion="${parts[0]}"
|
||||||
|
minorVersion="${parts[1]}"
|
||||||
|
compiler=gcc
|
||||||
|
;;
|
||||||
|
esac
|
||||||
|
|
||||||
cxxCompiler="$compiler++"
|
cxxCompiler="$compiler++"
|
||||||
majorVersion="$4"
|
|
||||||
minorVersion="$5"
|
|
||||||
|
|
||||||
. "$nativescriptroot"/../pipeline-logging-functions.sh
|
. "$nativescriptroot"/../pipeline-logging-functions.sh
|
||||||
|
|
||||||
|
|
|
@ -11,7 +11,7 @@
|
||||||
"cmake": "3.16.4"
|
"cmake": "3.16.4"
|
||||||
},
|
},
|
||||||
"msbuild-sdks": {
|
"msbuild-sdks": {
|
||||||
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21623.2",
|
"Microsoft.DotNet.Arcade.Sdk": "7.0.0-beta.21627.1",
|
||||||
"Microsoft.DotNet.CMake.Sdk": "7.0.0-beta.21623.2"
|
"Microsoft.DotNet.CMake.Sdk": "7.0.0-beta.21627.1"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue