Include *.h files in C++ monolithic builds

This commit is contained in:
Laurence Withers 2015-02-05 13:05:54 +00:00
parent f7b12a8cfb
commit 08e65801fb
2 changed files with 4 additions and 2 deletions

View File

@ -8,7 +8,8 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ]
then
PREMOC="${SRC}.premoc.cpp"
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cc' | sort)"
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.h' | sort) \
$(find src/@NAME@/ -name '*.cc' | sort)"
make_monolithic ${PREMOC} C || return 1
if [ "${PREMOC}" -nt "${SRC}" ]

View File

@ -7,7 +7,8 @@ MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ]
then
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cc' | sort)"
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.h' | sort) \
$(find src/@NAME@/ -name '*.cc' | sort)"
make_monolithic ${SRC} C || return 1
@CNAME@_MONOLITHIC=1