[Mesa-dev] [PATCH] autoconf: Better client API selection.

Chia-I Wu olvaffe at gmail.com
Thu Oct 28 22:58:25 PDT 2010


On Thu, Oct 28, 2010 at 3:32 AM, Dan Nicholson <dbn.lists at gmail.com> wrote:
> On Wed, Oct 27, 2010 at 3:30 AM, Chia-I Wu <olvaffe at gmail.com> wrote:
>> From: Chia-I Wu <olv at lunarg.com>
>>
>> Make autoconf decide the client APIs enabled first.  Then when OpenGL
>> and OpenGL ES are disabled, there is no need to build src/mesa/;  when
>> OpenGL is disabled, no $mesa_driver should be built.  Finally, add
>> --enable-openvg to enable OpenVG.
>>
>> With these changes, an OpenVG only build can be configured with
>>
>>  $ ./configure --disable-opengl --enable-openvg
>>
>> src/mesa, src/glsl, and src/glx will be skipped, which saves a great
>> deal of compilation time.
>>
>> And an OpenGL ES only build can be configured with
>>
>>  $ ./configure --disable-opengl --enable-gles-overlay
>
> Just wanna say that I think this is great and the right way to go. I
> always wanted to do this but never found the time. I'll try to do a
> detailed review, but in case I don't get some time before you're ready
> to move on,
>
> Acked-by: Dan Nicholson <dbn.lists at gmail.com>
Thanks.  I've committed the patch, and made another commit to update
the output of ./configure.  While the patch works great for better
config options and at reducing the compile time, it does not avoid
unnecessary PKG_CHECK_MODULES.  But I think that belongs to follow-on
works.

-- 
olv at LunarG.com


More information about the mesa-dev mailing list