[Mesa-dev] [PATCH 12/15] gallium: Add winsys loader for device enumeration and driver multiplexing.

Francisco Jerez currojerez at riseup.net
Fri Mar 23 06:27:53 PDT 2012


Jakob Bornecrantz <jakob at vmware.com> writes:

>> +libws_loader_la_LIBADD = \
>> +	$(top_srcdir)/src/gallium/winsys/sw/null/libws_null.la
>> +
>> +if HAVE_XLIB_LOADER_GALLIUM
>> +libws_loader_la_LIBADD += \
>> +	$(top_srcdir)/src/gallium/winsys/sw/xlib/libws_xlib.la
>> +AM_CFLAGS += -DHAVE_WS_LOADER_XLIB
>> +endif
>
> Ah so this explains the not sorting winsys dir, this shouldn't
> be done on the winsys this is for the target to keep track of.
> Just as it is the targets job to link libdrm.
>

I had the feeling that letting a winsys link to another wouldn't be much
of a problem, especially if all the winsys build system is going to be
converted to automake and we're going to get a more automated dependency
tracking.  But, if we don't want to relax that restriction anyway, the
other possibility would be to define a GALLIUM_WS_LOADER_LIBS variable
at configure time containing all the objects a target has to pull in
order to link to the winsys loader.  Would that be OK with you?

> Cheers, Jakob.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 229 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/mesa-dev/attachments/20120323/bf27a8db/attachment-0001.pgp>


More information about the mesa-dev mailing list