summaryrefslogtreecommitdiffstats
path: root/make/xcodemake
diff options
context:
space:
mode:
authorkonablend <[email protected]>2009-03-09 03:05:53 +0000
committerkonablend <[email protected]>2009-03-09 03:05:53 +0000
commitafbc7342acb118971fbec64de7bd3c66f515c524 (patch)
tree8c5d4e26b955dc252b5c7ee20d934e58d62d4697 /make/xcodemake
parentaeac4294d9d2b5f6f445dcc9ef925fd7906d9ca7 (diff)
BuildSystem: fixed configure --debug + Xcode
- only effects users building w/ Xcode from terminal or Xcode.app who need debug libhb. Bug details: - shunting through Xcode causes a re-configure to give GNUmakefile the 'Xcode' environment. - re-configure simply clobbered CONF.args thus losing effect of initial --debug option. - solution is to pass CONF.args to re-configure. git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@2244 b64f7644-9d1e-0410-96f1-a4d463321fa5
Diffstat (limited to 'make/xcodemake')
-rwxr-xr-xmake/xcodemake25
1 files changed, 17 insertions, 8 deletions
diff --git a/make/xcodemake b/make/xcodemake
index fde684cdf..2c6c1a80b 100755
--- a/make/xcodemake
+++ b/make/xcodemake
@@ -17,24 +17,34 @@ if [ $EXTERNAL_METHOD != 'xcode' -o ! -f $EXTERNAL_BUILD/GNUmakefile ]; then
## compute --arch value based on Xcode configuration naming convention
case "$CONFIGURATION" in
*.i386)
- args="--arch=i386"
+ arch="--arch=i386"
;;
*.x86_64)
- args="--arch=x86_64"
+ arch="--arch=x86_64"
;;
*.ppc)
- args="--arch=ppc"
+ arch="--arch=ppc"
;;
*.ppc64)
- args="--arch=ppc64"
+ arch="--arch=ppc64"
;;
*)
- args=
+ arch=
+ ;;
+ esac
+
+ case "$CONFIGURATION" in
+ debug*)
+ debug="--debug=max"
+ ;;
+ *)
+ debug=
;;
esac
## invoke configure with (hidden) option which indicates conf performed by xcode
- $EXTERNAL_SRC/configure --force --build=$EXTERNAL_BUILD --conf-method=xcode PATH=$PATH $args
+ $EXTERNAL_SRC/configure --force --build=$EXTERNAL_BUILD $arch $debug \
+ --conf-method=xcode PATH=$PATH $EXTERNAL_CONFARGS
fi
## safeguard against passing blank value which would result in unlimited jobs
@@ -64,7 +74,6 @@ case "$spec" in
else
goals="$EXTERNAL_GOALS"
fi
- vars="$EXTERNAL_VARS"
;;
libhb:clean)
goals=libhb.clean
@@ -80,4 +89,4 @@ esac
## handoff
set -x
-make -C $EXTERNAL_BUILD BUILD.method=xcode $jobs $goals $vars
+make -C $EXTERNAL_BUILD BUILD.method=xcode $jobs $goals $EXTERNAL_VARS