[Mesa-dev] [RFC PATCH] automake: add support to src/glsl/

Matt Turner mattst88 at gmail.com
Sun Sep 25 12:36:02 PDT 2011


On Sat, Sep 24, 2011 at 9:06 PM, Matt Turner <mattst88 at gmail.com> wrote:
> Signed-off-by: Matt Turner <mattst88 at gmail.com>
> ---
> The last discussion about using automake ("[RFC] Convert mesa to automake/libtool")
> ended without anything happening, probably because the branch wasn't ready.
>
> This patch is an attempt to get the ball rolling again. Without ripping out
> the entire existing build system in one swat, it attempts to gradually replace
> it directory by directory with automake.
>
> The patch has a few problems currently, and a few things that can possibly be
> done better:
>        - Mainly, that building libmesa.a currently fails.
>        - Not sure how to handle shared/static dricore options.
>        - libtool defines VERSION (-DVERSION=...), which screws up the VERSION
>          token in glsl_lexer.ll and glsl_parser.yy. I trivially renamed it.
>        - libralloc.la can probably be combined into libglslcore.la, and not
>          have to be added to every _LDADD line.
>        - The rules for flex and bison can probably be eliminated by using
>          YFLAGS and LFLAGS. I tried, but ylwrap gave me some error.

v2:
- hoisted ralloc up into libglcpp.la so it doesn't need to be included
anywhere else.
- set AC_PREREQ([2.60])
- removed AM_MAINTAINER_MODE
- added YACC = @BISON@ and LEX = @FLEX@ to src/glsl/Makefile.am to
ensure they're defined properly by autoconf
- added BUILT_SOURCES for the generated files

Matt
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-automake-add-support-to-src-glsl.patch
Type: text/x-patch
Size: 13749 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20110925/420bf156/attachment.bin>


More information about the mesa-dev mailing list