mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
From: Ladislav Michl <ladis@linux-mips.org>
To: ptxdist@pengutronix.de
Subject: Re: [ptxdist] [PATCH 3/3] weston: add IVI-Shell support
Date: Fri, 31 Aug 2018 08:11:01 +0200	[thread overview]
Message-ID: <20180831061101.GB22911@lenoch> (raw)
In-Reply-To: <20180830162330.28132-3-m.tretter@pengutronix.de>

On Thu, Aug 30, 2018 at 06:23:30PM +0200, Michael Tretter wrote:
> The IVI-Shell is a shell for in-vehicle-infotainment systems. Allow to
> build the ivi shell module and separately also build the ivi-shell user
> interface example.
> 
> Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
> ---
>  rules/weston.in   | 14 ++++++++++++++
>  rules/weston.make | 41 +++++++++++++++++++++++++++++++++++++++--
>  2 files changed, 53 insertions(+), 2 deletions(-)
> 
> diff --git a/rules/weston.in b/rules/weston.in
> index 2e760740c..77789a23b 100644
> --- a/rules/weston.in
> +++ b/rules/weston.in
> @@ -87,4 +87,18 @@ config WESTON_INSTALL_CONFIG
>  	help
>  	  Install the Weston configuration file into /etc/xdg/weston
>  
> +config WESTON_IVISHELL
> +	bool
> +	prompt "IVI-Shell"
> +
> +config WESTON_IVISHELL_EXAMPLE
> +	bool
> +	select WESTON_INSTALL_CONFIG
> +	depends on WESTON_IVISHELL

a more common patters seems to have "depends on" first

> +	prompt "install example IVI-Shell user interface"
> +	help
> +	  Install the example hmi-controller, the IVI-Shell user interface
> +	  application, a few demo clients and the weston.ini configuration for
> +	  the IVI-Shell.
> +
>  endif
> diff --git a/rules/weston.make b/rules/weston.make
> index 1e08b8c80..8f208c4d2 100644
> --- a/rules/weston.make
> +++ b/rules/weston.make
> @@ -65,9 +65,9 @@ WESTON_CONF_OPT		:= \
>  	--$(call ptx/endis, PTXCONF_WESTON_SYSTEMD_LOGIND)-dbus \
>  	--$(call ptx/endis, PTXCONF_WESTON_SYSTEMD_LOGIND)-systemd-login \
>  	--disable-junit-xml \
> -	--disable-ivi-shell \
> +	--$(call ptx/endis, PTXCONF_WESTON_IVISHELL)-ivi-shell \
>  	--$(call ptx/endis, PTXCONF_WESTON_WCAP_TOOLS)-wcap-tools \
> -	--disable-demo-clients-install \
> +	--$(call ptx/endis, PTXCONF_WESTON_IVISHELL_EXAMPLE)-demo-clients-install \
>  	--disable-lcms \
>  	--$(call ptx/endis, PTXCONF_WESTON_SYSTEMD)-systemd-notify \
>  	--with-cairo=$(call ptx/ifdef, PTXCONF_WESTON_GL,glesv2,image) \
> @@ -82,12 +82,20 @@ $(STATEDIR)/weston.install:
>  	@$(call targetinfo)
>  	@$(call world/install, WESTON)
>  
> +ifndef PTXCONF_WESTON_IVISHELL_EXAMPLE
>  	@mkdir -p $(WESTON_PKGDIR)/etc/xdg/weston && \
>  	 bindir="/usr/bin" \
>  	 abs_top_builddir="/usr/bin" \
>  	 libexecdir="/usr/libexec" \
>  	ptxd_replace_magic "$(WESTON_DIR)/weston.ini.in" > \
>  		"$(WESTON_PKGDIR)/etc/xdg/weston/weston.ini"
> +else
> +	@mkdir -p $(WESTON_PKGDIR)/etc/xdg/weston && \
> +	 westondatadir="/usr/share/weston" \
> +	 bindir="/usr/bin" \

spaces after tab

