[Tizen] Fix gbs build for v6.0
authorolekarev <o.lekarev@samsung.com>
Fri, 11 Feb 2022 09:33:10 +0000 (12:33 +0300)
committerMikhail Kurinnoi <m.kurinnoi@samsung.com>
Tue, 19 Nov 2024 14:47:36 +0000 (17:47 +0300)
eng/build.sh
packaging/coreclr-diagnostics.spec
src/Microsoft.Diagnostics.DebugServices.Implementation/SymbolService.cs

index 2e9a9b733234ae1af501d1ec48bd00d86bcf7bc9..5473dfc9e3987e8d3db478e5054c10d1e6c2bc98 100755 (executable)
@@ -152,15 +152,15 @@ if [ "$__CrossBuild" == true ]; then
     fi
 fi
 
-mkdir -p "$__IntermediatesDir"
-mkdir -p "$__LogDir"
-mkdir -p "$__CMakeBinDir"
-
 build_native()
 {
-    platformArch="$1"
-    intermediatesForBuild="$2"
-    extraCmakeArguments="$3"
+    targetOS="$1"
+    platformArch="$2"
+    cmakeDir="$3"
+    intermediatesForBuild="$4"
+    target="$5"
+    extraCmakeArguments="$6"
+    message="$7"
 
     # All set to commence the build
     echo "Commencing $__DistroRid build for $__BuildOS.$__BuildArch.$__BuildType in $intermediatesForBuild"
@@ -168,11 +168,12 @@ build_native()
     generator=""
     buildFile="Makefile"
     buildTool="make"
-    scriptDir="$__ProjectRoot/eng"
+    scriptDir="$__RepoRootDir/eng"
 
     pushd "$intermediatesForBuild"
-    echo "Invoking \"$scriptDir/gen-buildsys-clang.sh\" \"$__ProjectRoot\" $__ClangMajorVersion \"$__ClangMinorVersion\" $platformArch "$scriptDir" $__BuildType $generator $extraCmakeArguments"
-    "$scriptDir/gen-buildsys-clang.sh" "$__ProjectRoot" $__ClangMajorVersion "$__ClangMinorVersion" $platformArch "$scriptDir" $__BuildType $generator "$extraCmakeArguments"
+    next_command="\"$scriptDir/native/gen-buildsys.sh\" \"$cmakeDir\" \"$intermediatesForBuild\" $platformArch $__Compiler \"$__CompilerMajorVersion\" \"$__CompilerMinorVersion\" $__BuildType \"$generator\" $scan_build $extraCmakeArguments"
+    echo "Invoking $next_command"
+    eval $next_command
     popd
 
     if [ ! -f "$intermediatesForBuild/$buildFile" ]; then
@@ -196,7 +197,7 @@ build_native()
 
 initTargetDistroRid()
 {
-    source "$__ProjectRoot/eng/init-distro-rid.sh"
+    source "$__RepoRootDir/eng/native/init-distro-rid.sh"
 
     local passedRootfsDir=""
 
index f4259d092df8dffd1e311feccbc876603d7bd764..29766083508f8c7b79669400479ca1443e7c828b 100755 (executable)
@@ -152,10 +152,10 @@ export CXXFLAGS+="-fstack-protector-strong"
 %endif
 
 export TIZEN_LOCAL_BUILD=1
-export NUGET_PACKAGES=%{_builddir}/%{name}-%{version}/packages
+export NUGET_PACKAGES=%{_builddir}/%{name}-%{version}/.packages
 export LD_LIBRARY_PATH=%{_builddir}/%{name}-%{version}/libicu-57.1
 
-./build.sh --portablebuild=false --configuration %{_buildtype} --architecture %{_barch} /p:NeedsPublishing=true /p:EnableSourceLink=false /p:EnableSourceControlManagerQueries=false
+./build.sh --portablebuild=false -configuration %{_buildtype} -architecture %{_barch} /p:NeedsPublishing=true /p:EnableSourceLink=false /p:EnableSourceControlManagerQueries=false
 
 %install
 %define netcoreappdir   %{_datadir}/dotnet/shared/Microsoft.NETCore.App/%{dotnet_version}
index 474570f37cefae2d36e5e8fc472ac38fd427f19f..28fc7bbaf8c8ae8483dd6881c1fbc49c1df0fc0f 100644 (file)
@@ -4,7 +4,6 @@
 using System;
 using System.Collections.Generic;
 using System.Collections.Immutable;
-using System.Collections.Generic;
 using System.Diagnostics;
 using System.IO;
 using System.Linq;