blob: fe66203e57da3011e5bad7c218c44cb7edebe7c3 [file] [log] [blame]
include $(top_srcdir)/vars.mk
AM_CPPFLAGS = -iquote$(top_srcdir)/src
gtest_cflags = $(PTHREAD_CFLAGS)
gtest_ldadd = -lgtest -lgtest_main -lgmock $(PTHREAD_LIBS)
TEMPLATESEARCH+=${srcdir}/templates
check_PROGRAMS =
noinst_PROGRAMS =
BUILT_SOURCES =
CLEANFILES =
TESTS = $(check_PROGRAMS)
check_PROGRAMS += pathgentest
pathgentest_SOURCES = \
pathgentest.cpp
pathgentest_CXXFLAGS = \
$(gtest_cflags)
pathgentest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
pathgentest_LDADD = \
${gtest_ldadd}
BUILT_SOURCES += pathgentest.hpp
CLEANFILES += pathgentest.hpp
PATH_TEST_GEN_DEPS = \
templates/pathgentest.mako.hpp \
yaml/pathgentest
pathgentest.hpp: $(PDMGEN) $(PATH_TEST_GEN_DEPS)
$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
-t pathgentest.mako.hpp \
-p "${TEMPLATESEARCH}" \
-d yaml/pathgentest \
-o $(builddir)/$@ \
generate-cpp
check_PROGRAMS += propertygentest
propertygentest_SOURCES = \
propertygentest.cpp
propertygentest_CXXFLAGS = \
$(gtest_cflags)
propertygentest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
propertygentest_LDADD = \
${gtest_ldadd}
BUILT_SOURCES += propertygentest.hpp
CLEANFILES += propertygentest.hpp
PROPERTY_TEST_GEN_DEPS = \
templates/propertygentest.mako.hpp \
yaml/propertygentest
propertygentest.hpp: $(PROPERTY_TEST_GEN_DEPS)
$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
-t propertygentest.mako.hpp \
-p "${TEMPLATESEARCH}" \
-d yaml/propertygentest \
-o $(builddir)/$@ \
generate-cpp
check_PROGRAMS += propertywatchgentest
propertywatchgentest_SOURCES = \
propertywatchgentest.cpp
propertywatchgentest_CXXFLAGS = \
$(gtest_cflags)
propertywatchgentest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
propertywatchgentest_LDADD = \
${gtest_ldadd}
BUILT_SOURCES += propertywatchgentest.hpp
CLEANFILES += propertywatchgentest.hpp
PROPERTY_WATCH_TEST_GEN_DEPS = \
templates/propertywatchgentest.mako.hpp \
yaml/propertywatchgentest
propertywatchgentest.hpp: $(PROPERTY_WATCH_TEST_GEN_DEPS)
$(AM_V_GEN) $(PYTHON) $(PDMGEN) \
-t propertywatchgentest.mako.hpp \
-p "${TEMPLATESEARCH}" \
-d yaml/propertywatchgentest \
-o $(builddir)/$@ \
generate-cpp
# propertywatchtest is intentionally omitted from
# check_PROGRAMS until a bug that manifests with
# with GCC7 can be resolved.
noinst_PROGRAMS += propertywatchtest
propertywatchtest_SOURCES = \
propertywatchtest.cpp
propertywatchtest_CXXFLAGS = \
$(gtest_cflags) \
${SDBUSPLUS_CFLAGS}
propertywatchtest_LDFLAGS = \
$(OESDK_TESTCASE_FLAGS)
propertywatchtest_LDADD = \
${gtest_ldadd} \
${SDBUSPLUS_LIBS} \
$(builddir)/../propertywatch.o