From: JongHeonChoi Date: Mon, 27 Apr 2020 07:24:03 +0000 (+0900) Subject: [Build] Add the {Name}.preload file required for preloading in the launcher (#1490) X-Git-Tag: submit/tizen_5.5/20200427.163717~1^2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=ee2652d6ca4565674eae918861648b306d521e8c;p=platform%2Fcore%2Fcsapi%2Ftizenfx.git [Build] Add the {Name}.preload file required for preloading in the launcher (#1490) * [Build] Add the {Name}.preload file required for preloading in the launcher * Update .preload file format --- diff --git a/packaging/PlatformFileList.txt b/packaging/PlatformFileList.txt old mode 100755 new mode 100644 index aaa6ac1ac..250a832c9 --- a/packaging/PlatformFileList.txt +++ b/packaging/PlatformFileList.txt @@ -84,7 +84,7 @@ Tizen.Network.WiFi.dll #common #mobile #mobile-emul Tizen.Network.WiFiDirect.dll #common #mobile #tv #ivi Tizen.Nlp.dll #mobile #mobile-emul Tizen.NUI.dll #common #mobile #mobile-emul #tv #wearable -Tizen.NUI.Components.dll #common #mobile #mobile-emul #tv #wearable +Tizen.NUI.Components.dll #common #mobile #mobile-emul #tv #wearable Tizen.NUI.Wearable.dll #wearable Tizen.PhonenumberUtils.dll #mobile #mobile-emul #wearable Tizen.Pims.Calendar.dll #common #mobile #mobile-emul #tv #wearable @@ -116,3 +116,10 @@ Tizen.Uix.TtsEngine.dll #common #mobile #mobile-emul Tizen.Uix.VoiceControl.dll #common #mobile #mobile-emul #tv #wearable Tizen.Uix.VoiceControlWidget.dll #common #mobile #mobile-emul #tv #wearable Tizen.WebView.dll #common #mobile #mobile-emul #tv #wearable +ElmSharp.preload #common #mobile #mobile-emul #tv #wearable +ElmSharp.Wearable.preload #wearable +Tizen.Applications.Common.preload #common #mobile #mobile-emul #tv #wearable +Tizen.Applications.UI.preload #common #mobile #mobile-emul #tv #wearable +Tizen.Log.preload #common #mobile #mobile-emul #tv #wearable +Tizen.preload #common #mobile #mobile-emul #tv #wearable +Tizen.System.Information.preload #common #mobile #mobile-emul #tv #wearable diff --git a/packaging/csapi-tizenfx.spec b/packaging/csapi-tizenfx.spec index db39db9d7..ed9342fb3 100644 --- a/packaging/csapi-tizenfx.spec +++ b/packaging/csapi-tizenfx.spec @@ -8,6 +8,7 @@ %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools +%define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload %define DOTNET_NUGET_SOURCE /nuget %define TIZEN_NET_RUNTIME_IDENTIFIERS 4.0.0:5.0.0:5.5.0 @@ -136,12 +137,17 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true GetFileList() { PROFILE=$1 - cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" - for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do + cat packaging/PlatformFileList.txt | grep -v "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" + for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$|\.preload" | cut -d# -f1); do if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f" fi done + for f in $(cat packaging/PlatformFileList.txt | grep "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do + if [ -f packaging/preload/$f ]; then + echo "%{DOTNET_PRELOAD_PATH}/$f" + fi + done } GetFileList common > common.filelist @@ -156,6 +162,7 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH} +mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH} # Install Runtime Assemblies install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -181,6 +188,9 @@ install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} # Install Tools install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH} +# Install Preload +install -p -m 644 packaging/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH} + %post /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f diff --git a/packaging/csapi-tizenfx.spec.in b/packaging/csapi-tizenfx.spec.in index cd5ad68ff..622941d2f 100644 --- a/packaging/csapi-tizenfx.spec.in +++ b/packaging/csapi-tizenfx.spec.in @@ -7,6 +7,7 @@ %define DOTNET_ASSEMBLY_DUMMY_PATH %{DOTNET_ASSEMBLY_PATH}/ref %define DOTNET_ASSEMBLY_RES_PATH %{DOTNET_ASSEMBLY_PATH}/res %define DOTNET_TOOLS_PATH /usr/share/dotnet.tizen/tools +%define DOTNET_PRELOAD_PATH /usr/share/dotnet.tizen/preload %define DOTNET_NUGET_SOURCE /nuget %define TIZEN_NET_RUNTIME_IDENTIFIERS @rid_version@ @@ -135,12 +136,17 @@ export DOTNET_SKIP_FIRST_TIME_EXPERIENCE=true GetFileList() { PROFILE=$1 - cat packaging/PlatformFileList.txt | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" - for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do + cat packaging/PlatformFileList.txt | grep -v "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1 | sed "s#^#%{DOTNET_ASSEMBLY_PATH}/#" + for f in $(cat packaging/PlatformFileList.txt | grep -v -E "#$PROFILE[[:space:]]|#$PROFILE$|\.preload" | cut -d# -f1); do if [ -f %{_tizenfx_bin_path}/bin/dummy/$f ]; then echo "%{DOTNET_ASSEMBLY_PATH}/ref/$f" fi done + for f in $(cat packaging/PlatformFileList.txt | grep "\.preload" | grep -E "#$PROFILE[[:space:]]|#$PROFILE$" | cut -d# -f1); do + if [ -f packaging/preload/$f ]; then + echo "%{DOTNET_PRELOAD_PATH}/$f" + fi + done } GetFileList common > common.filelist @@ -155,6 +161,7 @@ mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_DUMMY_PATH} mkdir -p %{buildroot}%{DOTNET_ASSEMBLY_RES_PATH} mkdir -p %{buildroot}%{DOTNET_NUGET_SOURCE} mkdir -p %{buildroot}%{DOTNET_TOOLS_PATH} +mkdir -p %{buildroot}%{DOTNET_PRELOAD_PATH} # Install Runtime Assemblies install -p -m 644 %{_tizenfx_bin_path}/bin/public/*.dll %{buildroot}%{DOTNET_ASSEMBLY_PATH} @@ -180,6 +187,9 @@ install -p -m 644 packaging/*.nupkg %{buildroot}%{DOTNET_NUGET_SOURCE} # Install Tools install -p -m 644 tools/bin/* %{buildroot}%{DOTNET_TOOLS_PATH} +# Install Preload +install -p -m 644 packaging/preload/*.preload %{buildroot}%{DOTNET_PRELOAD_PATH} + %post /usr/bin/vconftool set -t int db/dotnet/tizen_api_version %{TIZEN_NET_API_VERSION} -f /usr/bin/vconftool set -t string db/dotnet/tizen_api_path %{DOTNET_ASSEMBLY_PATH} -f diff --git a/packaging/preload/ElmSharp.Wearable.preload b/packaging/preload/ElmSharp.Wearable.preload new file mode 100644 index 000000000..6a8d769a4 --- /dev/null +++ b/packaging/preload/ElmSharp.Wearable.preload @@ -0,0 +1,12 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +ElmSharp.Wearable.dll ElmSharp.Wearable.CircleDateTimeSelector +ElmSharp.Wearable.dll ElmSharp.Wearable.CircleGenList +ElmSharp.Wearable.dll ElmSharp.Wearable.CircleScroller +ElmSharp.Wearable.dll ElmSharp.Wearable.CircleSpinner +ElmSharp.Wearable.dll ElmSharp.Wearable.ICircleWidget +ElmSharp.Wearable.dll ElmSharp.Wearable.IRotaryActionWidget +ElmSharp.Wearable.dll Interop diff --git a/packaging/preload/ElmSharp.preload b/packaging/preload/ElmSharp.preload new file mode 100644 index 000000000..09a8e79e5 --- /dev/null +++ b/packaging/preload/ElmSharp.preload @@ -0,0 +1,44 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +ElmSharp.dll ElmSharp.Box +ElmSharp.dll ElmSharp.Button +ElmSharp.dll ElmSharp.Check +ElmSharp.dll ElmSharp.Color +ElmSharp.dll ElmSharp.Conformant +ElmSharp.dll ElmSharp.DateTimeSelector +ElmSharp.dll ElmSharp.DisplayRotation +ElmSharp.dll ElmSharp.EdjeObject +ElmSharp.dll ElmSharp.EdjeObject+SignalData +ElmSharp.dll ElmSharp.EdjeTextPartObject +ElmSharp.dll ElmSharp.Elementary +ElmSharp.dll ElmSharp.Entry +ElmSharp.dll ElmSharp.EvasKeyEventArgs +ElmSharp.dll ElmSharp.EvasMap +ElmSharp.dll ElmSharp.EvasObject +ElmSharp.dll ElmSharp.FocusDirection +ElmSharp.dll ElmSharp.GenList +ElmSharp.dll ElmSharp.GestureLayer+GestureType +ElmSharp.dll ElmSharp.IInvalidatable +ElmSharp.dll ElmSharp.Image +ElmSharp.dll ElmSharp.ItemObject+SignalData +ElmSharp.dll ElmSharp.Label +ElmSharp.dll ElmSharp.Layout +ElmSharp.dll ElmSharp.Naviframe +ElmSharp.dll ElmSharp.NaviItem +ElmSharp.dll ElmSharp.Point3D +ElmSharp.dll ElmSharp.ProgressBar +ElmSharp.dll ElmSharp.Radio +ElmSharp.dll ElmSharp.Rect +ElmSharp.dll ElmSharp.Rectangle +ElmSharp.dll ElmSharp.Scroller +ElmSharp.dll ElmSharp.Size +ElmSharp.dll ElmSharp.Slider +ElmSharp.dll ElmSharp.Spinner +ElmSharp.dll ElmSharp.Widget +ElmSharp.dll ElmSharp.Window +ElmSharp.dll ElmSharp.WrapType +ElmSharp.dll Interop +ElmSharp.dll ElmSharp.Window.Preload() diff --git a/packaging/preload/Tizen.Applications.Common.preload b/packaging/preload/Tizen.Applications.Common.preload new file mode 100644 index 000000000..abda6bf57 --- /dev/null +++ b/packaging/preload/Tizen.Applications.Common.preload @@ -0,0 +1,10 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +Tizen.Applications.Common.dll Interop +Tizen.Applications.Common.dll Tizen.Applications.Application +Tizen.Applications.Common.dll Tizen.Applications.CoreApplication +Tizen.Applications.Common.dll Tizen.Applications.CoreBackend.EventType +Tizen.Applications.Common.dll Tizen.Applications.TizenSynchronizationContext diff --git a/packaging/preload/Tizen.Applications.UI.preload b/packaging/preload/Tizen.Applications.UI.preload new file mode 100644 index 000000000..fba348d4a --- /dev/null +++ b/packaging/preload/Tizen.Applications.UI.preload @@ -0,0 +1,7 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +Tizen.Applications.UI.dll Interop +Tizen.Applications.UI.dll Tizen.Applications.CoreUIApplication diff --git a/packaging/preload/Tizen.Log.preload b/packaging/preload/Tizen.Log.preload new file mode 100644 index 000000000..172edc57f --- /dev/null +++ b/packaging/preload/Tizen.Log.preload @@ -0,0 +1,7 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +Tizen.Log.dll Interop +Tizen.Log.dll Tizen.Log diff --git a/packaging/preload/Tizen.System.Information.preload b/packaging/preload/Tizen.System.Information.preload new file mode 100644 index 000000000..620a7098b --- /dev/null +++ b/packaging/preload/Tizen.System.Information.preload @@ -0,0 +1,7 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +Tizen.System.Information.dll Tizen.System.Information +Tizen.System.Information.dll Tizen.System.Information.Preload() diff --git a/packaging/preload/Tizen.preload b/packaging/preload/Tizen.preload new file mode 100644 index 000000000..ba2e96e5a --- /dev/null +++ b/packaging/preload/Tizen.preload @@ -0,0 +1,6 @@ +########################################### +## AssemblyName.dll TypeName ## +## AssemblyName.dll TypeName.Preload() ## +## The methods must not have parameters. ## +########################################### +Tizen.dll Interop