mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-23 02:08:10 +02:00
The function is effectively a direct function call into libwayland-server.so. Thus GBM no longer depends on the wayland-drm static library, making the build more straight forward. And the resulting binary is a bit smaller. Note: we need to move struct wayland_drm_callbacks further up, otherwise we'll get an error since the type is incomplete. v2: Rebase, beef-up commit message, update meson, move struct wayland_drm_callbacks. Signed-off-by: Emil Velikov <emil.velikov@collabora.com> Reviewed-by: Daniel Stone <daniels@collabora.com> (v1) Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com> # meson bit only Acked-by: Eric Engestrom <eric.engestrom@imgtec.com> # for the rest Reviewed-by: Dylan Baker <dylan@pnwbakers.com> # meson
57 lines
1.1 KiB
Makefile
57 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) \
|
|
-I$(top_srcdir)/src/egl/wayland/wayland-drm/
|
|
libgbm_la_LIBADD += $(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
|