> +	ptxd_replace_magic "$(WESTON_DIR)/ivi-shell/weston.ini.in" > \
> +		"$(WESTON_PKGDIR)/etc/xdg/weston/weston.ini"
> +endif
>  
>  	@$(call touch)
>  
> @@ -135,6 +143,9 @@ ifdef PTXCONF_WESTON_GL
>  endif
>  	@$(call install_lib, weston, 0, 0, 0644, weston/desktop-shell)
>  	@$(call install_lib, weston, 0, 0, 0644, weston/fullscreen-shell)
> +ifdef PTXCONF_WESTON_IVISHELL
> +	@$(call install_lib, weston, 0, 0, 0644, weston/ivi-shell)
> +endif
>  ifdef PTXCONF_WESTON_SYSTEMD
>  	@$(call install_lib, weston, 0, 0, 0644, weston/systemd-notify)
>  endif
> @@ -161,6 +172,32 @@ ifdef PTXCONF_WESTON_INSTALL_CONFIG
>  	@$(call install_alternative, weston, 0, 0, 0644, /etc/xdg/weston/weston.ini)
>  endif
>  
> +ifdef PTXCONF_WESTON_IVISHELL_EXAMPLE
> +	@$(call install_lib, weston, 0, 0, 0644, weston/hmi-controller)
> +	@$(call install_copy, weston, 0, 0, 0755, -, /usr/libexec/weston-ivi-shell-user-interface)
> +
> +	@$(foreach image, \
> +		background.png \
> +		fullscreen.png \
> +		home.png \
> +		icon_ivi_clickdot.png \
> +		icon_ivi_flower.png \
> +		icon_ivi_simple-egl.png \
> +		icon_ivi_simple-shm.png \
> +		icon_ivi_smoke.png \
> +		panel.png \
> +		random.png \
> +		sidebyside.png \
> +		tiling.png, \
> +		$(call install_copy, weston, 0, 0, 0644, -, /usr/share/weston/$(image))$(ptx/nl))
> +
> +	@$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-clickdot)
> +	@$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-flower)
> +	@$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-simple-egl)
> +	@$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-simple-shm)
> +	@$(call install_copy, weston, 0, 0, 0755, -, /usr/bin/weston-smoke)
> +endif
> +
>  	@$(call install_finish, weston)
>  
>  	@$(call touch)
> -- 
> 2.18.0
> 
> 
> _______________________________________________
> ptxdist mailing list
> ptxdist@pengutronix.de

_______________________________________________
ptxdist mailing list
ptxdist@pengutronix.de

  reply	other threads:[~2018-08-31  6:11 UTC|newest]

Thread overview: 14+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-08-27 13:29 [ptxdist] [PATCH 1/3] wayland: version bump 1.15.0 -> 1.16.0 Philipp Zabel
2018-08-27 13:29 ` [ptxdist] [PATCH 2/3] wayland-protocols: version bump 1.13 -> 1.16 Philipp Zabel
2018-08-27 13:29 ` [ptxdist] [PATCH 3/3] weston: version bump 4.0.0 -> 5.0.0 Philipp Zabel
2018-08-30 16:23   ` [ptxdist] [PATCH 1/3] weston: remove empty clean stage Michael Tretter
2018-08-30 16:23     ` [ptxdist] [PATCH 2/3] weston: install weston.ini into /etc Michael Tretter
2018-08-31  6:09       ` Ladislav Michl
2018-08-31  7:16         ` Michael Olbrich
2018-08-31  7:19           ` Michael Olbrich
2018-08-30 16:23     ` [ptxdist] [PATCH 3/3] weston: add IVI-Shell support Michael Tretter
2018-08-31  6:11       ` Ladislav Michl [this message]
2018-08-31  7:22         ` Michael Olbrich
2018-08-31  8:10     ` [ptxdist] [PATCH v2 1/3] weston: remove empty clean stage Michael Tretter
2018-08-31  8:10       ` [ptxdist] [PATCH v2 2/3] weston: install weston.ini into /etc Michael Tretter
2018-08-31  8:10       ` [ptxdist] [PATCH v2 3/3] weston: add IVI-Shell support Michael Tretter

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20180831061101.GB22911@lenoch \
    --to=ladis@linux-mips.org \
    --cc=ptxdist@pengutronix.de \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox