summaryrefslogtreecommitdiffstats
path: root/configure
diff options
context:
space:
mode:
authorTor Arne Vestbø <tor.arne.vestbo@digia.com>2014-01-22 12:36:35 +0100
committerThe Qt Project <gerrit-noreply@qt-project.org>2014-01-25 03:04:24 +0100
commitf550ced3aa8d53edcbf2ae21cd2834e3bf15e042 (patch)
tree5e37652556ee89f55ffc3df715d98338e311176f /configure
parentcff2b83b108c389bd9cdde0d2cfa2401bdc5ffe8 (diff)
Don't rely on makedepend on OS X
It's not shipped as part of the default installation, but the binary in /usr/X11R6/bin/makedepend exists and will trigger a dialog that asks you to install X11. This is not needed when we can use the compiler to resolve the dependencies for us. Change-Id: I67e35a63d0f7101b7673127228df4dcefd3c1fdc Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com> Reviewed-by: Simon Hausmann <simon.hausmann@digia.com>
Diffstat (limited to 'configure')
-rwxr-xr-xconfigure18
1 files changed, 12 insertions, 6 deletions
diff --git a/configure b/configure
index 40126cbc36..f3e09fcc3d 100755
--- a/configure
+++ b/configure
@@ -4024,13 +4024,19 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
if [ $QT_EDITION = "QT_EDITION_OPENSOURCE" ]; then
echo "EXTRA_CPPFLAGS = -DQMAKE_OPENSOURCE_EDITION" >> "$mkfile"
fi
- cat "$in_mkfile" >> "$mkfile"
- if "$WHICH" makedepend >/dev/null 2>&1 && grep 'depend:' "$mkfile" >/dev/null 2>&1; then
- (cd "$outpath/qmake" && "$MAKE" -f "$mkfile" depend) >/dev/null 2>&1
- sed 's,^.*/\([^/]*.o\):,\1:,g' "$mkfile" >"$mkfile.tmp"
- sed "s,$outpath,$adjoutpath,g" "$mkfile.tmp" >"$mkfile"
- rm "$mkfile.tmp"
+ if [ "$BUILD_ON_MAC" = "yes" ]; then
+ echo "EXTRA_CXXFLAGS += -MMD" >> "$mkfile"
+ cat "$in_mkfile" >> "$mkfile"
+ echo "-include \$(notdir \$(DEPEND_SRC:%.cpp=%.d))" >> "$mkfile"
+ else
+ cat "$in_mkfile" >> "$mkfile"
+ if "$WHICH" makedepend >/dev/null 2>&1 && grep 'depend:' "$mkfile" >/dev/null 2>&1; then
+ (cd "$outpath/qmake" && "$MAKE" -f "$mkfile" depend) >/dev/null 2>&1
+ sed 's,^.*/\([^/]*.o\):,\1:,g' "$mkfile" >"$mkfile.tmp"
+ sed "s,$outpath,$adjoutpath,g" "$mkfile.tmp" >"$mkfile"
+ rm "$mkfile.tmp"
+ fi
fi
done