mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-26 06:59:58 -05:00
When cross-compiling Wayland, wayland-scanner should be picked up from the host system instead of compiling and trying to run e.g. ARM wayland-scanner on X86. This patch adds --disable-scanner option for disabling the scanner from the build and using existing wayland-scanner instead (from PATH) which should help in most cross-compilation systems. By default everything works as before. Signed-off-by: Jani Uusi-Rantala <jani.uusi-rantala@nokia.com>
63 lines
1.4 KiB
Makefile
63 lines
1.4 KiB
Makefile
lib_LTLIBRARIES = libwayland-server.la libwayland-client.la
|
|
noinst_LTLIBRARIES = libwayland-util.la
|
|
|
|
include_HEADERS = \
|
|
wayland-util.h \
|
|
wayland-server-protocol.h \
|
|
wayland-server.h \
|
|
wayland-client-protocol.h \
|
|
wayland-client.h \
|
|
wayland-egl.h
|
|
|
|
libwayland_util_la_SOURCES = \
|
|
connection.c \
|
|
connection.h \
|
|
wayland-util.c \
|
|
wayland-util.h \
|
|
wayland-hash.c
|
|
|
|
libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-util.la
|
|
libwayland_server_la_SOURCES = \
|
|
wayland-protocol.c \
|
|
wayland-server.c \
|
|
wayland-shm.c \
|
|
event-loop.c
|
|
|
|
libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-util.la
|
|
libwayland_client_la_SOURCES = \
|
|
wayland-protocol.c \
|
|
wayland-client.c
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
pkgconfig_DATA = wayland-client.pc wayland-server.pc
|
|
|
|
AM_CPPFLAGS = $(FFI_CFLAGS)
|
|
AM_CFLAGS = $(GCC_CFLAGS)
|
|
|
|
protocoldir = $(top_srcdir)/protocol
|
|
|
|
if ENABLE_SCANNER
|
|
wayland_scanner = $(top_builddir)/wayland/wayland-scanner
|
|
else
|
|
wayland_scanner = wayland-scanner
|
|
endif
|
|
|
|
include $(top_srcdir)/wayland/scanner.mk
|
|
|
|
if ENABLE_SCANNER
|
|
bin_PROGRAMS = wayland-scanner
|
|
|
|
wayland_scanner_SOURCES = \
|
|
scanner.c
|
|
|
|
wayland_scanner_LDADD = $(EXPAT_LIBS) libwayland-util.la
|
|
|
|
$(BUILT_SOURCES) : wayland-scanner
|
|
endif
|
|
|
|
BUILT_SOURCES = \
|
|
wayland-server-protocol.h \
|
|
wayland-client-protocol.h \
|
|
wayland-protocol.c
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|