Commit 33ef722b authored by dt's avatar dt
Browse files

HACK: ensure a cleaner sourcedir for symbian builds

The symbian makefile generator don't support shadow builds. Thus they
always pollute the source directory with build artefacts. Mixing
in-source and shadow builds is obviously broken.

We do as good as we can, setting OBJECTS_DIR, MOC_DIR, UI_DIR, RCC_DIR
to .obj, .moc, .ui and .rcc, which keeps the source dir clean of at least
some of the artefacts. This is as good as we can, but not really good.

parent f71f6200
...@@ -109,6 +109,19 @@ QStringList QMakeStep::allArguments() ...@@ -109,6 +109,19 @@ QStringList QMakeStep::allArguments()
if (type == ToolChain::GCC_MAEMO) if (type == ToolChain::GCC_MAEMO)
arguments << QLatin1String("-unix"); arguments << QLatin1String("-unix");
#endif #endif
if (bc->target()->id() == Constants::S60_DEVICE_TARGET_ID
|| bc->target()->id() == Constants::S60_EMULATOR_TARGET_ID) {
// We have a target which does not allow shadow building.
// But we really don't want to have the build artefacts in the source dir
// so we try to hack around it, to make the common cases work.
// This is a HACK, remove once the symbian make generator supports
// shadow building
arguments << QLatin1String("-after")
<< QLatin1String("OBJECTS_DIR=.obj")
<< QLatin1String("MOC_DIR=.moc")
<< QLatin1String("UI_DIR=.ui")
<< QLatin1String("RCC_DIR=.rcc");
// Find out what flags we pass on to qmake // Find out what flags we pass on to qmake
QStringList addedUserConfigArguments; QStringList addedUserConfigArguments;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment