switch to new-style configure tests

Change-Id: Ib56d0cb24065c1f990aee5d7f41bfedfe75332a1
Reviewed-by: Joerg Bornemann <joerg.bornemann@nokia.com>
This commit is contained in:
Oswald Buddenhagen
2012-04-05 14:29:09 +02:00
committed by Qt by Nokia
parent c495dfe142
commit 82ade38b11
22 changed files with 37 additions and 61 deletions

View File

@@ -24,7 +24,7 @@ PKGCONFIG += \
maemo*:PKGCONFIG +=gstreamer-plugins-bad-0.10
contains(config_test_resourcepolicy, yes) {
config_resourcepolicy {
DEFINES += HAVE_RESOURCE_POLICY
PKGCONFIG += libresourceqt1
}
@@ -66,7 +66,7 @@ SOURCES += \
qgstreamervideoprobecontrol.cpp \
qgstreameraudioprobecontrol.cpp \
contains(config_test_xvideo, yes) {
config_xvideo {
DEFINES += HAVE_XVIDEO
LIBS += -lXv -lX11 -lXext
@@ -105,7 +105,7 @@ maemo6 {
}
}
contains(config_test_gstreamer_appsrc, yes) {
config_gstreamer_appsrc {
PKGCONFIG += gstreamer-app-0.10
PRIVATE_HEADERS += qgstappsrc_p.h
SOURCES += qgstappsrc.cpp

View File

@@ -1,5 +1,5 @@
TEMPLATE = subdirs
SUBDIRS += multimedia
contains(config_test_openal, yes): SUBDIRS += audioengine
config_openal: SUBDIRS += audioengine

View File

@@ -60,7 +60,7 @@ win32 {
}
unix:!mac {
contains(config_test_pulseaudio, yes) {
config_pulseaudio {
DEFINES += QT_NO_AUDIO_BACKEND
CONFIG += link_pkgconfig
PKGCONFIG += libpulse
@@ -74,7 +74,7 @@ unix:!mac {
PRIVATE_HEADERS += audio/qsoundeffect_qmedia_p.h
SOURCES += audio/qsoundeffect_qmedia_p.cpp
contains(config_test_alsa, yes):linux-*|freebsd-*|openbsd-* {
config_alsa:linux-*|freebsd-*|openbsd-* {
DEFINES += HAS_ALSA
PRIVATE_HEADERS += audio/qaudiooutput_alsa_p.h audio/qaudioinput_alsa_p.h audio/qaudiodeviceinfo_alsa_p.h
SOURCES += audio/qaudiodeviceinfo_alsa_p.cpp \

View File

@@ -12,14 +12,14 @@ DEPENDPATH += .
HEADERS += dsserviceplugin.h
SOURCES += dsserviceplugin.cpp
!contains(config_test_wmsdk, yes): DEFINES += QT_NO_WMSDK
!config_wmsdk: DEFINES += QT_NO_WMSDK
!isEmpty(QT.widgets.name) {
QT += multimediawidgets
DEFINES += HAVE_WIDGETS
}
contains(config_test_wmf, no): include(player/player.pri)
!config_wmf: include(player/player.pri)
include(camera/camera.pri)
target.path += $$[QT_INSTALL_PLUGINS]/$${PLUGIN_TYPE}

View File

@@ -21,17 +21,17 @@ PKGCONFIG += \
maemo*:PKGCONFIG +=gstreamer-plugins-bad-0.10
contains(config_test_resourcepolicy, yes) {
config_resourcepolicy {
DEFINES += HAVE_RESOURCE_POLICY
PKGCONFIG += libresourceqt1
}
contains(config_test_xvideo, yes):!isEmpty(QT.widgets.name): {
config_xvideo:!isEmpty(QT.widgets.name): {
DEFINES += HAVE_XVIDEO
LIBS += -lXv -lX11 -lXext
}
contains(config_test_gstreamer_appsrc, yes) {
config_gstreamer_appsrc {
PKGCONFIG += gstreamer-app-0.10
DEFINES += HAVE_GST_APPSRC
LIBS += -lgstapp-0.10

View File

@@ -7,7 +7,7 @@ SUBDIRS += \
# Camerabin2 based camera backend is untested and currently disabled
disabled {
contains(config_test_gstreamer_photography, yes) {
config_gstreamer_photography {
SUBDIRS += camerabin
}
}

View File

@@ -13,12 +13,12 @@ win32 {
}
win32 {
contains(config_test_directshow, yes): SUBDIRS += directshow
contains(config_test_wmf, yes) : SUBDIRS += wmf
config_directshow: SUBDIRS += directshow
config_wmf: SUBDIRS += wmf
}
unix:!mac {
contains(config_test_gstreamer, yes) {
config_gstreamer {
SUBDIRS += gstreamer
} else {
SUBDIRS += audiocapture
@@ -27,7 +27,7 @@ unix:!mac {
# v4l is turned off because it is not supported in Qt 5
# !maemo*:SUBDIRS += v4l
contains(config_test_pulseaudio, yes) {
config_pulseaudio {
SUBDIRS += pulseaudio
}
}

View File

@@ -33,7 +33,7 @@ SUBDIRS += \
src_qgsttools.depends += src_qtmmwidgets
}
contains(config_test_gstreamer, yes) {
config_gstreamer {
SUBDIRS += src_qgsttools
# If gstreamer is present, then plugins should depend on it