diff options
author | Boyan Ding <[email protected]> | 2015-07-21 23:43:54 +0800 |
---|---|---|
committer | Martin Peres <[email protected]> | 2015-11-17 17:26:20 +0200 |
commit | 6bd9ba7d07490059024d16ba32fafa1c5bb239ee (patch) | |
tree | 55b87a823566ebab87d6097c9cfc019e2f2a882c /src/loader/Makefile.am | |
parent | 252b143e9e8ca0b98143c237f14cb0b548ffd510 (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 <[email protected]>
Signed-off-by: Martin Peres <[email protected]>
Reviewed-by: Kristian Høgsberg <[email protected]>
Reviewed-by: Emil Velikov <[email protected]>
Diffstat (limited to 'src/loader/Makefile.am')
-rw-r--r-- | src/loader/Makefile.am | 15 |
1 files changed, 14 insertions, 1 deletions
diff --git a/src/loader/Makefile.am b/src/loader/Makefile.am index 5190f7f8a46..c0f79475361 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 |