From bcf12c051ffa5ca06e5781ac144271b2b3a1ee84 Mon Sep 17 00:00:00 2001 From: Philippe Coval Date: Fri, 27 Jun 2014 11:42:20 +0200 Subject: [PATCH] packaging: regenerate weston stubs from protocol Change-Id: I2153f9291e6be41f542664564cdaf7ef799d6712 Signed-off-by: Philippe Coval --- packaging/ico-uxf-homescreen.spec | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/packaging/ico-uxf-homescreen.spec b/packaging/ico-uxf-homescreen.spec index b1a1f60..72b2e7e 100644 --- a/packaging/ico-uxf-homescreen.spec +++ b/packaging/ico-uxf-homescreen.spec @@ -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} -- 2.7.4