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

@@ -2,12 +2,9 @@ TEMPLATE = app
DEPENDPATH += . DEPENDPATH += .
INCLUDEPATH += . INCLUDEPATH += .
requires(unix)
SOURCES = alsatest.cpp SOURCES = alsatest.cpp
CONFIG -= qt dylib CONFIG -= qt dylib
mac:CONFIG -= app_bundle
LIBS+=-lasound LIBS+=-lasound

View File

@@ -1,8 +1,6 @@
CONFIG -= qt CONFIG -= qt
CONFIG += console CONFIG += console
requires(win32*)
SOURCES += main.cpp SOURCES += main.cpp
LIBS += -lstrmiids -ldmoguids -luuid -lmsdmo -lole32 -loleaut32 LIBS += -lstrmiids -ldmoguids -luuid -lmsdmo -lole32 -loleaut32

View File

@@ -1,6 +1,4 @@
CONFIG -= qt CONFIG -= qt
CONFIG += console CONFIG += console
requires(win32*)
SOURCES += main.cpp SOURCES += main.cpp

View File

@@ -1,5 +1,3 @@
requires(unix)
SOURCES += main.cpp SOURCES += main.cpp
CONFIG += link_pkgconfig CONFIG += link_pkgconfig

View File

@@ -1,5 +1,3 @@
requires(unix)
SOURCES += main.cpp SOURCES += main.cpp
CONFIG += link_pkgconfig CONFIG += link_pkgconfig

View File

@@ -1,5 +1,3 @@
requires(unix)
SOURCES += main.cpp SOURCES += main.cpp
CONFIG += link_pkgconfig CONFIG += link_pkgconfig

View File

@@ -2,8 +2,6 @@ CONFIG -= qt
LIBS += LIBS +=
CONFIG += link_pkgconfig CONFIG += link_pkgconfig
requires(unix)
PKGCONFIG += \ PKGCONFIG += \
libpulse \ libpulse \
libpulse-mainloop-glib libpulse-mainloop-glib

View File

@@ -1,5 +1,3 @@
requires(unix)
SOURCES += main.cpp SOURCES += main.cpp
CONFIG += link_pkgconfig CONFIG += link_pkgconfig

View File

@@ -1,8 +1,6 @@
CONFIG -= qt CONFIG -= qt
CONFIG += console CONFIG += console
requires(win32*)
SOURCES += main.cpp SOURCES += main.cpp
LIBS += -lstrmiids -lole32 -lOleaut32 -luser32 -lgdi32 LIBS += -lstrmiids -lole32 -lOleaut32 -luser32 -lgdi32

View File

@@ -1,6 +1,4 @@
CONFIG -= qt CONFIG -= qt
CONFIG += console CONFIG += console
requires(win32*)
SOURCES += main.cpp SOURCES += main.cpp

View File

@@ -1,5 +1,3 @@
requires(unix)
SOURCES += main.cpp SOURCES += main.cpp
CONFIG += link_pkgconfig CONFIG += link_pkgconfig

View File

@@ -25,4 +25,4 @@ TEMPLATE = subdirs
QT += widgets QT += widgets
} }
contains(config_test_openal, yes): SUBDIRS += audioengine config_openal: SUBDIRS += audioengine

View File

@@ -1,3 +1,22 @@
load(configure)
qtCompileTest(openal)
win32 {
qtCompileTest(directshow)
qtCompileTest(wmsdk)
qtCompileTest(wmp)
qtCompileTest(wmf)
qtCompileTest(evr)
} else {
qtCompileTest(alsa)
qtCompileTest(pulsaudio)
qtCompileTest(gstreamer) {
qtCompileTest(gstreamer_photography)
qtCompileTest(gstreamer_appsrc)
}
qtCompileTest(resourcepolicy)
qtCompileTest(xvideo)
}
TEMPLATE = subdirs TEMPLATE = subdirs
module_qtmultimedia_src.subdir = src module_qtmultimedia_src.subdir = src

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -29,23 +29,3 @@
"qtdeclarative" => "refs/heads/master", "qtdeclarative" => "refs/heads/master",
"qtjsbackend" => "refs/heads/master", "qtjsbackend" => "refs/heads/master",
); );
# Compile tests
%configtests = (
# Windows tests
"directshow" => {},
"wmsdk" => {},
"wmp" => {},
"wmf" => {},
"evr" => {},
# Linux tests
"alsa" => {},
"gstreamer" => {},
"gstreamer_photography" => {},
"gstreamer_appsrc" => {},
"pulseaudio" => {},
"resourcepolicy" => {},
"xvideo" => {},
"openal" => {},
);