Commit 00171038 authored by kh1's avatar kh1
Browse files

Fix MADDE and pkg-config with QtCreator.

We missed some environment vars that had to be set to make the script
work. NOTE: still does not work on windows, since madbin\pkg-config.cmd
needs to be too.

Reviewed-by: kh
parent e2d338ee
...@@ -60,9 +60,14 @@ void MaemoToolChain::addToEnvironment(ProjectExplorer::Environment &env) ...@@ -60,9 +60,14 @@ void MaemoToolChain::addToEnvironment(ProjectExplorer::Environment &env)
.arg(maddeRoot()))); .arg(maddeRoot())));
env.prependOrSetPath(QDir::toNativeSeparators(QString("%1/bin") env.prependOrSetPath(QDir::toNativeSeparators(QString("%1/bin")
.arg(targetRoot()))); .arg(targetRoot())));
#ifdef Q_OS_WIN #if defined(Q_OS_WIN) || defined(Q_OS_MAC)
env.prependOrSet(QLatin1String("SYSROOT_DIR"), sysrootRoot());
env.prependOrSetPath(QDir::toNativeSeparators(QString("%1/madbin") env.prependOrSetPath(QDir::toNativeSeparators(QString("%1/madbin")
.arg(maddeRoot()))); .arg(maddeRoot())));
env.prependOrSetPath(QDir::toNativeSeparators(QString("%1/madlib")
.arg(maddeRoot())));
env.prependOrSet(QLatin1String("PERL5LIB"),
QDir::toNativeSeparators(QString("%1/madlib/perl5").arg(maddeRoot())));
#endif #endif
} }
......
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