1
0
forked from mirrors/0ad

Generate sources in workspace

Modify our cxxtest module so that it generates sources in the
configured build directory instead of the source tree. This simplifies
cleaning build output and .gitignore.

Make test_root.cpp a build target so it doesn't have to be generated on
each run. This means no more building and linking into test target
unless needed either. Unfortunately there is no source for test_root.cpp
and an update to cxxtest might require a manual make clean.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
This commit is contained in:
Ralph Sennhauser
2024-11-03 17:21:41 +01:00
parent 4e98704b71
commit 8d993b9250
4 changed files with 24 additions and 19 deletions
+2 -2
View File
@@ -3,8 +3,8 @@
# This script remains for backwards compatibility, but consists of a single
# git command.
cd "$(dirname "$0")/../../" || exit 1
git clean -fx build source
cd "$(dirname "$0")" || exit 1
git clean -fx .
echo "WARNING: This script has been split with libraries/clean-source-libs.sh"
echo "If you want to fix a problem with bundled libs, it's the other script"