[Build] Add the {Name}.preload file required for preloading in the launcher (#1491)
authorJongHeonChoi <j-h.choi@samsung.com>
Mon, 27 Apr 2020 07:23:55 +0000 (16:23 +0900)
committerGitHub <noreply@github.com>
Mon, 27 Apr 2020 07:23:55 +0000 (16:23 +0900)
* [Build] Add the {Name}.preload file required for preloading in the launcher

* Update .preload file format

packaging/PlatformFileList.txt [changed mode: 0755->0644]
packaging/csapi-tizenfx.spec
packaging/csapi-tizenfx.spec.in
packaging/preload/ElmSharp.Wearable.preload [new file with mode: 0644]
packaging/preload/ElmSharp.preload [new file with mode: 0644]
packaging/preload/Tizen.Applications.Common.preload [new file with mode: 0644]
packaging/preload/Tizen.Applications.UI.preload [new file with mode: 0644]
packaging/preload/Tizen.Log.preload [new file with mode: 0644]
packaging/preload/Tizen.System.Information.preload [new file with mode: 0644]
packaging/preload/Tizen.preload [new file with mode: 0644]

old mode 100755 (executable)
new mode 100644 (file)
index 9899785..a980d5a
@@ -67,7 +67,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
@@ -98,3 +98,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
index ac95010..7ab8f7b 100644 (file)
@@ -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
index cd5ad68..622941d 100644 (file)
@@ -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 (file)
index 0000000..6a8d769
--- /dev/null
@@ -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 (file)
index 0000000..09a8e79
--- /dev/null
@@ -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 (file)
index 0000000..abda6bf
--- /dev/null
@@ -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 (file)
index 0000000..fba348d
--- /dev/null
@@ -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 (file)
index 0000000..172edc5
--- /dev/null
@@ -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 (file)
index 0000000..620a709
--- /dev/null
@@ -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 (file)
index 0000000..ba2e96e
--- /dev/null
@@ -0,0 +1,6 @@
+###########################################
+## AssemblyName.dll TypeName             ##
+## AssemblyName.dll TypeName.Preload()   ##
+## The methods must not have parameters. ##
+###########################################
+Tizen.dll Interop