summaryrefslogtreecommitdiff
path: root/src/loader/Makefile.am
diff options
context:
space:
mode:
authorBoyan Ding <boyan.j.ding@gmail.com>2015-07-21 23:43:54 +0800
committerMartin Peres <martin.peres@linux.intel.com>2015-11-17 17:26:20 +0200
commit6bd9ba7d07490059024d16ba32fafa1c5bb239ee (patch)
tree55b87a823566ebab87d6097c9cfc019e2f2a882c /src/loader/Makefile.am
parent252b143e9e8ca0b98143c237f14cb0b548ffd510 (diff)
loader: Add dri3 helper
v2: From Martin Peres - Try to fit in the 80-col limit as much as possible v3: From Martin Peres - introduce loader_dri3_helper.la to avoid dragging the xcb dep everywhere (Kristian & Emil) - get rid of the width, height, dri_screen and is_different_gpu vfuncs (Kristian) - replace the create/destroy functions with init/fini for dri3 drawables - prefix static functions with dri3_ and exported ones with loader_dri3 (Emil) - keep the function definition consistent (Emil) Signed-off-by: Boyan Ding <boyan.j.ding@gmail.com> Signed-off-by: Martin Peres <martin.peres@linux.intel.com> Reviewed-by: Kristian Høgsberg <krh@bitplanet.net> Reviewed-by: Emil Velikov <emil.velikov@collabora.co.uk>
Diffstat (limited to 'src/loader/Makefile.am')
-rw-r--r--src/loader/Makefile.am15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/loader/Makefile.am b/src/loader/Makefile.am
index 5190f7f8a4..c0f7947536 100644
--- a/src/loader/Makefile.am
+++ b/src/loader/Makefile.am
@@ -23,7 +23,7 @@ include Makefile.sources
EXTRA_DIST = SConscript
-noinst_LTLIBRARIES = libloader.la
+noinst_LTLIBRARIES = libloader.la libloader_dri3_helper.la
libloader_la_CPPFLAGS = \
$(DEFINES) \
@@ -55,3 +55,16 @@ libloader_la_CPPFLAGS += \
libloader_la_LIBADD += \
$(LIBDRM_LIBS)
endif
+
+if HAVE_DRI3
+libloader_dri3_helper_la_CPPFLAGS = \
+ $(DEFINES) \
+ -I$(top_srcdir)/include \
+ -I$(top_srcdir)/src \
+ $(LIBDRM_CFLAGS)
+
+libloader_dri3_helper_la_SOURCES = \
+ loader_dri3_helper.c \
+ loader_dri3_helper.h
+libloader_dri3_helper_la_LIBADD = $(XCB_DRI3_LIBS)
+endif