Remove widgets config test.
Since it's not guaranteed that other Qt modules will be built by the time qmake is run (and config.tests are created) we can't rely on compilation. Just check the module.pri variable for widgets instead. Change-Id: I352cf6427b748b89b69ec17588ce0dd83065090f Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
This commit is contained in:
committed by
Qt by Nokia
parent
23470c2035
commit
f7bfcdfa28
@@ -1,48 +0,0 @@
|
||||
/****************************************************************************
|
||||
**
|
||||
** Copyright (C) 2010 Nokia Corporation and/or its subsidiary(-ies).
|
||||
** All rights reserved.
|
||||
** Contact: Nokia Corporation (qt-info@nokia.com)
|
||||
**
|
||||
** This file is part of the Qt Mobility Components.
|
||||
**
|
||||
** $QT_BEGIN_LICENSE:LGPL$
|
||||
** GNU Lesser General Public License Usage
|
||||
** This file may be used under the terms of the GNU Lesser General Public
|
||||
** License version 2.1 as published by the Free Software Foundation and
|
||||
** appearing in the file LICENSE.LGPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU Lesser
|
||||
** General Public License version 2.1 requirements will be met:
|
||||
** http://www.gnu.org/licenses/old-licenses/lgpl-2.1.html.
|
||||
**
|
||||
** In addition, as a special exception, Nokia gives you certain additional
|
||||
** rights. These rights are described in the Nokia Qt LGPL Exception
|
||||
** version 1.1, included in the file LGPL_EXCEPTION.txt in this package.
|
||||
**
|
||||
** GNU General Public License Usage
|
||||
** Alternatively, this file may be used under the terms of the GNU General
|
||||
** Public License version 3.0 as published by the Free Software Foundation
|
||||
** and appearing in the file LICENSE.GPL included in the packaging of this
|
||||
** file. Please review the following information to ensure the GNU General
|
||||
** Public License version 3.0 requirements will be met:
|
||||
** http://www.gnu.org/copyleft/gpl.html.
|
||||
**
|
||||
** Other Usage
|
||||
** Alternatively, this file may be used in accordance with the terms and
|
||||
** conditions contained in a signed written agreement between you and Nokia.
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
**
|
||||
** $QT_END_LICENSE$
|
||||
**
|
||||
****************************************************************************/
|
||||
|
||||
#include <QMainWindow>
|
||||
|
||||
int main(int, char**)
|
||||
{
|
||||
QMainWindow m;
|
||||
return 0;
|
||||
}
|
||||
@@ -1,5 +0,0 @@
|
||||
TEMPLATE = app
|
||||
QT += gui widgets
|
||||
|
||||
# Input
|
||||
SOURCES += main.cpp
|
||||
@@ -1,7 +1,7 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
# These examples all need widgets for now (using creator templates that use widgets)
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
SUBDIRS += \
|
||||
radio \
|
||||
camera \
|
||||
|
||||
@@ -24,7 +24,7 @@ SOURCES += \
|
||||
$$PWD/dsimagecapturecontrol.cpp \
|
||||
$$PWD/dscamerasession.cpp
|
||||
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
HEADERS += $$PWD/dsvideowidgetcontrol.h
|
||||
SOURCES += $$PWD/dsvideowidgetcontrol.cpp
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ SOURCES += dsserviceplugin.cpp
|
||||
|
||||
!contains(config_test_wmsdk, yes): DEFINES += QT_NO_WMSDK
|
||||
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
QT += multimediawidgets
|
||||
DEFINES += HAVE_WIDGETS
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ SOURCES += \
|
||||
$$PWD/mediasamplevideobuffer.cpp \
|
||||
$$PWD/videosurfacefilter.cpp
|
||||
|
||||
contains(config_test_widgets, yes):!simulator {
|
||||
!isEmpty(QT.widgets.name):!simulator {
|
||||
HEADERS += \
|
||||
$$PWD/vmr9videowindowcontrol.h
|
||||
|
||||
|
||||
@@ -5,7 +5,7 @@ TARGET = qgstengine
|
||||
QT += multimedia-private network
|
||||
CONFIG += no_private_qt_headers_warning
|
||||
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
QT += widgets multimediawidgets-private
|
||||
DEFINES += HAVE_WIDGETS
|
||||
}
|
||||
@@ -46,7 +46,7 @@ maemo6 {
|
||||
|
||||
PKGCONFIG += qmsystem2
|
||||
|
||||
isEqual(QT_ARCH,armv6):contains(config_test_widgets, yes) {
|
||||
isEqual(QT_ARCH,armv6):!isEmpty(QT.widgets.name) {
|
||||
HEADERS += qgstreamergltexturerenderer.h
|
||||
SOURCES += qgstreamergltexturerenderer.cpp
|
||||
QT += opengl
|
||||
@@ -74,7 +74,7 @@ SOURCES += \
|
||||
gstvideoconnector.c \
|
||||
|
||||
|
||||
contains(config_test_xvideo, yes):contains(config_test_widgets, yes): {
|
||||
contains(config_test_xvideo, yes):!isEmpty(QT.widgets.name): {
|
||||
DEFINES += HAVE_XVIDEO
|
||||
|
||||
LIBS += -lXv -lX11 -lXext
|
||||
|
||||
@@ -39,6 +39,6 @@ mac:!simulator {
|
||||
|
||||
# Currently we need qmacdefines_mac.h from QtWidgets, so this depends on that :/
|
||||
# despite the code not really using them.
|
||||
contains(config_test_widgets, yes):SUBDIRS += qt7
|
||||
!isEmpty(QT.widgets.name):SUBDIRS += qt7
|
||||
}
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ load(qt_module)
|
||||
|
||||
TARGET = qqt7engine
|
||||
QT += multimedia-private network
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
QT += multimediawidgets-private widgets
|
||||
}
|
||||
|
||||
@@ -56,9 +56,9 @@ OBJECTIVE_SOURCES += \
|
||||
qt7ciimagevideobuffer.mm \
|
||||
qcvdisplaylink.mm
|
||||
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
HEADERS += \
|
||||
qt7movieviewwidget.h
|
||||
qt7movievideowidget.h
|
||||
|
||||
OBJECTIVE_SOURCES += \
|
||||
qt7movievideowidget.mm
|
||||
|
||||
@@ -24,7 +24,7 @@ SOURCES += \
|
||||
$$PWD/mfaudioendpointcontrol.cpp \
|
||||
$$PWD/mfmetadatacontrol.cpp
|
||||
|
||||
contains(config_test_widgets, yes):!simulator {
|
||||
!isEmpty(QT.widgets.name):!simulator {
|
||||
HEADERS += $$PWD/evr9videowindowcontrol.h
|
||||
SOURCES += $$PWD/evr9videowindowcontrol.cpp
|
||||
}
|
||||
|
||||
@@ -2,7 +2,7 @@ load(qt_module)
|
||||
|
||||
TARGET = wmfengine
|
||||
QT += multimedia-private network
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
QT += multimediawidgets-private
|
||||
DEFINES += HAVE_WIDGETS
|
||||
}
|
||||
|
||||
@@ -19,7 +19,7 @@ SUBDIRS += src_imports
|
||||
|
||||
# Optional bits
|
||||
contains(config_test_gstreamer, yes):SUBDIRS += src_qgsttools
|
||||
contains(config_test_widgets, yes) {
|
||||
!isEmpty(QT.widgets.name) {
|
||||
SUBDIRS += src_qtmmwidgets
|
||||
|
||||
# If widgets is around, plugins depends on widgets too (imports does not)
|
||||
|
||||
@@ -37,9 +37,6 @@
|
||||
);
|
||||
# Compile tests
|
||||
%configtests = (
|
||||
# Widgets (to make things easier)
|
||||
"widgets" => {message => "Disabling widget related code. To enable, make sure that QtWidgets exists."},
|
||||
|
||||
# Windows tests
|
||||
"directshow" => {},
|
||||
"wmsdk" => {},
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
TEMPLATE = subdirs
|
||||
|
||||
SUBDIRS += multimedia.pro
|
||||
contains(config_test_widgets, yes): SUBDIRS += multimediawidgets.pro
|
||||
!isEmpty(QT.widgets.name): SUBDIRS += multimediawidgets.pro
|
||||
|
||||
Reference in New Issue
Block a user