diff options
author | Yaakov Selkowitz <yselkowitz@users.sourceforge.net> | 2012-07-04 16:23:29 -0400 |
---|---|---|
committer | Michal Marek <mmarek@suse.cz> | 2012-07-13 08:27:13 -0400 |
commit | 48485949b4d44a24c81caf9ab4dc32005f3aa67e (patch) | |
tree | e039f8a0de80b688bf5fc7689795752c95fb34fe /scripts/kconfig/Makefile | |
parent | 3725f3ed1246301059eaa1c978ad7133fe567433 (diff) |
xconfig: use pkgconfig to find moc
Various schemes exist to allow parallel installations of multiple major
versions of Qt (4.x with the previous 3.x and/or the upcoming 5.x).
QtCore.pc includes a moc_location variable which should be a more reliable
way to find moc.
Signed-off-by: Yaakov Selkowitz <yselkowitz@users.sourceforge.net>
Signed-off-by: Michal Marek <mmarek@suse.cz>
Diffstat (limited to 'scripts/kconfig/Makefile')
-rw-r--r-- | scripts/kconfig/Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/kconfig/Makefile b/scripts/kconfig/Makefile index 79662658fb91..5e2176cba4a6 100644 --- a/scripts/kconfig/Makefile +++ b/scripts/kconfig/Makefile | |||
@@ -260,8 +260,8 @@ $(obj)/.tmp_qtcheck: | |||
260 | else \ | 260 | else \ |
261 | cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \ | 261 | cflags="\$$(shell pkg-config QtCore QtGui Qt3Support --cflags)"; \ |
262 | libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \ | 262 | libs="\$$(shell pkg-config QtCore QtGui Qt3Support --libs)"; \ |
263 | binpath="\$$(shell pkg-config QtCore --variable=prefix)"; \ | 263 | moc="\$$(shell pkg-config QtCore --variable=moc_location)"; \ |
264 | moc="$$binpath/bin/moc"; \ | 264 | [ -n "$$moc" ] || moc="\$$(shell pkg-config QtCore --variable=prefix)/bin/moc"; \ |
265 | fi; \ | 265 | fi; \ |
266 | echo "KC_QT_CFLAGS=$$cflags" > $@; \ | 266 | echo "KC_QT_CFLAGS=$$cflags" > $@; \ |
267 | echo "KC_QT_LIBS=$$libs" >> $@; \ | 267 | echo "KC_QT_LIBS=$$libs" >> $@; \ |