2019-02-23 16:45:08 -05:00
|
|
|
# This script is run from the output dir.
|
|
|
|
|
# The source dir is at $S.
|
2019-02-03 01:14:51 -05:00
|
|
|
. ./redoconf.rc
|
|
|
|
|
rc_include all.rc
|
2019-02-23 16:45:08 -05:00
|
|
|
redo-ifchange "$S/sources"
|
2019-02-03 01:14:51 -05:00
|
|
|
|
|
|
|
|
(
|
|
|
|
|
cd "$S"
|
|
|
|
|
echo "main.c"
|
|
|
|
|
echo "monotime.c"
|
|
|
|
|
echo "when.c" # auto-generated source
|
|
|
|
|
echo "flagtest.c" # source with different compiler flags
|
|
|
|
|
|
|
|
|
|
if [ -n "$CXX" ]; then
|
|
|
|
|
echo "slow.cc"
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
# This is unnecessarily fancy.
|
|
|
|
|
# We're just using it as an example of
|
|
|
|
|
# how to dynamically generate a .list
|
|
|
|
|
# file.
|
|
|
|
|
for d in lib*/*.list lib*/*.list.od; do
|
|
|
|
|
[ -e "$d" ] && echo "${d%%.*}.so"
|
|
|
|
|
done | uniq
|
|
|
|
|
|
|
|
|
|
printf '%s\n' "$LIBGTK2" "$LIBQT4"
|
|
|
|
|
) >$3
|
|
|
|
|
|
|
|
|
|
redo-stamp <$3
|