Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
Reviewed-by: Tom Stellard <thomas.stellard@amd.com>
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
# DEALINGS IN THE SOFTWARE.
+include Makefile.sources
include $(top_srcdir)/src/gallium/Automake.inc
AM_CFLAGS = \
$(LIBKMS_XORG_CFLAGS) \
$(LIBDRM_XORG_CFLAGS) \
$(shell $(PKG_CONFIG) --cflags-only-I xorg-server)
+
AM_CPPFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src/mesa \
noinst_LTLIBRARIES = libxorgtracker.la
-libxorgtracker_la_SOURCES = \
- xorg_composite.c \
- xorg_crtc.c \
- xorg_dri2.c \
- xorg_driver.c \
- xorg_exa.c \
- xorg_exa_tgsi.c \
- xorg_output.c \
- xorg_renderer.c \
- xorg_xv.c \
- xorg_xvmc.c
+libxorgtracker_la_SOURCES = $(C_SOURCES)
--- /dev/null
+C_SOURCES := \
+ xorg_composite.c \
+ xorg_crtc.c \
+ xorg_dri2.c \
+ xorg_driver.c \
+ xorg_exa.c \
+ xorg_exa_tgsi.c \
+ xorg_output.c \
+ xorg_renderer.c \
+ xorg_xv.c \
+ xorg_xvmc.c
conf.Finish()
-sources = [
- 'xorg_composite.c',
- 'xorg_crtc.c',
- 'xorg_dri2.c',
- 'xorg_driver.c',
- 'xorg_exa.c',
- 'xorg_exa_tgsi.c',
- 'xorg_output.c',
- 'xorg_renderer.c',
- 'xorg_xv.c',
- 'xorg_xvmc.c',
-]
-
st_xorg = env.ConvenienceLibrary(
target = 'st_xorg',
- source = sources,
+ source = env.ParseSourceList('Makefile.sources', 'C_SOURCES')
)
Export('st_xorg')