mesa/src/gbm/Makefile.am
Emil Velikov 2785090a2a configure.ac: split the wayland client/server confusion
At the moment wayland-clients, such as the Vulkan drivers were
over-linking against libwayland-server.so.

That went unnoticed, since both client and server code uses the
wl*interface symbols, which are present in both libwayland-client.so and
libwayland-server.so.

I've looked at correcting that, although that's orthogonal to this fix.

Note: wayland-egl does _not_ depend on wayland-client, although it does
need wayland-egl.h. There's no distinct package that provides it (I have
a WIP on the topic) so current solution will do for now.

v2: Rebase with the "...inline wayland_drm_buffer_get" patch removed.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Daniel Stone <daniels@collabora.com>
2017-09-19 19:02:34 +01:00

55 lines
1.1 KiB
Makefile

include Makefile.sources
pkgconfigdir = $(libdir)/pkgconfig
pkgconfig_DATA = main/gbm.pc
AM_CFLAGS = \
-I$(top_srcdir)/include \
-I$(top_srcdir)/src \
-I$(top_srcdir)/src/loader \
-I$(top_srcdir)/src/gbm/main \
$(DLOPEN_CFLAGS) \
$(DEFINES) \
$(VISIBILITY_CFLAGS)
lib_LTLIBRARIES = libgbm.la
include_HEADERS = main/gbm.h
libgbm_la_SOURCES = \
$(gbm_core_FILES)
libgbm_la_LDFLAGS = \
-no-undefined \
-version-info 1:0 \
$(GC_SECTIONS) \
$(LD_NO_UNDEFINED)
libgbm_la_LIBADD = \
$(top_builddir)/src/loader/libloader.la \
$(top_builddir)/src/util/libmesautil.la \
$(top_builddir)/src/util/libxmlconfig.la \
$(DLOPEN_LIBS)
if HAVE_PLATFORM_WAYLAND
AM_CFLAGS += $(WAYLAND_SERVER_CFLAGS)
libgbm_la_LIBADD += $(top_builddir)/src/egl/wayland/wayland-drm/libwayland-drm.la $(WAYLAND_SERVER_LIBS)
endif
if HAVE_DRI2
libgbm_la_SOURCES += \
$(gbm_dri_FILES)
AM_CFLAGS += \
-DDEFAULT_DRIVER_DIR='"$(DRI_DRIVER_SEARCH_DIR)"' \
$(LIBDRM_CFLAGS) \
$(PTHREADSTUBS_CFLAGS)
libgbm_la_LIBADD += \
$(LIBDRM_LIBS) \
$(PTHREADSTUBS_LIBS)
endif
TESTS = gbm-symbols-check
EXTRA_DIST = gbm-symbols-check
include $(top_srcdir)/install-lib-links.mk