[Mesa-dev] [PATCH 12/14] scons: rework the EGL build

Matt Turner mattst88 at gmail.com
Tue Jul 14 08:20:53 PDT 2015


On Tue, Jul 14, 2015 at 8:02 AM, Emil Velikov <emil.l.velikov at gmail.com> wrote:
> The scons equivalent of the previous commit - just fold the almost
> identical driver + main Sconscripts.
>
> Cc: Alexander von Gluck IV <kallisti5 at unixzen.com>
> Signed-off-by: Emil Velikov <emil.l.velikov at gmail.com>
> ---
>  src/SConscript                   |  3 +--
>  src/egl/Makefile.am              |  5 ++---
>  src/egl/SConscript               | 33 +++++++++++++++++++++++++++++++++
>  src/egl/drivers/haiku/SConscript | 25 -------------------------
>  src/egl/main/SConscript          | 32 --------------------------------
>  5 files changed, 36 insertions(+), 62 deletions(-)
>  create mode 100644 src/egl/SConscript
>  delete mode 100644 src/egl/drivers/haiku/SConscript
>  delete mode 100644 src/egl/main/SConscript
>
> diff --git a/src/SConscript b/src/SConscript
> index 46482fb..106b87d 100644
> --- a/src/SConscript
> +++ b/src/SConscript
> @@ -32,8 +32,7 @@ if not env['embedded']:
>      if env['platform'] not in ('cygwin', 'darwin', 'freebsd', 'haiku', 'windows'):
>          SConscript('glx/SConscript')
>      if env['platform'] == 'haiku':
> -        SConscript('egl/drivers/haiku/SConscript')
> -        SConscript('egl/main/SConscript')
> +        SConscript('egl/SConscript')
>
>      if env['gles']:
>          SConscript('mapi/shared-glapi/SConscript')
> diff --git a/src/egl/Makefile.am b/src/egl/Makefile.am
> index e6862d2..767bb53 100644
> --- a/src/egl/Makefile.am
> +++ b/src/egl/Makefile.am
> @@ -111,10 +111,9 @@ egl_HEADERS = \
>         $(top_srcdir)/include/EGL/eglplatform.h
>
>  EXTRA_DIST = \
> +       SConscript \
>         drivers/haiku \
>         docs \
>         main/egl.def \
>         main/README.txt \
> -       main/SConscript \
> -       main/Makefile.sources \
> -       drivers/dri2/SConscript
> +       main/Makefile.sources

I was going to say that main/Makefile.sources should be added in the
previous commit, but I don't think you need to list it in EXTRA_DIST
since it's included by Makefile.am. At least I don't see that we list
it anywhere else and make dist seems to work. :)


More information about the mesa-dev mailing list