Brad Bishop | 14275cf | 2016-11-10 16:24:48 -0500 | [diff] [blame] | 1 | if WANT_LIBSDBUSPLUS |
| 2 | |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 3 | AM_CPPFLAGS = -I$(top_builddir) -I$(top_srcdir) \ |
| 4 | $(GTEST_CFLAGS) $(SYSTEMD_CFLAGS) |
| 5 | test_ldadd = $(top_builddir)/libsdbusplus.la $(SYSTEMD_LIBS) \ |
| 6 | $(OESDK_TESTCASE_FLAGS) |
| 7 | gtest_ldadd = $(test_ldadd) $(GTEST_LIBS) -lgtest_main |
| 8 | legacy_test_cxxflags = $(PTHREAD_CFLAGS) |
| 9 | legacy_test_ldadd = $(test_ldadd) $(PTHREAD_LIBS) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 10 | |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 11 | check_PROGRAMS = |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 12 | TESTS = $(check_PROGRAMS) |
| 13 | |
Patrick Williams | b4041d4 | 2017-04-27 21:49:00 -0500 | [diff] [blame] | 14 | check_PROGRAMS += bus_list_names |
| 15 | bus_list_names_SOURCES = bus/list_names.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 16 | bus_list_names_LDADD = $(gtest_ldadd) |
Patrick Williams | b4041d4 | 2017-04-27 21:49:00 -0500 | [diff] [blame] | 17 | |
Patrick Williams | faa89f2 | 2017-04-29 15:50:13 -0500 | [diff] [blame] | 18 | check_PROGRAMS += bus_match |
| 19 | bus_match_SOURCES = bus/match.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 20 | bus_match_LDADD = $(gtest_ldadd) |
Patrick Williams | faa89f2 | 2017-04-29 15:50:13 -0500 | [diff] [blame] | 21 | |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 22 | check_PROGRAMS += message_append |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 23 | message_append_SOURCES = message/append.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 24 | message_append_CXXFLAGS = $(legacy_test_cxxflags) |
| 25 | message_append_LDADD = $(legacy_test_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 26 | |
| 27 | check_PROGRAMS += message_read |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 28 | message_read_SOURCES = message/read.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 29 | message_read_CXXFLAGS = $(legacy_test_cxxflags) |
| 30 | message_read_LDADD = $(legacy_test_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 31 | |
Patrick Williams | 9db2864 | 2017-01-06 15:55:05 -0600 | [diff] [blame] | 32 | check_PROGRAMS += message_native_types |
| 33 | message_native_types_SOURCES = message/native_types.cpp |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 34 | message_native_types_LDADD = $(gtest_ldadd) |
Patrick Williams | 9db2864 | 2017-01-06 15:55:05 -0600 | [diff] [blame] | 35 | |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 36 | check_PROGRAMS += message_types |
| 37 | message_types_SOURCES = message/types.cpp |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 38 | message_types_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 39 | |
| 40 | check_PROGRAMS += utility_tuple_to_array |
| 41 | utility_tuple_to_array_SOURCES = utility/tuple_to_array.cpp |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 42 | utility_tuple_to_array_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 43 | |
| 44 | check_PROGRAMS += utility_type_traits |
| 45 | utility_type_traits_SOURCES = utility/type_traits.cpp |
William A. Kennington III | 809e373 | 2018-06-19 18:41:07 -0700 | [diff] [blame] | 46 | utility_type_traits_CXXFLAGS = $(legacy_test_cxxflags) |
| 47 | utility_type_traits_LDADD = $(legacy_test_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 48 | |
| 49 | check_PROGRAMS += vtable_vtable |
| 50 | vtable_vtable_SOURCES = vtable/vtable.cpp vtable/vtable_c.c |
Patrick Williams | 43b283a | 2017-05-01 14:15:54 -0500 | [diff] [blame] | 51 | vtable_vtable_LDADD = $(gtest_ldadd) |
Patrick Williams | 83a9d0b | 2016-11-04 17:06:13 -0500 | [diff] [blame] | 52 | |
Brad Bishop | 14275cf | 2016-11-10 16:24:48 -0500 | [diff] [blame] | 53 | endif |