blob: 330bf3e8678858237f39c487125ad9f06608a6bc [file] [log] [blame]
Brad Bishop83c43492017-05-22 22:04:03 -04001include $(top_srcdir)/vars.mk
2
3AM_CPPFLAGS = -iquote$(top_srcdir)/src
4gtest_cflags = $(PTHREAD_CFLAGS)
5gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS)
6
7TEMPLATESEARCH+=${srcdir}/templates
8
9check_PROGRAMS =
10BUILT_SOURCES =
11CLEANFILES =
12
13TESTS = $(check_PROGRAMS)
Brad Bishopb6044802017-05-07 23:14:57 -040014
15check_PROGRAMS += pathgentest
16pathgentest_SOURCES = \
17 pathgentest.cpp
18pathgentest_CXXFLAGS = \
19 $(gtest_cflags)
20pathgentest_LDFLAGS = \
21 $(OESDK_TESTCASE_FLAGS)
22pathgentest_LDADD = \
23 ${gtest_ldadd}
24
25BUILT_SOURCES += pathgentest.hpp
26CLEANFILES += pathgentest.hpp
27
28PATH_TEST_GEN_DEPS = \
29 templates/pathgentest.mako.hpp \
30 yaml/pathgentest
31
32pathgentest.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 Bishopc9e173f2017-05-09 00:23:11 -040039
40check_PROGRAMS += propertygentest
41propertygentest_SOURCES = \
42 propertygentest.cpp
43propertygentest_CXXFLAGS = \
44 $(gtest_cflags)
45propertygentest_LDFLAGS = \
46 $(OESDK_TESTCASE_FLAGS)
47propertygentest_LDADD = \
48 ${gtest_ldadd}
49
50BUILT_SOURCES += propertygentest.hpp
51CLEANFILES += propertygentest.hpp
52
53PROPERTY_TEST_GEN_DEPS = \
54 templates/propertygentest.mako.hpp \
55 yaml/propertygentest
56
57propertygentest.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