Further work in progress on build system -- port over test modules.
This commit is contained in:
parent
2e63a2f2fe
commit
6f0cbc059d
7 changed files with 57 additions and 50 deletions
|
|
@ -2,17 +2,17 @@
|
|||
# @NAME@_BUILT
|
||||
#
|
||||
|
||||
#@TODO@ build_target libs || return 1
|
||||
build_target @TEST_LIBS@ || return 1
|
||||
|
||||
if [ -z ${@NAME@_BUILT} ]
|
||||
if [ -z ${@CNAME@_BUILT} ]
|
||||
then
|
||||
LIBS="" # @TODO@ internal libs
|
||||
LIBS="@LINK_LIBS@"
|
||||
EXTRAS="" # @TODO@ libs, cflags
|
||||
|
||||
echo "Building test programs..."
|
||||
do_cmd mkdir -p obj/tests || return 1
|
||||
|
||||
for SRC in src/@NAME@/*.c
|
||||
for SRC in src/@NAME@/*.cpp
|
||||
do
|
||||
TEST="obj/tests/$(basename ${SRC} | sed -e 's,.c$,,')"
|
||||
MODIFIED=0
|
||||
|
|
@ -36,7 +36,7 @@ then
|
|||
|
||||
print_success "All tests built"
|
||||
|
||||
@NAME@_BUILT=1
|
||||
@CNAME@_BUILT=1
|
||||
fi
|
||||
|
||||
# kate: @KATE_MODELINE@
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue