lw-build-system/skel/scripts/build.c++.lib/build.monolithic

19 lines
538 B
Plaintext

# These are external variables, and shouldn't clash with anything else
# LIBCPP_MONOLITHIC
if [ -z "${LIBCPP_MONOLITHIC}" ]
then
SRC="obj/lib.cpp"
HDR="obj/@HEADER_NAME@"
MONOLITHIC_TESTS="src/cpplib/build.lib src/cpplib/build.monolithic"
MONOLITHIC_SOURCE="$(echo src/cpplib/{TopHeader,BottomHeader}.h)"
make_monolithic ${HDR} C || return 1
MONOLITHIC_SOURCE="$(echo src/cpplib/TopSource.cpp)"
make_monolithic ${SRC} C || return 1
LIBCPP_MONOLITHIC=1
MONOLITHIC_DOC="${MONOLITHIC_DOC} ${HDR}"
fi