packaging: regenerate weston stubs from protocol 52/23552/1
authorPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 27 Jun 2014 09:42:20 +0000 (11:42 +0200)
committerPhilippe Coval <philippe.coval@open.eurogiciel.org>
Fri, 27 Jun 2014 09:42:20 +0000 (11:42 +0200)
Change-Id: I2153f9291e6be41f542664564cdaf7ef799d6712
Signed-off-by: Philippe Coval <philippe.coval@open.eurogiciel.org>
packaging/ico-uxf-homescreen.spec

index b1a1f60..72b2e7e 100644 (file)
@@ -1,7 +1,7 @@
 Name:       ico-uxf-homescreen
 Summary:    Sample homescreen and system controller
 Version:    0.9.22
-Release:    1.1
+Release:    0
 Group:         Graphics & UI Framework/Automotive UI
 License:    Apache-2.0
 URL:        ""
@@ -66,6 +66,22 @@ Development files for application that communicate homescreen.
 %prep
 %setup -q -n %{name}-%{version}
 
+mkdir -p weston
+cp -av /usr/share/genivi-shell/protocol/*.xml weston/
+
+ls weston/*.xml | while read protocol ; do
+
+    /usr/bin/wayland-scanner client-header \
+        < "${protocol}" > "${protocol/.xml/}-client-protocol.h"
+
+    /usr/bin/wayland-scanner code \
+        < "${protocol}" > "${protocol/.xml/.c}"
+
+done
+
+ls weston/
+
+
 %build
 %autogen
 make %{?_smp_mflags}