blob: 56fefad9365cc8ef781f6e79acfb70977f80e1c4 [file] [log] [blame]
Brad Bishop14275cf2016-11-10 16:24:48 -05001if WANT_LIBSDBUSPLUS
2
William A. Kennington III809e3732018-06-19 18:41:07 -07003AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \
4 $(GTEST_CFLAGS) $(SYSTEMD_CFLAGS)
5test_ldadd = $(top_builddir)/libsdbusplus.la $(SYSTEMD_LIBS) \
6 $(OESDK_TESTCASE_FLAGS)
7gtest_ldadd = $(test_ldadd) $(GTEST_LIBS) -lgtest_main
8legacy_test_cxxflags = $(PTHREAD_CFLAGS)
9legacy_test_ldadd = $(test_ldadd) $(PTHREAD_LIBS)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050010
William A. Kennington III809e3732018-06-19 18:41:07 -070011check_PROGRAMS =
Patrick Williams83a9d0b2016-11-04 17:06:13 -050012TESTS = $(check_PROGRAMS)
13
Patrick Williamsb4041d42017-04-27 21:49:00 -050014check_PROGRAMS += bus_list_names
15bus_list_names_SOURCES = bus/list_names.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070016bus_list_names_LDADD = $(gtest_ldadd)
Patrick Williamsb4041d42017-04-27 21:49:00 -050017
Patrick Williamsfaa89f22017-04-29 15:50:13 -050018check_PROGRAMS += bus_match
19bus_match_SOURCES = bus/match.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070020bus_match_LDADD = $(gtest_ldadd)
Patrick Williamsfaa89f22017-04-29 15:50:13 -050021
Patrick Williams83a9d0b2016-11-04 17:06:13 -050022check_PROGRAMS += message_append
Patrick Williams83a9d0b2016-11-04 17:06:13 -050023message_append_SOURCES = message/append.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070024message_append_CXXFLAGS = $(legacy_test_cxxflags)
25message_append_LDADD = $(legacy_test_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050026
27check_PROGRAMS += message_read
Patrick Williams83a9d0b2016-11-04 17:06:13 -050028message_read_SOURCES = message/read.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070029message_read_CXXFLAGS = $(legacy_test_cxxflags)
30message_read_LDADD = $(legacy_test_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050031
Patrick Williams9db28642017-01-06 15:55:05 -060032check_PROGRAMS += message_native_types
33message_native_types_SOURCES = message/native_types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050034message_native_types_LDADD = $(gtest_ldadd)
Patrick Williams9db28642017-01-06 15:55:05 -060035
Patrick Williams83a9d0b2016-11-04 17:06:13 -050036check_PROGRAMS += message_types
37message_types_SOURCES = message/types.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050038message_types_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050039
40check_PROGRAMS += utility_tuple_to_array
41utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp
Patrick Williams43b283a2017-05-01 14:15:54 -050042utility_tuple_to_array_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050043
44check_PROGRAMS += utility_type_traits
45utility_type_traits_SOURCES = utility/type_traits.cpp
William A. Kennington III809e3732018-06-19 18:41:07 -070046utility_type_traits_CXXFLAGS = $(legacy_test_cxxflags)
47utility_type_traits_LDADD = $(legacy_test_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050048
49check_PROGRAMS += vtable_vtable
50vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c
Patrick Williams43b283a2017-05-01 14:15:54 -050051vtable_vtable_LDADD = $(gtest_ldadd)
Patrick Williams83a9d0b2016-11-04 17:06:13 -050052
Brad Bishop14275cf2016-11-10 16:24:48 -050053endif