Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 1 | AM_CPPFLAGS = -I$(top_srcdir)/ \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 2 | -I$(builddir) |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 3 | $(GTEST_CFLAGS) \ |
| 4 | $(GMOCK_CFLAGS) |
| 5 | AM_CXXFLAGS = \ |
| 6 | $(GTEST_MAIN_CFLAGS) |
| 7 | AM_LDFLAGS = \ |
| 8 | $(GMOCK_LIBS) \ |
| 9 | $(GTEST_MAIN_LIBS) \ |
| 10 | $(OESDK_TESTCASE_FLAGS) |
| 11 | |
| 12 | # Run all 'check' test programs |
| 13 | check_PROGRAMS = \ |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 14 | handler_open_unittest \ |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 15 | handler_readwrite_unittest \ |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 16 | handler_unittest |
| 17 | TESTS = $(check_PROGRAMS) |
| 18 | |
| 19 | handler_unittest_SOURCES = handler_unittest.cpp |
| 20 | handler_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 21 | $(top_builddir)/handler.o \ |
| 22 | $(top_builddir)/binarystore.o \ |
| 23 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 24 | -lprotobuf |
Kun Yi | 91beea6 | 2018-11-26 15:23:14 -0800 | [diff] [blame] | 25 | handler_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 26 | |
| 27 | handler_open_unittest_SOURCES = handler_open_unittest.cpp |
| 28 | handler_open_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 29 | $(top_builddir)/handler.o \ |
| 30 | $(top_builddir)/binarystore.o \ |
| 31 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 32 | -lprotobuf |
Kun Yi | 38146a0 | 2018-12-18 21:54:26 -0800 | [diff] [blame] | 33 | handler_open_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 34 | |
| 35 | handler_readwrite_unittest_SOURCES = handler_readwrite_unittest.cpp |
| 36 | handler_readwrite_unittest_LDADD = $(PHOSPHOR_LOGGING_LIBS) \ |
Kun Yi | 0a940b9 | 2019-01-07 16:33:11 -0800 | [diff] [blame] | 37 | $(top_builddir)/handler.o \ |
| 38 | $(top_builddir)/binarystore.o \ |
| 39 | $(top_builddir)/libbinarystore_la-binaryblob.pb.o \ |
| 40 | -lprotobuf |
Kun Yi | c0adbc3 | 2018-12-18 22:35:29 -0800 | [diff] [blame] | 41 | handler_readwrite_unittest_CXXFLAGS = $(PHOSPHOR_LOGGING_CFLAGS) |