Replace PKGCONFIG+=foo usages with QMAKE_USE

replace explicit pkg-config uses with the results of configure tests,
for consistency.

Change-Id: I3587db6085798ea7a49f8871fc6838eb687a6391
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
This commit is contained in:
Lars Knoll 2016-10-25 15:22:01 +02:00
parent c70d77dc76
commit 04f0a69e96
7 changed files with 4 additions and 16 deletions

View File

@ -61,7 +61,6 @@
"journald": {
"label": "journald",
"test": "unix/journald",
"export": "",
"sources": [
{ "type": "pkgConfig", "args": "libsystemd" },
{ "type": "pkgConfig", "args": "libsystemd-journal" }

View File

@ -53,11 +53,7 @@ slog2 {
}
journald {
CONFIG += link_pkgconfig
packagesExist(libsystemd): \
PKGCONFIG_PRIVATE += libsystemd
else: \
PKGCONFIG_PRIVATE += libsystemd-journal
QMAKE_USE_PRIVATE += journald
DEFINES += QT_USE_JOURNALD
}

View File

@ -165,7 +165,6 @@
},
"mirclient": {
"label": "Mir client libraries",
"export": "",
"test": "qpa/mirclient",
"sources": [
{ "type": "pkgConfig", "args": "egl mirclient ubuntu-platform-api" }
@ -173,7 +172,6 @@
},
"mtdev": {
"label": "mtdev",
"export": "",
"test": "unix/mtdev",
"sources": [
{ "type": "pkgConfig", "args": "mtdev" }
@ -204,7 +202,6 @@
},
"wayland_server": {
"label": "Wayland Server",
"export": "",
"test": "qpa/wayland-server",
"sources": [
{ "type": "pkgConfig", "args": "wayland-server" }

View File

@ -12,6 +12,5 @@ qtConfig(libudev): \
QMAKE_USE_PRIVATE += libudev
qtConfig(mtdev) {
CONFIG += link_pkgconfig
PKGCONFIG_PRIVATE += mtdev
QMAKE_USE_PRIVATE += mtdev
}

View File

@ -1,7 +1,6 @@
TARGET = qconnmanbearer
QT = core network-private dbus
CONFIG += link_pkgconfig
HEADERS += qconnmanservice_linux_p.h \
../linux_common/qofonoservice_linux_p.h \

View File

@ -14,8 +14,7 @@ HEADERS += $$PWD/qeglfsvivwlintegration.h
OTHER_FILES += $$PWD/eglfs_viv_wl.json
CONFIG += link_pkgconfig
PKGCONFIG_PRIVATE += wayland-server
QMAKE_USE_PRIVATE += wayland_server
PLUGIN_TYPE = egldeviceintegrations
PLUGIN_CLASS_NAME = QEglFSVivWaylandIntegrationPlugin

View File

@ -10,8 +10,7 @@ DEFINES += MESA_EGL_NO_X11_HEADERS
QMAKE_CXXFLAGS += -fvisibility=hidden -fvisibility-inlines-hidden -std=c++11 -Werror -Wall
QMAKE_LFLAGS += -std=c++11 -Wl,-no-undefined
CONFIG += link_pkgconfig
PKGCONFIG += egl mirclient ubuntu-platform-api
QMAKE_USE_PRIVATE += mirclient
SOURCES = \
qmirclientbackingstore.cpp \