build: Build a subset of libwayland_util when not building libraries

The scanner doesn't need anything but wayland-util.c/.h so we can
shrink wayland-util when not building the main libraries.

Signed-off-by: Derek Foreman <derekf@osg.samsung.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
This commit is contained in:
Derek Foreman 2015-06-17 15:13:51 -05:00 committed by Pekka Paalanen
parent 5cfdbef3d2
commit 0e979d82d2

View File

@ -34,20 +34,23 @@ else
wayland_scanner = wayland-scanner
endif
libwayland_util_la_CFLAGS = $(FFI_CFLAGS) $(GCC_CFLAGS)
libwayland_util_la_CFLAGS = $(GCC_CFLAGS)
libwayland_util_la_SOURCES = \
src/connection.c \
src/wayland-util.c \
src/wayland-util.h \
src/wayland-os.c \
src/wayland-os.h \
src/wayland-private.h
src/wayland-util.h
noinst_LTLIBRARIES = libwayland-util.la
if ENABLE_LIBRARIES
lib_LTLIBRARIES = libwayland-server.la libwayland-client.la
libwayland_util_la_CFLAGS += $(FFI_CFLAGS)
libwayland_util_la_SOURCES += \
src/connection.c \
src/wayland-os.c \
src/wayland-os.h \
src/wayland-private.h
include_HEADERS = \
src/wayland-util.h \
src/wayland-server.h \