nodist_include_HEADERS = \
wayland-tbm-server-protocol.h \
- wayland-tbm-client-protocol.h
+ wayland-tbm-test-server-protocol.h \
+ wayland-tbm-client-protocol.h \
+ wayland-tbm-test-client-protocol.h
libwayland_tbm_server_la_LDFLAGS = $(LDFLAGS) -export-dynamic
libwayland_tbm_server_la_CFLAGS = \
nodist_libwayland_tbm_server_la_SOURCES = \
wayland-tbm-server-protocol.h \
+ wayland-tbm-test-server-protocol.h \
wayland-tbm-client-protocol.h \
- wayland-tbm-protocol.c
+ wayland-tbm-test-client-protocol.h \
+ wayland-tbm-protocol.c \
+ wayland-tbm-test-protocol.c
libwayland_tbm_client_la_LDFLAGS = $(LDFLAGS) -export-dynamic
libwayland_tbm_client_la_CFLAGS = \
nodist_libwayland_tbm_client_la_SOURCES = \
wayland-tbm-client-protocol.h \
- wayland-tbm-protocol.c
+ wayland-tbm-test-client-protocol.h \
+ wayland-tbm-protocol.c \
+ wayland-tbm-test-protocol.c
%-protocol.c : $(top_srcdir)/protocol/%.xml
$(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
bin_PROGRAMS = wayland-tbm-utests
-wayland_tbm_utests_SOURCES = \
- src/ut_main.cpp \
- src/ut_base.cpp \
- src/ut_wayland_tbm.cpp \
- wayland-tbm-test-protocol.c
-
-nodist_include_HEADERS = \
- wayland-tbm-test-server-protocol.h \
- wayland-tbm-test-client-protocol.h
-
wayland_tbm_utests_CXXFLAGS = \
$(CXXFLAGS) \
$(WL_TBM_COMMON_CFLAGS) \
$(WL_TBM_CLIENT_CFLAGS) \
$(WL_TBM_SERVER_CFLAGS) \
-I../src \
- -I./src \
-I./ \
-I$(includedir)/gtest \
- -fpermissive \
- -rdynamic \
- -DFAIL_ON_UNSUPPORTED
+ -fpermissive
# The flag -w is used, because there are many warnings in wayland-tbm sources.
# Warnings occur because we build project with g++.
$(top_builddir)/src/libwayland-tbm-server.la \
-lgtest
-%-protocol.c : $(top_srcdir)/protocol/%.xml
- $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) code < $< > $@
-
-%-server-protocol.h : $(top_srcdir)/protocol/%.xml
- $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) server-header < $< > $@
-
-%-client-protocol.h : $(top_srcdir)/protocol/%.xml
- $(AM_V_GEN)$(MKDIR_P) $(dir $@) && $(wayland_scanner) client-header < $< > $@
+wayland_tbm_utests_SOURCES = \
+ src/ut_main.cpp \
+ src/ut_base.cpp \
+ src/ut_wayland_tbm.cpp
check:
- ./wayland-tbm-utests
\ No newline at end of file
+ ./wayland-tbm-utests