Add splash screen object to electron interface 05/181105/1
authorPrathmesh <prathmesh.m@samsung.com>
Fri, 8 Jun 2018 06:40:04 +0000 (12:10 +0530)
committerPrathmesh <prathmesh.m@samsung.com>
Fri, 8 Jun 2018 06:40:04 +0000 (12:10 +0530)
- Build and generate idl's
- Make splash screen object avaliable

Change-Id: I01785552dad600a38b5e13485bfbdabfc6ba68a1
Signed-off-by: Prathmesh <prathmesh.m@samsung.com>
packaging/electron-efl.spec
tizen/extensions/extensions.gyp
wrt.gyp

index 4f7009a..91e9ae0 100755 (executable)
@@ -143,8 +143,15 @@ install -p -m 644 %{_out}/lib/libxwalk_extension_shared.so %{buildroot}%{_libdir
 install -p -m 755 %{_out}/lib/libxwalk_injected_bundle.so %{buildroot}%{_libdir}
 # widget plugin
 install -p -m 644 %{_out}/lib/libwidget_plugin.so %{buildroot}%{extension_path}
-install -p -m 644 %{_out}/lib/libwidget_plugin.so %{buildroot}%{_libdir}
 install -p -m 644 %{_out}/gen/widget.json %{buildroot}%{extension_path}
+# Need to remove the below line later
+install -p -m 644 %{_out}/lib/libwidget_plugin.so %{buildroot}%{_libdir}
+
+# screen_plugin
+install -p -m 644 %{_out}/lib/libsplash_screen_plugin.so %{buildroot}%{extension_path}
+install -p -m 644 %{_out}/gen/splash_screen.json %{buildroot}%{extension_path}
+# Need to remove the below line later
+install -p -m 644 %{_out}/lib/libsplash_screen_plugin.so %{buildroot}%{_libdir}
 
 %post
 # Owner account can't write /opt/usr/home/owner/data/org.tizen.electron-efl
@@ -178,6 +185,10 @@ rm -fr %{buildroot}
 %attr(644,root,root) %{_libdir}/libwrt_common.so
 %attr(644,root,root) %{_libdir}/libxwalk_extension_shared.so
 %attr(644,root,root) %{_libdir}/libxwalk_injected_bundle.so
-%attr(644,root,root) %{_libdir}/libwidget_plugin.so
 %attr(644,root,root) %{extension_path}/libwidget_plugin.so
 %attr(644,root,root) %{extension_path}/widget.json
+%attr(644,root,root) %{extension_path}/libsplash_screen_plugin.so
+%attr(644,root,root) %{extension_path}/splash_screen.json
+# Need to remove these below lines later
+%attr(644,root,root) %{_libdir}/libwidget_plugin.so
+%attr(644,root,root) %{_libdir}/libsplash_screen_plugin.so
index db9f91c..d22c755 100644 (file)
         },
       ],
     }, # end of target 'widget_plugin'
+    {
+      'target_name': 'splash_screen_plugin',
+      'type': 'shared_library',
+      'sources': [
+        'internal/splash_screen/splash_screen_api.js',
+        'internal/splash_screen/splash_screen_extension.cc',
+      ],
+      'variables': {
+        'packages': [
+          'dlog',
+        ],
+      },
+      'copies': [
+        {
+          'destination': '<(SHARED_INTERMEDIATE_DIR)',
+          'files': [
+            'internal/splash_screen/splash_screen.json'
+          ],
+        },
+      ],
+    }, # end of target 'splash_screen_plugin'
   ], # end of targets
 }
diff --git a/wrt.gyp b/wrt.gyp
index 73af0b5..eef72f2 100644 (file)
--- a/wrt.gyp
+++ b/wrt.gyp
@@ -15,6 +15,7 @@
         '<(DEPTH)/tizen/loader/loader.gyp:wrt-loader',
         '<(DEPTH)/tizen/extensions/extensions.gyp:xwalk_extension_shared',
         '<(DEPTH)/tizen/extensions/extensions.gyp:widget_plugin',
+        '<(DEPTH)/tizen/extensions/extensions.gyp:splash_screen_plugin',
         '<(DEPTH)/tizen/renderer/injected_bundle.gyp:xwalk_injected_bundle',
         '<(DEPTH)/efl/build/system.gyp:ecore',
         '<(DEPTH)/efl/build/system.gyp:launchpad',