Add the .preload file required for preloading in the launcher (#193)
author최종헌/Common Platform Lab(SR)/Engineer/삼성전자 <j-h.choi@samsung.com>
Wed, 22 Apr 2020 06:27:28 +0000 (15:27 +0900)
committer유리나/Common Platform Lab(SR)/Staff Engineer/삼성전자 <rina6350.you@samsung.com>
Wed, 22 Apr 2020 06:27:28 +0000 (15:27 +0900)
packaging/XSF.preload [new file with mode: 0644]
packaging/xsf.spec

diff --git a/packaging/XSF.preload b/packaging/XSF.preload
new file mode 100644 (file)
index 0000000..92aba09
--- /dev/null
@@ -0,0 +1,6 @@
+###########################################
+## AssemblyName.dll TypeName             ##
+## AssemblyName.dll TypeName.Preload()   ##
+## The methods must not have parameters. ##
+###########################################
+XSF.dll Xamarin.Forms.Forms.Preload()
index 3f0e134..c15c4e7 100644 (file)
@@ -11,6 +11,7 @@ AutoReqProv: no
 ExcludeArch: aarch64
 
 %define DOTNET_ASSEMBLY_PATH /usr/share/dotnet.tizen/framework
+%define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload
 %define DOTNET_NUGET_SOURCE /nuget
 %define SKIA_LIBRARY_PATH /usr/lib
 %define LIB_HARFBUZZ_NAME libHarfBuzzSharp.2.6.1.so
@@ -37,7 +38,9 @@ cp %{DOTNET_NUGET_SOURCE}/*.nupkg ./packages/
 
 %install
 mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_PATH}
+mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH}
 mv ./src/XSF/bin/Release/netstandard2.0/XSF.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH}
+mv ./packaging/XSF.preload %{buildroot}%{DOTNET_PRELOAD_PATH}
 
 mkdir -p %{buildroot}%{SKIA_LIBRARY_PATH}
 %ifarch %{ix86}
@@ -52,4 +55,5 @@ mv ./src/XSF/lib/armel/%{LIB_SKIASHARP_NAME} %{buildroot}%{SKIA_LIBRARY_PATH}
 %manifest %{name}.manifest
 %license LICENSE LICENSE.Flora-1.1 LICENSE.Apache-2.0
 %attr(644,root,root) %{DOTNET_ASSEMBLY_PATH}/*.dll
-%attr(644,root,root) %{SKIA_LIBRARY_PATH}/*.so
+%attr(644,root,root) %{DOTNET_PRELOAD_PATH}/XSF.preload
+%attr(644,root,root) %{SKIA_LIBRARY_PATH}/*.so
\ No newline at end of file