Add crossgen2.tar.gz file and remove circular dependency issue 33/285533/2 accepted/tizen_7.0_unified tizen_7.0 accepted/tizen/7.0/unified/20221216.024733 accepted/tizen/unified/20221216.024044
authorj-h.choi <j-h.choi@samsung.com>
Wed, 14 Dec 2022 07:45:18 +0000 (16:45 +0900)
committerj-h.choi <j-h.choi@samsung.com>
Thu, 15 Dec 2022 00:06:37 +0000 (09:06 +0900)
Change-Id: Ieb8a61298e5bb7c60821e7ca4dbd166bca8a6030

packaging/crossgen2.tar.gz [new file with mode: 0644]
packaging/dotnet-build-tools.spec
targets/Tizen.Pre.Compiled.targets

diff --git a/packaging/crossgen2.tar.gz b/packaging/crossgen2.tar.gz
new file mode 100644 (file)
index 0000000..cd15df2
Binary files /dev/null and b/packaging/crossgen2.tar.gz differ
index 91f9105..253fd23 100644 (file)
@@ -12,15 +12,16 @@ Source0:    %{name}-%{version}.tar.gz
 Source1:    macros.dotnet-build-tools
 Source21:   dotnet-sdk-%{version}-linux-x64.tar.gz
 Source22:   deps.tar.gz
+Source23:   crossgen2.tar.gz
 
 AutoReqProv: no
 
 BuildRequires: patchelf
-BuildRequires: mscorlib
-BuildRequires: corefx-managed
-BuildRequires: csapi-tizenfx-full
-BuildRequires: crossgen2-mic
+#BuildRequires: crossgen2-mic
 
+Requires: mscorlib
+Requires: corefx-managed
+Requires: csapi-tizenfx-full
 Requires: corefx-managed-ref
 Requires: libicu
 Requires: openssl1.1
@@ -40,10 +41,8 @@ mkdir -p dotnet/deps
 mkdir -p dotnet/crossgen2/ref
 tar xvfz %{SOURCE21} -C dotnet
 tar xvfz %{SOURCE22} -C dotnet/deps
-
-cp -rf /opt/usr/dotnet/mic/* dotnet/crossgen2
-cp -rf /usr/share/dotnet.tizen/netcoreapp/*.dll dotnet/crossgen2/ref
-cp -rf /usr/share/dotnet.tizen/framework/*.dll dotnet/crossgen2/ref
+tar xvfz %{SOURCE23} -C dotnet/crossgen2
+#cp -rf /opt/usr/dotnet/mic/* dotnet/crossgen2
 
 %build
 # Prepare dotnet-sdk
index cfb8240..c36e0e8 100644 (file)
@@ -28,8 +28,8 @@
     <Exec Command="mkdir $(BinNativeImagePath)" Condition="@(DllListOfBin->Count()) != 0 OR @(PdbListOfBin->Count()) != 0" />
     <Exec Command="mkdir $(LibNativeImagePath)" Condition="@(DllListOfLib->Count()) != 0 OR @(PdbListOfLib->Count()) != 0" />
 
-    <Exec Command="crossgen2 --jitpath /usr/share/dotnet-build-tools/sdk/crossgen2/libclrjit_unix_$(TizenGBSBuildArch)_x64.so --targetarch $(TizenGBSBuildArch) -o $(BinNativeImagePath)%(DllListOfBin.Filename).ni%(DllListOfBin.Extension) --resilient --Ot -r:/usr/share/dotnet-build-tools/sdk/crossgen2/ref/*.dll -r:$(IntermediateOutputPath)crossgen2/ref/*.dll %(DllListOfBin.Identity)" EnvironmentVariables="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" Condition="'$(TizenGBSBuildArch)' != '' and '%(DllListOfBin.Identity)' != ''" />
-    <Exec Command="crossgen2 --jitpath /usr/share/dotnet-build-tools/sdk/crossgen2/libclrjit_unix_$(TizenGBSBuildArch)_x64.so --targetarch $(TizenGBSBuildArch) -o $(LibNativeImagePath)%(DllListOfLib.Filename).ni%(DllListOfLib.Extension) --resilient --Ot -r:/usr/share/dotnet-build-tools/sdk/crossgen2/ref/*.dll -r:$(IntermediateOutputPath)crossgen2/ref/*.dll %(DllListOfLib.Identity)" EnvironmentVariables="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" Condition="'$(TizenGBSBuildArch)' != '' and '%(DllListOfLib.Identity)' != ''" />
+    <Exec Command="crossgen2 --jitpath /usr/share/dotnet-build-tools/sdk/crossgen2/libclrjit_unix_$(TizenGBSBuildArch)_x64.so --targetarch $(TizenGBSBuildArch) -o $(BinNativeImagePath)%(DllListOfBin.Filename).ni%(DllListOfBin.Extension) --resilient --Ot -r:/usr/share/dotnet.tizen/netcoreapp/*.dll -r:/usr/share/dotnet.tizen/framework/*.dll -r:$(IntermediateOutputPath)crossgen2/ref/*.dll %(DllListOfBin.Identity)" EnvironmentVariables="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" Condition="'$(TizenGBSBuildArch)' != '' and '%(DllListOfBin.Identity)' != ''" />
+    <Exec Command="crossgen2 --jitpath /usr/share/dotnet-build-tools/sdk/crossgen2/libclrjit_unix_$(TizenGBSBuildArch)_x64.so --targetarch $(TizenGBSBuildArch) -o $(LibNativeImagePath)%(DllListOfLib.Filename).ni%(DllListOfLib.Extension) --resilient --Ot -r:/usr/share/dotnet.tizen/netcoreapp/*.dll -r:/usr/share/dotnet.tizen/framework/*.dll -r:$(IntermediateOutputPath)crossgen2/ref/*.dll %(DllListOfLib.Identity)" EnvironmentVariables="DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1" Condition="'$(TizenGBSBuildArch)' != '' and '%(DllListOfLib.Identity)' != ''" />
 
     <Exec Command="cp %(PdbListOfBin.Identity) $(BinNativeImagePath)" Condition="'%(PdbListOfBin.Identity)' != ''" />
     <Exec Command="cp %(PdbListOfLib.Identity) $(LibNativeImagePath)" Condition="'%(PdbListOfLib.Identity)' != ''" />