Initial commit based on weston-ivi package. master
authorOssama Othman <ossama.othman@intel.com>
Wed, 4 Jun 2014 17:57:44 +0000 (10:57 -0700)
committerOssama Othman <ossama.othman@intel.com>
Wed, 4 Jun 2014 17:58:53 +0000 (10:58 -0700)
Signed-off-by: Ossama Othman <ossama.othman@intel.com>
.gitignore [new file with mode: 0644]
COPYING [new file with mode: 0644]
packaging/weston-emulator.changes [new file with mode: 0644]
packaging/weston-emulator.manifest [new file with mode: 0644]
packaging/weston-emulator.spec [new file with mode: 0644]
weston.ini [new file with mode: 0644]
weston.service [new file with mode: 0644]
weston.sh [new file with mode: 0644]

diff --git a/.gitignore b/.gitignore
new file mode 100644 (file)
index 0000000..17ed02e
--- /dev/null
@@ -0,0 +1,2 @@
+*~
+*#*#
diff --git a/COPYING b/COPYING
new file mode 100644 (file)
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 (file)
index 0000000..9fb9d41
--- /dev/null
@@ -0,0 +1,3 @@
+* Wed Jun 04 2014 Ossama Othman <ossama.othman@intel.com> da92575
+- Initial commit based on weston-ivi package.
+
diff --git a/packaging/weston-emulator.manifest b/packaging/weston-emulator.manifest
new file mode 100644 (file)
index 0000000..017d22d
--- /dev/null
@@ -0,0 +1,5 @@
+<manifest>
+ <request>
+    <domain name="_"/>
+ </request>
+</manifest>
diff --git a/packaging/weston-emulator.spec b/packaging/weston-emulator.spec
new file mode 100644 (file)
index 0000000..0339925
--- /dev/null
@@ -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 (file)
index 0000000..8b5cae2
--- /dev/null
@@ -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 (file)
index 0000000..7234b73
--- /dev/null
@@ -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 (file)
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