38e317e75d
git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@3556 8092fc87-c524-0410-9efc-e669fe64eaf9
27 lines
633 B
Bash
27 lines
633 B
Bash
#!/bin/sh
|
|
|
|
# Find all the .c, .cpp, .m, and .rc files which are relevant for the project,
|
|
# and map them to the work directory.
|
|
|
|
# Expected to be passed from the environment:
|
|
# BUILD_PROJECT - the name of the project
|
|
# BUILD_ROOT - The root of the source files.
|
|
# BUILD_WORK - The root of the work directory.
|
|
|
|
BUILD_ROOT=${BUILD_ROOT%/}/
|
|
BUILD_WORK=${BUILD_WORK%/}/
|
|
eval OBJDIR=\"${BUILD_WORK}\${${BUILD_PROJECT}_OBJS}\"
|
|
|
|
. "${BUILD_ROOT}Makeproject"
|
|
. "${BUILD_WORK}build.vars"
|
|
|
|
build/unix/recurse "$BUILD_PROJECT" "$BUILD_ROOT" | \
|
|
while read TYPE FILE; do
|
|
case "$TYPE" in
|
|
C|CXX|M|RC)
|
|
echo "$OBJDIR$FILE"
|
|
;;
|
|
esac
|
|
done
|
|
|