2012-10-13 01:54:45 +08:00
|
|
|
if BUILD_DOCS
|
2014-03-07 16:00:18 +08:00
|
|
|
SUBDIRS = doc
|
2012-10-13 01:54:45 +08:00
|
|
|
endif
|
|
|
|
|
2010-11-06 08:55:27 +08:00
|
|
|
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
|
2011-02-15 11:17:41 +08:00
|
|
|
|
|
|
|
aclocaldir = $(datadir)/aclocal
|
2013-07-02 17:38:15 +08:00
|
|
|
dist_aclocal_DATA = wayland-scanner.m4
|
2011-02-24 17:53:06 +08:00
|
|
|
|
2014-02-19 06:55:09 +08:00
|
|
|
dist_pkgdata_DATA = \
|
|
|
|
wayland-scanner.mk \
|
|
|
|
protocol/wayland.xml \
|
|
|
|
protocol/wayland.dtd
|
2014-03-07 15:15:02 +08:00
|
|
|
|
2014-03-07 15:45:56 +08:00
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
|
|
|
pkgconfig_DATA =
|
|
|
|
|
|
|
|
lib_LTLIBRARIES = libwayland-server.la libwayland-client.la
|
|
|
|
noinst_LTLIBRARIES = libwayland-util.la
|
|
|
|
|
|
|
|
include_HEADERS = \
|
|
|
|
src/wayland-util.h \
|
2014-03-08 06:02:32 +08:00
|
|
|
protocol/wayland-server-protocol.h \
|
2014-03-07 15:45:56 +08:00
|
|
|
src/wayland-server.h \
|
2014-03-08 06:02:32 +08:00
|
|
|
protocol/wayland-client-protocol.h \
|
2014-03-07 15:45:56 +08:00
|
|
|
src/wayland-client.h \
|
|
|
|
src/wayland-egl.h \
|
|
|
|
src/wayland-version.h
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
|
libwayland_server_la_CFLAGS = $(FFI_CFLAGS) $(GCC_CFLAGS) -pthread
|
|
|
|
libwayland_server_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt -lm
|
|
|
|
libwayland_server_la_LDFLAGS = -version-info 1:0:1
|
|
|
|
libwayland_server_la_SOURCES = \
|
|
|
|
src/wayland-server.c \
|
|
|
|
src/wayland-shm.c \
|
|
|
|
src/event-loop.c
|
|
|
|
|
|
|
|
nodist_libwayland_server_la_SOURCES = \
|
|
|
|
protocol/wayland-protocol.c
|
|
|
|
|
|
|
|
libwayland_client_la_CFLAGS = $(FFI_CFLAGS) $(GCC_CFLAGS) -pthread
|
|
|
|
libwayland_client_la_LIBADD = $(FFI_LIBS) libwayland-util.la -lrt -lm
|
|
|
|
libwayland_client_la_LDFLAGS = -version-info 2:0:2
|
|
|
|
libwayland_client_la_SOURCES = \
|
|
|
|
src/wayland-client.c
|
|
|
|
|
|
|
|
nodist_libwayland_client_la_SOURCES = \
|
|
|
|
protocol/wayland-protocol.c
|
|
|
|
|
|
|
|
pkgconfig_DATA += src/wayland-client.pc src/wayland-server.pc
|
|
|
|
|
|
|
|
if ENABLE_SCANNER
|
|
|
|
wayland_scanner = $(top_builddir)/wayland-scanner
|
2014-03-08 03:57:34 +08:00
|
|
|
bin_PROGRAMS = wayland-scanner
|
|
|
|
wayland_scanner_SOURCES = src/scanner.c
|
|
|
|
wayland_scanner_LDADD = $(EXPAT_LIBS) libwayland-util.la
|
|
|
|
$(BUILT_SOURCES) : wayland-scanner
|
|
|
|
pkgconfig_DATA += src/wayland-scanner.pc
|
2014-03-07 15:45:56 +08:00
|
|
|
else
|
|
|
|
wayland_scanner = wayland-scanner
|
|
|
|
endif
|
|
|
|
|
|
|
|
protocol/%-protocol.c : $(top_srcdir)/protocol/%.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
|
|
|
|
|
|
|
|
protocol/%-server-protocol.h : $(top_srcdir)/protocol/%.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
|
2014-03-07 15:15:02 +08:00
|
|
|
|
2014-03-07 15:45:56 +08:00
|
|
|
protocol/%-client-protocol.h : $(top_srcdir)/protocol/%.xml
|
|
|
|
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
|
|
|
|
|
|
|
|
BUILT_SOURCES = \
|
|
|
|
$(nodist_libwayland_server_la_SOURCES) \
|
|
|
|
$(nodist_libwayland_client_la_SOURCES)
|
|
|
|
|
|
|
|
CLEANFILES = $(BUILT_SOURCES)
|
|
|
|
DISTCLEANFILES = src/wayland-version.h
|
|
|
|
EXTRA_DIST = src/wayland-version.h.in
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib_LTLIBRARIES += libwayland-cursor.la
|
|
|
|
|
|
|
|
include_HEADERS += cursor/wayland-cursor.h
|
2014-03-07 15:15:02 +08:00
|
|
|
|
|
|
|
libwayland_cursor_la_SOURCES = \
|
|
|
|
cursor/wayland-cursor.c \
|
|
|
|
cursor/os-compatibility.c \
|
|
|
|
cursor/os-compatibility.h \
|
|
|
|
cursor/cursor-data.h \
|
|
|
|
cursor/xcursor.c \
|
|
|
|
cursor/xcursor.h
|
2014-03-07 15:45:56 +08:00
|
|
|
libwayland_cursor_la_LIBADD = libwayland-client.la
|
2014-03-07 15:15:02 +08:00
|
|
|
|
2014-03-07 15:45:56 +08:00
|
|
|
pkgconfig_DATA += cursor/wayland-cursor.pc
|
2014-03-07 15:15:02 +08:00
|
|
|
|
|
|
|
libwayland_cursor_la_CFLAGS = \
|
|
|
|
$(GCC_CFLAGS) \
|
|
|
|
-I$(top_builddir)/src \
|
|
|
|
-I$(top_srcdir)/src \
|
|
|
|
-DICONDIR=\"$(ICONDIR)\"
|
2014-03-07 16:00:18 +08:00
|
|
|
|
|
|
|
|
|
|
|
TESTS = \
|
|
|
|
array-test \
|
|
|
|
client-test \
|
|
|
|
display-test \
|
|
|
|
connection-test \
|
|
|
|
event-loop-test \
|
|
|
|
fixed-test \
|
|
|
|
list-test \
|
|
|
|
map-test \
|
|
|
|
os-wrappers-test \
|
|
|
|
sanity-test \
|
|
|
|
socket-test \
|
|
|
|
queue-test \
|
|
|
|
signal-test \
|
|
|
|
resources-test
|
|
|
|
|
|
|
|
check_PROGRAMS = \
|
|
|
|
$(TESTS) \
|
|
|
|
exec-fd-leak-checker
|
|
|
|
|
|
|
|
noinst_PROGRAMS = \
|
|
|
|
fixed-benchmark
|
|
|
|
|
|
|
|
check_LTLIBRARIES = libtest-runner.la
|
|
|
|
|
|
|
|
libtest_runner_la_SOURCES = \
|
|
|
|
tests/test-runner.c \
|
|
|
|
tests/test-runner.h \
|
|
|
|
tests/test-helpers.c
|
|
|
|
libtest_runner_la_LIBADD = \
|
|
|
|
libwayland-util.la \
|
|
|
|
libwayland-client.la \
|
|
|
|
libwayland-server.la \
|
|
|
|
-lrt -ldl $(FFI_LIBS)
|
|
|
|
|
|
|
|
|
|
|
|
array_test_SOURCES = tests/array-test.c
|
|
|
|
array_test_LDADD = libtest-runner.la
|
|
|
|
client_test_SOURCES = tests/client-test.c
|
|
|
|
client_test_LDADD = libtest-runner.la
|
|
|
|
display_test_SOURCES = tests/display-test.c
|
|
|
|
display_test_LDADD = libtest-runner.la
|
|
|
|
connection_test_SOURCES = tests/connection-test.c
|
|
|
|
connection_test_LDADD = libtest-runner.la
|
|
|
|
event_loop_test_SOURCES = tests/event-loop-test.c
|
|
|
|
event_loop_test_LDADD = libtest-runner.la
|
|
|
|
fixed_test_SOURCES = tests/fixed-test.c
|
|
|
|
fixed_test_LDADD = libtest-runner.la
|
|
|
|
list_test_SOURCES = tests/list-test.c
|
|
|
|
list_test_LDADD = libtest-runner.la
|
|
|
|
map_test_SOURCES = tests/map-test.c
|
|
|
|
map_test_LDADD = libtest-runner.la
|
|
|
|
sanity_test_SOURCES = tests/sanity-test.c
|
|
|
|
sanity_test_LDADD = libtest-runner.la
|
|
|
|
socket_test_SOURCES = tests/socket-test.c
|
|
|
|
socket_test_LDADD = libtest-runner.la
|
|
|
|
queue_test_SOURCES = tests/queue-test.c
|
|
|
|
queue_test_LDADD = libtest-runner.la
|
|
|
|
signal_test_SOURCES = tests/signal-test.c
|
|
|
|
signal_test_LDADD = libtest-runner.la
|
|
|
|
resources_test_SOURCES = tests/resources-test.c
|
|
|
|
resources_test_LDADD = libtest-runner.la
|
|
|
|
|
|
|
|
fixed_benchmark_SOURCES = tests/fixed-benchmark.c
|
|
|
|
|
|
|
|
os_wrappers_test_SOURCES = tests/os-wrappers-test.c
|
|
|
|
os_wrappers_test_LDADD = libtest-runner.la
|
|
|
|
|
|
|
|
AM_CPPFLAGS = -I$(top_builddir)/src -I$(top_srcdir)/src
|
|
|
|
AM_CFLAGS = $(GCC_CFLAGS) $(FFI_CFLAGS)
|
|
|
|
|
|
|
|
exec_fd_leak_checker_SOURCES = tests/exec-fd-leak-checker.c
|
|
|
|
exec_fd_leak_checker_LDADD = libtest-runner.la
|