From d53f5db95366b550c23ef3684ef24d09d2d66fea Mon Sep 17 00:00:00 2001 From: Konstantin Ritt Date: Sat, 30 Jun 2012 09:05:13 +0300 Subject: qmake: improve the .pc files generator Don't hardcode the "qt_config" EXTRA variable and use QMAKE_PKGCONFIG_VARIABLES instead. This allows qmake create the .pc files that are unrelated to Qt. Change-Id: Ic72005e8819a15f6c50f3aaf79424a247fba20af Reviewed-by: Oswald Buddenhagen --- mkspecs/features/qt_module_config.prf | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'mkspecs') diff --git a/mkspecs/features/qt_module_config.prf b/mkspecs/features/qt_module_config.prf index 2046fc5eda..57d8b5d677 100644 --- a/mkspecs/features/qt_module_config.prf +++ b/mkspecs/features/qt_module_config.prf @@ -227,6 +227,11 @@ DEFINES *= QT_DEPRECATED_WARNINGS TARGET = $$qtLibraryTarget($$TARGET$$QT_LIBINFIX) #do this towards the end +# Provides useful info normally only contained in the internal .qmake.cache file +qt_conf.name = qt_config +qt_conf.variable = CONFIG +QMAKE_PKGCONFIG_VARIABLES += qt_conf + load(qt_targets) win32:DEFINES+=_USE_MATH_DEFINES -- cgit v1.2.3