lw-build-system/scripts/build.app.c++-qt/build.monolithic

27 lines
769 B
Plaintext
Raw Normal View History

2006-08-15 09:33:28 +01:00
# These are external variables, and shouldn't clash with anything else
# @CNAME@_MONOLITHIC
#
SRC="obj/@NAME@.cpp"
MONOLITHIC_TESTS="src/@NAME@/build.app src/@NAME@/build.monolithic"
if [ -z "${@CNAME@_MONOLITHIC}" ]
then
PREMOC="${SRC}.premoc.cpp"
2015-02-04 21:03:29 +00:00
MONOLITHIC_SOURCE="$(find src/@NAME@/ -name '*.cc' | sort)"
2006-08-15 09:33:28 +01:00
make_monolithic ${PREMOC} C || return 1
if [ "${PREMOC}" -nt "${SRC}" ]
then
[ -z "${MOC}" ] && MOC="$QTDIR/bin/moc"
do_cmd cp "${PREMOC}" "${SRC}" || return 1
do_cmd_redir ${SRC} echo "#line 1 \"__generated_by_qt_moc__.cpp\"" || return 1
do_cmd_redir ${SRC} ${MOC} <${PREMOC} || return 1
fi
@CNAME@_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${SRC}"
fi
2007-08-08 13:03:18 +01:00
# vim: syntax=sh:@VIM_MODELINE@