blob: cb2ffb7f0e7d04e45ce0b01b0892a5969551b3e2 [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 Williams43b283a2017-05-01 14:15:54 -05004gtest_ldadd = -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
Patrick Williams43b283a2017-05-01 14:15:54 -050011bus_list_names_LDADD = $(gtest_ldadd) $(SYSTEMD_LIBS)
Patrick Williamsb4041d42017-04-27 21:49:00 -050012
Patrick Williamsfaa89f22017-04-29 15:50:13 -050013check_PROGRAMS += bus_match
14bus_match_SOURCES = bus/match.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050015bus_match_LDADD = $(gtest_ldadd) $(SYSTEMD_LIBS)
Patrick Williamsfaa89f22017-04-29 15:50:13 -050016
Patrick Williams83a9d0b2016-11-04 17:06:13 -050017check_PROGRAMS += message_append
Patrick Williams83a9d0b2016-11-04 17:06:13 -050018message_append_SOURCES = message/append.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050019message_append_CXXFLAGS = $(SYSTEMD_CFLAGS) $(PTHREAD_CFLAGS)
20message_append_LDADD = $(SYSTEMD_LIBS) $(PTHREAD_LIBS)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050021
22check_PROGRAMS += message_read
Patrick Williams83a9d0b2016-11-04 17:06:13 -050023message_read_SOURCES = message/read.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050024message_read_CXXFLAGS = $(SYSTEMD_CFLAGS) $(PTHREAD_CFLAGS)
25message_read_LDADD = $(SYSTEMD_LIBS) $(PTHREAD_LIBS)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050026
Patrick Williams9db28642017-01-06 15:55:05 -060027check_PROGRAMS += message_native_types
28message_native_types_SOURCES = message/native_types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050029message_native_types_LDADD = $(gtest_ldadd)
Patrick Williams9db28642017-01-06 15:55:05 -060030
Patrick Williams83a9d0b2016-11-04 17:06:13 -050031check_PROGRAMS += message_types
32message_types_SOURCES = message/types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050033message_types_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050034
35check_PROGRAMS += utility_tuple_to_array
36utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050037utility_tuple_to_array_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050038
39check_PROGRAMS += utility_type_traits
40utility_type_traits_SOURCES = utility/type_traits.cpp
41
42check_PROGRAMS += vtable_vtable
43vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c
Patrick Williams43b283a2017-05-01 14:15:54 -050044vtable_vtable_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050045
Brad Bishop14275cf2016-11-10 16:24:48 -050046endif