blob: af70c630764ff5425bf13d99f20c68f607bd2c84 [file] [log] [blame]
Brad Bishop14275cf2016-11-10 16:24:48 -05001if WANT_LIBSDBUSPLUS
2
Patrick Williamsa14167b2017-04-28 15:54:39 -05003AM_CPPFLAGS = -I$(top_srcdir) $(GTEST_CPPFLAGS)
Patrick Williams608b5bc2017-04-28 16:00:19 -05004gtest_ldflags = -lgtest -lgtest_main
Patrick Williams83a9d0b2016-11-04 17:06:13 -05005check_PROGRAMS =
6
7TESTS = $(check_PROGRAMS)
8
Patrick Williamsb4041d42017-04-27 21:49:00 -05009check_PROGRAMS += bus_list_names
10bus_list_names_SOURCES = bus/list_names.cpp
11bus_list_names_LDFLAGS = $(gtest_ldflags) $(SYSTEMD_LIBS)
12
Patrick Williams83a9d0b2016-11-04 17:06:13 -050013check_PROGRAMS += message_append
14message_append_CXXFLAGS = $(SYSTEMD_CFLAGS) $(PTHREAD_CFLAGS)
15message_append_LDFLAGS = $(SYSTEMD_LIBS) $(PTHREAD_LIBS)
16message_append_SOURCES = message/append.cpp
17
18check_PROGRAMS += message_read
19message_read_CXXFLAGS = $(SYSTEMD_CFLAGS) $(PTHREAD_CFLAGS)
20message_read_LDFLAGS = $(SYSTEMD_LIBS) $(PTHREAD_LIBS)
21message_read_SOURCES = message/read.cpp
22
Patrick Williams9db28642017-01-06 15:55:05 -060023check_PROGRAMS += message_native_types
24message_native_types_SOURCES = message/native_types.cpp
25
Patrick Williams83a9d0b2016-11-04 17:06:13 -050026check_PROGRAMS += message_types
27message_types_SOURCES = message/types.cpp
Patrick Williams450d0ec2017-04-28 16:09:09 -050028message_types_LDFLAGS = $(gtest_ldflags)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050029
30check_PROGRAMS += utility_tuple_to_array
31utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp
Patrick Williams608b5bc2017-04-28 16:00:19 -050032utility_tuple_to_array_LDFLAGS = $(gtest_ldflags)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050033
34check_PROGRAMS += utility_type_traits
35utility_type_traits_SOURCES = utility/type_traits.cpp
36
37check_PROGRAMS += vtable_vtable
38vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c
Patrick Williams608b5bc2017-04-28 16:00:19 -050039vtable_vtable_LDFLAGS = $(gtest_ldflags)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050040
Brad Bishop14275cf2016-11-10 16:24:48 -050041endif