On 30 August 2016 at 19:56, Derek Foreman <der...@osg.samsung.com> wrote:
> From: "Reynaldo H. Verdejo Pinochet" <reyna...@osg.samsung.com>
>
> The wl_uninstalled script provides a shell environment to
> build and use an uninstalled Wayland/Weston setup.
>
> For example, this script and a fresh checkout of Wayland,
> libinput, wayland-protocols and Weston is all you need to
> run Weston from the uninstalled environment created by
> building every module. No installation required.
>
> Quick instructions:
>
> Lets use Weston as an example altough other Wayland-based
> software should work as well.
>
> Edit a local copy of the script to make $WLD point to the
> base directory where your repositories are (make sure to
> use the absolute paths), then, after executing the script,
> issue the following commands to have everything built and
> Weston runing from the uninstalled environment.
>
> cd <basedir>
> for i in wayland wayland-protocols libinput weston; do
> cd $i && ./autogen.sh && make && cd ..; done
Above all please do _not_ recommend building in-tree. Pretty please.

As mentioned before using --prefix=$WLD/foo + make install will make
things shorter/simpler

LD_LIBRARY_PATH="\
$WLD/foo/lib/\
${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"

WESTON_BUILD_DIR="\
$WLD/build/weston/\
${WESTON_BUILD_DIR:+:$WESTON_BUILD_DIR}"

PKG_CONFIG_PATH="\
:$WLD/foo/lib/pkgconfig/
${PKG_CONFIG_PATH:+:$PKG_CONFIG_PATH}"

PATH="\
$WLD/foo/bin/\
:$PATH"


> +* Edit a local copy of the script to make $WLD point to the base directory
How about one honours the WLD that's already set since ...

> +  where your repositories are (make sure to use the absolute paths), then,
> +  after executing the script, issue the following commands to have everything
> +  built and weston running from the uninstalled environment.
> +
> +    cd $WLD
... they will likely use it here ?

> +    for i in wayland wayland-protocols libinput weston; do
> +    cd $i && ./autogen.sh && make && cd ..; done
Use OOT builds, please.


> +if [ "$1"yes != "yes" ]; then
> +  cat << EOF
> +
> +This script uses no arguments. Aborting execution.
> +
The number of arguments is $#, why not use that one ?


> +WLD=$HOME/devel/wayland/git
> +
With the above said, one can just check it and bail out if WLD invalid/unset ?


> +# Export new environment
> +
> +export WLD
Then you can drop this (maybe) ?


> +The following environment has been exported:
> +
> +WLD=$WLD
And this ?


Regards,
Emil
_______________________________________________
wayland-devel mailing list
wayland-devel@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/wayland-devel

Reply via email to