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>
This commit is contained in:
parent
cff2b83b10
commit
f550ced3aa
18
configure
vendored
18
configure
vendored
@ -4024,13 +4024,19 @@ if true; then ###[ '!' -f "$outpath/bin/qmake" ];
|
|||||||
if [ $QT_EDITION = "QT_EDITION_OPENSOURCE" ]; then
|
if [ $QT_EDITION = "QT_EDITION_OPENSOURCE" ]; then
|
||||||
echo "EXTRA_CPPFLAGS = -DQMAKE_OPENSOURCE_EDITION" >> "$mkfile"
|
echo "EXTRA_CPPFLAGS = -DQMAKE_OPENSOURCE_EDITION" >> "$mkfile"
|
||||||
fi
|
fi
|
||||||
cat "$in_mkfile" >> "$mkfile"
|
|
||||||
|
|
||||||
if "$WHICH" makedepend >/dev/null 2>&1 && grep 'depend:' "$mkfile" >/dev/null 2>&1; then
|
if [ "$BUILD_ON_MAC" = "yes" ]; then
|
||||||
(cd "$outpath/qmake" && "$MAKE" -f "$mkfile" depend) >/dev/null 2>&1
|
echo "EXTRA_CXXFLAGS += -MMD" >> "$mkfile"
|
||||||
sed 's,^.*/\([^/]*.o\):,\1:,g' "$mkfile" >"$mkfile.tmp"
|
cat "$in_mkfile" >> "$mkfile"
|
||||||
sed "s,$outpath,$adjoutpath,g" "$mkfile.tmp" >"$mkfile"
|
echo "-include \$(notdir \$(DEPEND_SRC:%.cpp=%.d))" >> "$mkfile"
|
||||||
rm "$mkfile.tmp"
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user