Brad Bishop | 83c4349 | 2017-05-22 22:04:03 -0400 | [diff] [blame] | 1 | include $(top_srcdir)/vars.mk |
| 2 | |
| 3 | AM_CPPFLAGS = -iquote$(top_srcdir)/src |
| 4 | gtest_cflags = $(PTHREAD_CFLAGS) |
| 5 | gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS) |
| 6 | |
| 7 | TEMPLATESEARCH+=${srcdir}/templates |
| 8 | |
| 9 | check_PROGRAMS = |
| 10 | BUILT_SOURCES = |
| 11 | CLEANFILES = |
| 12 | |
| 13 | TESTS = $(check_PROGRAMS) |
Brad Bishop | b604480 | 2017-05-07 23:14:57 -0400 | [diff] [blame] | 14 | |
| 15 | check_PROGRAMS += pathgentest |
| 16 | pathgentest_SOURCES = \ |
| 17 | pathgentest.cpp |
| 18 | pathgentest_CXXFLAGS = \ |
| 19 | $(gtest_cflags) |
| 20 | pathgentest_LDFLAGS = \ |
| 21 | $(OESDK_TESTCASE_FLAGS) |
| 22 | pathgentest_LDADD = \ |
| 23 | ${gtest_ldadd} |
| 24 | |
| 25 | BUILT_SOURCES += pathgentest.hpp |
| 26 | CLEANFILES += pathgentest.hpp |
| 27 | |
| 28 | PATH_TEST_GEN_DEPS = \ |
| 29 | templates/pathgentest.mako.hpp \ |
| 30 | yaml/pathgentest |
| 31 | |
| 32 | pathgentest.hpp: $(PDMGEN) $(PATH_TEST_GEN_DEPS) |
| 33 | $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ |
| 34 | -t pathgentest.mako.hpp \ |
| 35 | -p "${TEMPLATESEARCH}" \ |
| 36 | -d yaml/pathgentest \ |
| 37 | -o $(builddir)/$@ \ |
| 38 | generate-cpp |
Brad Bishop | c9e173f | 2017-05-09 00:23:11 -0400 | [diff] [blame^] | 39 | |
| 40 | check_PROGRAMS += propertygentest |
| 41 | propertygentest_SOURCES = \ |
| 42 | propertygentest.cpp |
| 43 | propertygentest_CXXFLAGS = \ |
| 44 | $(gtest_cflags) |
| 45 | propertygentest_LDFLAGS = \ |
| 46 | $(OESDK_TESTCASE_FLAGS) |
| 47 | propertygentest_LDADD = \ |
| 48 | ${gtest_ldadd} |
| 49 | |
| 50 | BUILT_SOURCES += propertygentest.hpp |
| 51 | CLEANFILES += propertygentest.hpp |
| 52 | |
| 53 | PROPERTY_TEST_GEN_DEPS = \ |
| 54 | templates/propertygentest.mako.hpp \ |
| 55 | yaml/propertygentest |
| 56 | |
| 57 | propertygentest.hpp: $(PROPERTY_TEST_GEN_DEPS) |
| 58 | $(AM_V_GEN) $(PYTHON) $(PDMGEN) \ |
| 59 | -t propertygentest.mako.hpp \ |
| 60 | -p "${TEMPLATESEARCH}" \ |
| 61 | -d yaml/propertygentest \ |
| 62 | -o $(builddir)/$@ \ |
| 63 | generate-cpp |