From f9d7c6d7c30c3cd7d5cca26114dcfa54849e40fd Mon Sep 17 00:00:00 2001 From: Ossama Othman Date: Wed, 4 Jun 2014 10:57:44 -0700 Subject: [PATCH 1/1] Initial commit based on weston-ivi package. Signed-off-by: Ossama Othman --- .gitignore | 2 ++ COPYING | 19 +++++++++++++ packaging/weston-emulator.changes | 3 +++ packaging/weston-emulator.manifest | 5 ++++ packaging/weston-emulator.spec | 55 ++++++++++++++++++++++++++++++++++++++ weston.ini | 36 +++++++++++++++++++++++++ weston.service | 13 +++++++++ weston.sh | 8 ++++++ 8 files changed, 141 insertions(+) create mode 100644 .gitignore create mode 100644 COPYING create mode 100644 packaging/weston-emulator.changes create mode 100644 packaging/weston-emulator.manifest create mode 100644 packaging/weston-emulator.spec create mode 100644 weston.ini create mode 100644 weston.service create mode 100644 weston.sh diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..17ed02e --- /dev/null +++ b/.gitignore @@ -0,0 +1,2 @@ +*~ +*#*# diff --git a/COPYING b/COPYING new file mode 100644 index 0000000..1b296a2 --- /dev/null +++ b/COPYING @@ -0,0 +1,19 @@ +Copyright © 2014 Intel Corporation + +Permission to use, copy, modify, distribute, and sell this software and its +documentation for any purpose is hereby granted without fee, provided that +the above copyright notice appear in all copies and that both that copyright +notice and this permission notice appear in supporting documentation, and +that the name of the copyright holders not be used in advertising or +publicity pertaining to distribution of the software without specific, +written prior permission. The copyright holders make no representations +about the suitability of this software for any purpose. It is provided "as +is" without express or implied warranty. + +THE COPYRIGHT HOLDERS DISCLAIM ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, +INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO +EVENT SHALL THE COPYRIGHT HOLDERS BE LIABLE FOR ANY SPECIAL, INDIRECT OR +CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, +DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER +TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE +OF THIS SOFTWARE. diff --git a/packaging/weston-emulator.changes b/packaging/weston-emulator.changes new file mode 100644 index 0000000..9fb9d41 --- /dev/null +++ b/packaging/weston-emulator.changes @@ -0,0 +1,3 @@ +* Wed Jun 04 2014 Ossama Othman da92575 +- Initial commit based on weston-ivi package. + diff --git a/packaging/weston-emulator.manifest b/packaging/weston-emulator.manifest new file mode 100644 index 0000000..017d22d --- /dev/null +++ b/packaging/weston-emulator.manifest @@ -0,0 +1,5 @@ + + + + + diff --git a/packaging/weston-emulator.spec b/packaging/weston-emulator.spec new file mode 100644 index 0000000..0339925 --- /dev/null +++ b/packaging/weston-emulator.spec @@ -0,0 +1,55 @@ +Name: weston-emulator +Version: 1 +Release: 0 +Summary: Tizen emulator Weston configuration and set-up +License: MIT +Group: Graphics & UI Framework/Configuration +BuildArch: noarch +Source0: %{name}-%{version}.tar.bz2 +Source1001: weston-emulator.manifest +Provides: weston-startup + +%description +This package contains Tizen emulator-specific set-up for the Weston +compositor, including systemd unit files, etc. + +%package config +Summary: Tizen emulator Weston configuration +Group: Graphics & UI Framework/Configuration +Requires: weekeyboard +Conflicts: ico-uxf-weston-plugin +Conflicts: weston-ivi-config +%description config +This package contains Tizen emulator-specific configuration for the Weston +compositor. + +%prep +%setup -q +cp %{SOURCE1001} . + +%build + +%install + +install -d %{buildroot}%{_unitdir_user}/weston.target.wants +install -m 644 weston.service %{buildroot}%{_unitdir_user}/weston.service +ln -sf ../weston.service %{buildroot}/%{_unitdir_user}/weston.target.wants/ + +mkdir -p %{buildroot}%{_sysconfdir}/profile.d/ +install -m 0644 weston.sh %{buildroot}%{_sysconfdir}/profile.d/ + +%define weston_config_dir %{_sysconfdir}/xdg/weston +mkdir -p %{buildroot}%{weston_config_dir} +install -m 0644 weston.ini %{buildroot}%{weston_config_dir} + +%files +%manifest %{name}.manifest +%defattr(-,root,root) +%license COPYING +%{_unitdir_user}/weston.service +%{_unitdir_user}/weston.target.wants/weston.service +%config %{_sysconfdir}/profile.d/* + +%files config +%manifest %{name}.manifest +%config %{weston_config_dir}/weston.ini diff --git a/weston.ini b/weston.ini new file mode 100644 index 0000000..8b5cae2 --- /dev/null +++ b/weston.ini @@ -0,0 +1,36 @@ +[core] +#modules=cms-colord.so +#shell=desktop-shell.so + +[shell] +background-image=/usr/share/backgrounds/gnome/Aqua.jpg +background-color=0xff248bd1 +background-type=tile +panel-color=0xff2a3c4a +locking=true +animation=zoom +startup-animation=fade + +[input-method] +path=/bin/weekeyboard + +#[output] +#name=LVDS1 +#mode=1680x1050 +#transform=90 +#icc_profile=/usr/share/color/icc/colord/Bluish.icc + +#[output] +#name=VGA1 +#mode=173.00 1920 2048 2248 2576 1080 1083 1088 1120 -hsync +vsync +#transform=flipped + +#[output] +#name=X1 +#mode=1024x768 +#transform=flipped-270 + +#[touchpad] +#constant_accel_factor = 50 +#min_accel_factor = 0.16 +#max_accel_factor = 1.0 diff --git a/weston.service b/weston.service new file mode 100644 index 0000000..7234b73 --- /dev/null +++ b/weston.service @@ -0,0 +1,13 @@ +[Unit] +Description=Weston +Requires=dbus.socket + +[Service] +ExecStart=/usr/bin/weston-launch -- -i0 +StandardInput=tty +StandardOutput=journal +StandardError=journal +TTYPath=/dev/tty1 + +[Install] +WantedBy=weston.target diff --git a/weston.sh b/weston.sh new file mode 100644 index 0000000..e804c12 --- /dev/null +++ b/weston.sh @@ -0,0 +1,8 @@ +export ELM_ENGINE=wayland_egl +export ECORE_EVAS_ENGINE=wayland_egl + +# Make EFL apps use the wayland-based input method. +export ECORE_IMF_MODULE=wayland + +# also export dbus session address for dbus clients (details on bug TIVI-1686 [https://bugs.tizen.org/jira/browse/TIVI-1686]) +export DBUS_SESSION_BUS_ADDRESS=unix:path=/run/user/$UID/dbus/user_bus_socket -- 2.7.4