import sys
top_dir = os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))
+xwalk_dir = os.path.join(top_dir, '..', 'xwalk')
chrome_src = os.environ.get('CHROME_SRC')
if chrome_src:
chrome_src = os.path.abspath(chrome_src)
sys.path.insert(1, os.path.join(chrome_src, 'third_party', 'WebKit',
'Source', 'build', 'scripts'))
sys.path.insert(1, os.path.join(chrome_src, 'chrome', 'tools', 'build'))
+sys.path.insert(1, os.path.join(chrome_src, 'native_client', 'build'))
import repack_locales
if os.path.realpath(path) not in specified_includes:
result.append(path)
+ # Include xwalk common.gypi to effect chromium source tree.
+ AddInclude(os.path.join(xwalk_dir, 'build', 'common.gypi'))
+
# Always include common.gypi.
AddInclude(os.path.join(script_dir, 'common.gypi'))
break
if not gyp_file_specified:
- args.append(os.path.join(top_dir, 'tizen_src', 'ewk', 'chromium-ewk.gyp'))
+ args.append(os.path.join(top_dir, 'ewk', 'chromium-ewk.gyp'))
+ args.append(os.path.join(xwalk_dir, 'xwalk.gyp'))
args.extend(['-I' + i for i in additional_include_files(args)])
--- /dev/null
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/child/npapi/webplugin_delegate_impl.h"
+
+#include "content/child/npapi/plugin_instance.h"
+#include "content/common/cursors/webcursor.h"
+
+using blink::WebInputEvent;
+
+namespace content {
+
+WebPluginDelegateImpl::WebPluginDelegateImpl(WebPlugin* plugin,
+ PluginInstance* instance) {
+}
+
+WebPluginDelegateImpl::~WebPluginDelegateImpl() {
+}
+
+bool WebPluginDelegateImpl::PlatformInitialize() {
+ return true;
+}
+
+void WebPluginDelegateImpl::PlatformDestroyInstance() {
+ // Nothing to do here.
+}
+
+void WebPluginDelegateImpl::Paint(SkCanvas* canvas, const gfx::Rect& rect) {
+}
+
+bool WebPluginDelegateImpl::WindowedCreatePlugin() {
+ return true;
+}
+
+void WebPluginDelegateImpl::WindowedDestroyWindow() {
+}
+
+bool WebPluginDelegateImpl::WindowedReposition(
+ const gfx::Rect& window_rect,
+ const gfx::Rect& clip_rect) {
+ return true;
+}
+
+void WebPluginDelegateImpl::WindowedSetWindow() {
+}
+
+void WebPluginDelegateImpl::WindowlessUpdateGeometry(
+ const gfx::Rect& window_rect,
+ const gfx::Rect& clip_rect) {
+}
+
+void WebPluginDelegateImpl::WindowlessPaint(gfx::NativeDrawingContext context,
+ const gfx::Rect& damage_rect) {
+}
+
+bool WebPluginDelegateImpl::PlatformSetPluginHasFocus(bool focused) {
+ return true;
+}
+
+bool WebPluginDelegateImpl::PlatformHandleInputEvent(
+ const WebInputEvent& event, WebCursor::CursorInfo* cursor_info) {
+ return false;
+}
+
+} // namespace content
BuildRequires: pkgconfig(gstreamer-app-0.10)
%endif
+%if 0%{?build_xwalk}
+BuildRequires: pkgconfig(xmlsec1)
+BuildRequires: pkgconfig(haptic)
+BuildRequires: pkgconfig(nss)
+BuildRequires: pkgconfig(pkgmgr)
+BuildRequires: pkgconfig(pkgmgr-info)
+BuildRequires: pkgconfig(pkgmgr-installer)
+BuildRequires: pkgconfig(pkgmgr-parser)
+BuildRequires: pkgconfig(secure-storage)
+%endif
+
%description
Browser Engine based on Chromium EFL (Shared Library)
Chromium EFL version of content_shell application
%endif
+%if 0%{?build_xwalk}
+%package -n crosswalk
+Summary: Chromium-based app rintime
+Group: Web Framework/Web Run Time
+%description -n crosswalk
+Crosswalk is an app runtime based on Chromium. It is an open source project
+started by the Intel Open Source Technology Center (http://www.01.org).
+%endif
+
%if 0%{?_enable_unittests}
%package unittests
Summary: Chromium unittests
Selenium WebDriver for t-browser
%endif
+%define _manifestdir %TZ_SYS_RO_PACKAGES
+%define _manifestdir_ro %TZ_SYS_RO_PACKAGE
+%define _desktop_icondir %TZ_SYS_RW_ICONS/default/small
+%define _desktop_icondir_ro %TZ_SYS_RO_ICONS/default/small
+%define _dbusservicedir /usr/share/dbus-1/services
+%define _systemduserservicedir /usr/lib/systemd/user
+
# Directory for internal chromium executable components
%global CHROMIUM_EXE_DIR %{_libdir}/%{name}
# Constant read only data used by chromium-efl port
%else
%global OUTPUT_FOLDER %{OUTPUT_BASE_FOLDER}/Release
%endif
+%global XWALK_GEN %{OUTPUT_FOLDER}/xwalk_gen
if type ccache &> /dev/null; then
source build/ccache_env.sh %{OUTPUT_BUILD_PROFILE_TARGET}
fi
+%if 0%{?build_xwalk}
+ mkdir -p "%{XWALK_GEN}"
+ sed "s/@VERSION@/%{version}/g" xwalk/packaging/crosswalk.xml.in > "%{XWALK_GEN}"/crosswalk.xml
+ sed "s|@LIB_INSTALL_DIR@|%{_libdir}|g" xwalk/packaging/xwalk.in > "%{XWALK_GEN}"/xwalk
+ sed "s|@LIB_INSTALL_DIR@|%{_libdir}|g" xwalk/packaging/xwalk.service.in > "%{XWALK_GEN}"/xwalk.service
+ cp -a xwalk/packaging/crosswalk.manifest "%{XWALK_GEN}"
+ cp -a xwalk/packaging/crosswalk.png "%{XWALK_GEN}"
+ cp -a xwalk/LICENSE "%{XWALK_GEN}"/LICENSE.xwalk
+ cp -a AUTHORS "%{XWALK_GEN}"/AUTHORS.chromium
+ cp -a LICENSE "%{XWALK_GEN}"/LICENSE.chromium
+%endif
+
#gyp generate
%if %{?_skip_gyp:0}%{!?_skip_gyp:1}
#run standard gyp_chromiumefl wrapper
%if 0%{?chromium_efl_tizen_version:1}
-Dchromium_efl_tizen_version=%{chromium_efl_tizen_version} \
%endif
+ -Dtizen_"%{OUTPUT_BUILD_PROFILE_TARGET}"=1 \
-Dbuilding_for_tizen_"%{OUTPUT_BUILD_PROFILE_TARGET}"=1
%endif
%if 0%{?build_chromedriver}
chromedriver_efl \
%endif
+%if 0%{?build_xwalk}
+ xwalk xwalk_launcher xwalk_application_tools \
+%endif
efl_webprocess chromium-ewk efl_webview_app mini_browser ubrowser
%if 0%{?_enable_unittests}
install -m 0755 tizen_src/ewk/utc_gtest_run.sh %{buildroot}/opt/usr/utc_exec/
%endif
+%if 0%{?build_xwalk}
+install -m 0755 -p -D %{OUTPUT_FOLDER}/xwalk %{buildroot}%{_libdir}/xwalk/xwalk
+install -m 0755 -p -D %{OUTPUT_FOLDER}/xwalkctl %{buildroot}%{_bindir}/xwalkctl
+install -m 0755 -p -D %{OUTPUT_FOLDER}/xwalk-launcher %{buildroot}%{_bindir}/xwalk-launcher
+install -m 0755 -p -D %{OUTPUT_FOLDER}/xwalk_backend %{buildroot}%{_libdir}/xwalk/xwalk_backend
+
+# Supporting libraries and resources.
+install -m 0644 -p -D xwalk/packaging/org.crosswalkproject.Runtime1.service %{buildroot}%{_dbusservicedir}/org.crosswalkproject.Runtime1.service
+install -m 0644 -p -D %{XWALK_GEN}/xwalk.service %{buildroot}%{_systemduserservicedir}/xwalk.service
+install -m 0644 -p -D %{OUTPUT_FOLDER}/lib/libxwalk_backend_lib.so %{buildroot}%{_libdir}/xwalk/libxwalk_backend_lib.so
+install -m 0644 -p -D %{OUTPUT_FOLDER}/icudtl.dat %{buildroot}%{_libdir}/xwalk/icudtl.dat
+install -m 0644 -p -D %{OUTPUT_FOLDER}/libffmpegsumo.so %{buildroot}%{_libdir}/xwalk/libffmpegsumo.so
+install -m 0644 -p -D %{OUTPUT_FOLDER}/xwalk.pak %{buildroot}%{_libdir}/xwalk/xwalk.pak
+install -d %{buildroot}%{_datadir}/xwalk
+install -m 0644 -p -D xwalk/application/common/tizen/configuration/*.xsd %{buildroot}%{_datadir}/xwalk
+
+# PNaCl
+%if %{?_disable_nacl}%{!?_disable_nacl:1} == 0
+install -m 0755 -p -D %{OUTPUT_FOLDER}/nacl_bootstrap_raw %{buildroot}%{_libdir}/xwalk/nacl_bootstrap_raw
+install -m 0755 -p -D %{OUTPUT_FOLDER}/nacl_helper %{buildroot}%{_libdir}/xwalk/nacl_helper
+install -m 0755 -p -D %{OUTPUT_FOLDER}/nacl_helper_bootstrap %{buildroot}%{_libdir}/xwalk/nacl_helper_bootstrap
+install -m 0644 -p -D %{OUTPUT_FOLDER}/nacl_irt_*.nexe %{buildroot}%{_libdir}/xwalk
+install -d %{buildroot}%{_libdir}/xwalk/pnacl
+install -m 0644 -p -D %{OUTPUT_FOLDER}/pnacl/* %{buildroot}%{_libdir}/xwalk/pnacl
+%endif
+
+# Register xwalk to the package manager.
+install -m 0644 -p -D %{XWALK_GEN}/crosswalk.xml %{buildroot}%{_manifestdir}/crosswalk.xml
+install -m 0644 -p -D %{XWALK_GEN}/crosswalk.png %{buildroot}%{_desktop_icondir}/crosswalk.png
+%endif
%post
# apply smack rule
mkdir -p %{CHROMIUM_WEBDB_DIR}/data/
chown -R app:app %{CHROMIUM_WEBDB_DIR}/data
+mkdir -p %{_desktop_icondir_ro}
+mkdir -p %{_manifestdir_ro}
+
+ln -sf %{_libdir}/xwalk/libxwalk_backend_lib.so /etc/package-manager/backendlib/libxpk.so
+ln -sf %{_libdir}/xwalk/libxwalk_backend_lib.so /etc/package-manager/backendlib/libwgt.so
+ln -sf %{_libdir}/xwalk/xwalk_backend /etc/package-manager/backend/xpk
+ln -sf %{_libdir}/xwalk/xwalk_backend /etc/package-manager/backend/wgt
+
+%preun
+if [ $1 -eq 0 ] ; then
+ # don't remove if we are upgrade the rpm package
+[ -L /etc/package-manager/backendlib/libxpk.so ] && rm /etc/package-manager/backendlib/libxpk.so
+[ -L /etc/package-manager/backendlib/libwgt.so ] && rm /etc/package-manager/backendlib/libwgt.so
+[ -L /etc/package-manager/backend/xpk ] && rm /etc/package-manager/backend/xpk
+[ -L /etc/package-manager/backend/wgt ] && rm /etc/package-manager/backend/wgt
+fi
+
%postun
%files
/usr/bin/start-chrome-driver.sh
/usr/apps/com.samsung.chromedriver
%endif
+
+%if 0%{?build_xwalk}
+%files -n crosswalk
+%manifest %{XWALK_GEN}/crosswalk.manifest
+%license %{XWALK_GEN}/AUTHORS.chromium %{XWALK_GEN}/LICENSE.chromium %{XWALK_GEN}/LICENSE.xwalk
+%{_bindir}/xwalkctl
+%{_bindir}/xwalk-launcher
+%{_libdir}/xwalk/icudtl.dat
+%{_libdir}/xwalk/libffmpegsumo.so
+%if %{?_disable_nacl}%{!?_disable_nacl:1} == 0
+%{_libdir}/xwalk/nacl_bootstrap_raw
+%{_libdir}/xwalk/nacl_helper
+%{_libdir}/xwalk/nacl_helper_bootstrap
+%{_libdir}/xwalk/nacl_irt_*.nexe
+%{_libdir}/xwalk/pnacl/*
+%endif
+%{_libdir}/xwalk/xwalk
+%{_libdir}/xwalk/xwalk.pak
+%{_libdir}/xwalk/libxwalk_backend_lib.so
+%{_libdir}/xwalk/xwalk_backend
+%{_manifestdir}/crosswalk.xml
+%{_desktop_icondir}/crosswalk.png
+%{_dbusservicedir}/org.crosswalkproject.Runtime1.service
+%{_systemduserservicedir}/xwalk.service
+%{_datadir}/xwalk/*
+%endif