2006-07-26 19:30:26 +01:00
|
|
|
if [ $# -lt 1 ]
|
2006-07-25 19:00:04 +01:00
|
|
|
then
|
2006-07-26 19:30:26 +01:00
|
|
|
print_failure "You must specify the library modules to link against."
|
2006-07-25 19:00:04 +01:00
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2006-07-26 19:30:26 +01:00
|
|
|
TEST_LIBS=$@
|
|
|
|
for lib in ${TEST_LIBS}
|
|
|
|
do
|
|
|
|
cname="$(get_cname ${lib})"
|
2007-09-11 14:33:55 +01:00
|
|
|
LINK_LIBS="\${${cname}} \${${cname}_DEP_CFLAGS} \${${cname}_DEP_LIBS} ${LINK_LIBS}"
|
2006-07-26 19:30:26 +01:00
|
|
|
if [ ! -e ../${lib}/build.lib ]
|
|
|
|
then
|
|
|
|
print_failure "src/${lib} is not a library"
|
|
|
|
exit 1
|
|
|
|
fi
|
2006-07-25 19:00:04 +01:00
|
|
|
|
2006-07-26 19:30:26 +01:00
|
|
|
# HACK -- we need to extract the library's header name
|
|
|
|
do_cmd export ${cname}_MONOLITHIC="1"
|
|
|
|
do_cmd source ../${lib}/build.monolithic || exit 1
|
2006-07-27 18:34:42 +01:00
|
|
|
TEST_HEADERS="#include \"$(basename ${HDR})\"\n${TEST_HEADERS}"
|
2006-07-26 19:30:26 +01:00
|
|
|
done
|
2006-07-25 19:00:04 +01:00
|
|
|
|
2006-07-26 19:30:26 +01:00
|
|
|
do_parameter_subst TEST_LIBS LINK_LIBS TEST_HEADERS
|
2006-12-08 15:51:18 +00:00
|
|
|
add_config_option "CXX" "${COPT_CXX_DEFAULT}"
|
|
|
|
add_config_option "CFLAGS" "${COPT_CFLAGS_DEFAULT}"
|
2006-07-26 19:30:26 +01:00
|
|
|
true
|
2006-07-25 19:00:04 +01:00
|
|
|
|
2007-08-08 13:03:18 +01:00
|
|
|
# vim: syntax=sh:expandtab:ts=4:sw=4
|