6 ## This script is invoked by Xcode external targets.
8 ## We must guarantee no jobserver is passed through since the file-descriptors
9 ## have been clobbered by Xcode. If this is not done then make behaves as if
10 ## it is allowed to run an infinite number of jobs.
15 ## re/configure if not configured by Xcode or if missing top-makefile
16 if [ $EXTERNAL_METHOD != 'xcode' -o ! -f $EXTERNAL_BUILD/GNUmakefile ]; then
17 ## compute --arch value based on Xcode configuration naming convention
18 case "$CONFIGURATION" in
36 ## invoke configure with (hidden) option which indicates conf performed by xcode
37 $EXTERNAL_SRC/configure --force --build=$EXTERNAL_BUILD --conf-method=xcode PATH=$PATH $args
40 ## safeguard against passing blank value which would result in unlimited jobs
41 if [ -z "$EXTERNAL_JOBS" ]; then
44 jobs=--jobs=$EXTERNAL_JOBS
47 spec="$TARGET_NAME:$ACTION"
48 echo "env specification: $spec"
62 if [ -z "$EXTERNAL_GOALS" ]; then
65 goals="$EXTERNAL_GOALS"
76 echo "ERROR: invalid env specification: $spec"
83 make -C $EXTERNAL_BUILD BUILD.method=xcode $jobs $goals $vars