From: Prathmesh Date: Fri, 8 Jun 2018 06:40:04 +0000 (+0530) Subject: Add splash screen object to electron interface X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=82c0194dbc7c3c332bc5d2f1823cb3363e9bb9ef;p=platform%2Fframework%2Fweb%2Fcrosswalk-tizen.git Add splash screen object to electron interface - Build and generate idl's - Make splash screen object avaliable Change-Id: I01785552dad600a38b5e13485bfbdabfc6ba68a1 Signed-off-by: Prathmesh --- diff --git a/packaging/electron-efl.spec b/packaging/electron-efl.spec index 4f7009a..91e9ae0 100755 --- a/packaging/electron-efl.spec +++ b/packaging/electron-efl.spec @@ -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 diff --git a/tizen/extensions/extensions.gyp b/tizen/extensions/extensions.gyp index db9f91c..d22c755 100644 --- a/tizen/extensions/extensions.gyp +++ b/tizen/extensions/extensions.gyp @@ -88,5 +88,26 @@ }, ], }, # 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 --- 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',