From c82402e158100d1c755bdcbaab731952ad487821 Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 12 Feb 2016 16:23:59 +0100 Subject: consistently put {qt,qml}_{module,plugin} at the end of project files this fixes static builds by ensuring that all dependencies are exported. Task-number: QTBUG-51071 Change-Id: I8e1554b648327ea2fb342b882ce8e439bd6f271d Reviewed-by: Yoann Lopes --- .../mockserviceplugin1/mockserviceplugin1.pro | 14 +++++++------- .../mockserviceplugin2/mockserviceplugin2.pro | 14 +++++++------- .../mockserviceplugin3/mockserviceplugin3.pro | 14 +++++++------- .../mockserviceplugin4/mockserviceplugin4.pro | 14 +++++++------- .../mockserviceplugin5/mockserviceplugin5.pro | 14 +++++++------- 5 files changed, 35 insertions(+), 35 deletions(-) (limited to 'tests/auto/unit') diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro index 68dee28a9..2b7412d16 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro @@ -1,7 +1,13 @@ TARGET = mockserviceplugin1 QT += multimedia-private -PLUGIN_TYPE=mediaservice +HEADERS += ../mockservice.h +SOURCES += mockserviceplugin1.cpp +OTHER_FILES += mockserviceplugin1.json + +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 + +PLUGIN_TYPE = mediaservice PLUGIN_CLASS_NAME = MockServicePlugin1 load(qt_plugin) @@ -14,10 +20,4 @@ win32 { } } -HEADERS += ../mockservice.h -SOURCES += mockserviceplugin1.cpp -OTHER_FILES += mockserviceplugin1.json - target.path = $$[QT_INSTALL_TESTS]/tst_qmediaserviceprovider/$${PLUGIN_TYPE} - -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro index 98a3ca4a4..ff793ec85 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro @@ -1,7 +1,13 @@ TARGET = mockserviceplugin2 QT += multimedia-private -PLUGIN_TYPE=mediaservice +HEADERS += ../mockservice.h +SOURCES += mockserviceplugin2.cpp +OTHER_FILES += mockserviceplugin2.json + +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 + +PLUGIN_TYPE = mediaservice PLUGIN_CLASS_NAME = MockServicePlugin2 load(qt_plugin) @@ -14,10 +20,4 @@ win32 { } } -HEADERS += ../mockservice.h -SOURCES += mockserviceplugin2.cpp -OTHER_FILES += mockserviceplugin2.json - target.path = $$[QT_INSTALL_TESTS]/tst_qmediaserviceprovider/$${PLUGIN_TYPE} - -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro index 50def293f..15e9dc659 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro @@ -1,7 +1,13 @@ TARGET = mockserviceplugin3 QT += multimedia-private -PLUGIN_TYPE=mediaservice +HEADERS += ../mockservice.h +SOURCES += mockserviceplugin3.cpp +OTHER_FILES += mockserviceplugin3.json + +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 + +PLUGIN_TYPE = mediaservice PLUGIN_CLASS_NAME = MockServicePlugin3 load(qt_plugin) @@ -14,10 +20,4 @@ win32 { } } -HEADERS += ../mockservice.h -SOURCES += mockserviceplugin3.cpp -OTHER_FILES += mockserviceplugin3.json - target.path = $$[QT_INSTALL_TESTS]/tst_qmediaserviceprovider/$${PLUGIN_TYPE} - -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro index 57b715f52..894d92939 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro @@ -1,7 +1,13 @@ TARGET = mockserviceplugin4 QT += multimedia-private -PLUGIN_TYPE=mediaservice +HEADERS += ../mockservice.h +SOURCES += mockserviceplugin4.cpp +OTHER_FILES += mockserviceplugin4.json + +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 + +PLUGIN_TYPE = mediaservice PLUGIN_CLASS_NAME = MockServicePlugin4 load(qt_plugin) @@ -14,10 +20,4 @@ win32 { } } -HEADERS += ../mockservice.h -SOURCES += mockserviceplugin4.cpp -OTHER_FILES += mockserviceplugin4.json - target.path = $$[QT_INSTALL_TESTS]/tst_qmediaserviceprovider/$${PLUGIN_TYPE} - -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro index 9657e3cc1..093c24746 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro @@ -1,7 +1,13 @@ TARGET = mockserviceplugin5 QT += multimedia-private -PLUGIN_TYPE=mediaservice +HEADERS += ../mockservice.h +SOURCES += mockserviceplugin5.cpp +OTHER_FILES += mockserviceplugin5.json + +DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 + +PLUGIN_TYPE = mediaservice PLUGIN_CLASS_NAME = MockServicePlugin5 load(qt_plugin) @@ -14,10 +20,4 @@ win32 { } } -HEADERS += ../mockservice.h -SOURCES += mockserviceplugin5.cpp -OTHER_FILES += mockserviceplugin5.json - target.path = $$[QT_INSTALL_TESTS]/tst_qmediaserviceprovider/$${PLUGIN_TYPE} - -DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 -- cgit v1.2.3 From 3ef3e5b1019cd727ec9ca5a16c7615b016db19ea Mon Sep 17 00:00:00 2001 From: Oswald Buddenhagen Date: Fri, 12 Feb 2016 16:31:29 +0100 Subject: remove redundant statements from project files - TARGET is unnecessary if it matches the project file's basename - CONFIG+=no_private_qt_headers_warning is added by qt_build_config.prf - load(qt_build_config) is done by .qmake.conf Change-Id: I3eb45a758dfee34be3c78fc13d996780741c95e9 Reviewed-by: Joerg Bornemann Reviewed-by: Yoann Lopes --- tests/auto/unit/qaudiodecoder/qaudiodecoder.pro | 8 +------- tests/auto/unit/qaudioprobe/qaudioprobe.pro | 2 +- tests/auto/unit/qaudiorecorder/qaudiorecorder.pro | 2 +- tests/auto/unit/qmediaobject/qmediaobject.pro | 2 +- tests/auto/unit/qmediaplayer/qmediaplayer.pro | 2 +- tests/auto/unit/qmediaplayerwidgets/qmediaplayerwidgets.pro | 2 +- tests/auto/unit/qmediarecorder/qmediarecorder.pro | 2 +- .../mockserviceplugin1/mockserviceplugin1.pro | 1 - .../mockserviceplugin2/mockserviceplugin2.pro | 1 - .../mockserviceplugin3/mockserviceplugin3.pro | 1 - .../mockserviceplugin4/mockserviceplugin4.pro | 1 - .../mockserviceplugin5/mockserviceplugin5.pro | 1 - tests/auto/unit/qradiodata/qradiodata.pro | 2 +- tests/auto/unit/qradiotuner/qradiotuner.pro | 2 +- tests/auto/unit/qsamplecache/qsamplecache.pro | 2 +- tests/auto/unit/qvideoprobe/qvideoprobe.pro | 2 +- tests/auto/unit/qwavedecoder/qwavedecoder.pro | 2 +- 17 files changed, 12 insertions(+), 23 deletions(-) (limited to 'tests/auto/unit') diff --git a/tests/auto/unit/qaudiodecoder/qaudiodecoder.pro b/tests/auto/unit/qaudiodecoder/qaudiodecoder.pro index ff9ba8f05..0bf841b35 100644 --- a/tests/auto/unit/qaudiodecoder/qaudiodecoder.pro +++ b/tests/auto/unit/qaudiodecoder/qaudiodecoder.pro @@ -1,14 +1,8 @@ -#------------------------------------------------- -# -# Project created by QtCreator 2012-02-07T15:27:07 -# -#------------------------------------------------- - QT += multimedia multimedia-private testlib gui TARGET = tst_qaudiodecoder -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TEMPLATE = app diff --git a/tests/auto/unit/qaudioprobe/qaudioprobe.pro b/tests/auto/unit/qaudioprobe/qaudioprobe.pro index fe2000716..f52bafb94 100644 --- a/tests/auto/unit/qaudioprobe/qaudioprobe.pro +++ b/tests/auto/unit/qaudioprobe/qaudioprobe.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qaudioprobe QT += multimedia-private testlib diff --git a/tests/auto/unit/qaudiorecorder/qaudiorecorder.pro b/tests/auto/unit/qaudiorecorder/qaudiorecorder.pro index 7ee5222c6..beab48213 100644 --- a/tests/auto/unit/qaudiorecorder/qaudiorecorder.pro +++ b/tests/auto/unit/qaudiorecorder/qaudiorecorder.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qaudiorecorder QT += multimedia-private testlib diff --git a/tests/auto/unit/qmediaobject/qmediaobject.pro b/tests/auto/unit/qmediaobject/qmediaobject.pro index 597ddd009..787982fe5 100644 --- a/tests/auto/unit/qmediaobject/qmediaobject.pro +++ b/tests/auto/unit/qmediaobject/qmediaobject.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qmediaobject QT += multimedia-private testlib diff --git a/tests/auto/unit/qmediaplayer/qmediaplayer.pro b/tests/auto/unit/qmediaplayer/qmediaplayer.pro index cbdbf71f4..04ce09733 100644 --- a/tests/auto/unit/qmediaplayer/qmediaplayer.pro +++ b/tests/auto/unit/qmediaplayer/qmediaplayer.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qmediaplayer QT += network multimedia-private testlib SOURCES += tst_qmediaplayer.cpp diff --git a/tests/auto/unit/qmediaplayerwidgets/qmediaplayerwidgets.pro b/tests/auto/unit/qmediaplayerwidgets/qmediaplayerwidgets.pro index ce723fbe1..c84d66e9c 100644 --- a/tests/auto/unit/qmediaplayerwidgets/qmediaplayerwidgets.pro +++ b/tests/auto/unit/qmediaplayerwidgets/qmediaplayerwidgets.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qmediaplayerwidgets QT += network multimedia-private multimediawidgets-private testlib widgets SOURCES += tst_qmediaplayerwidgets.cpp diff --git a/tests/auto/unit/qmediarecorder/qmediarecorder.pro b/tests/auto/unit/qmediarecorder/qmediarecorder.pro index f6fac0440..99e0de53b 100644 --- a/tests/auto/unit/qmediarecorder/qmediarecorder.pro +++ b/tests/auto/unit/qmediarecorder/qmediarecorder.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qmediarecorder QT += multimedia-private testlib SOURCES += tst_qmediarecorder.cpp diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro index 2b7412d16..7fcaadbc2 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin1/mockserviceplugin1.pro @@ -1,4 +1,3 @@ -TARGET = mockserviceplugin1 QT += multimedia-private HEADERS += ../mockservice.h diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro index ff793ec85..4ac001ec9 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin2/mockserviceplugin2.pro @@ -1,4 +1,3 @@ -TARGET = mockserviceplugin2 QT += multimedia-private HEADERS += ../mockservice.h diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro index 15e9dc659..34cd2fed1 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin3/mockserviceplugin3.pro @@ -1,4 +1,3 @@ -TARGET = mockserviceplugin3 QT += multimedia-private HEADERS += ../mockservice.h diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro index 894d92939..0900bfc40 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin4/mockserviceplugin4.pro @@ -1,4 +1,3 @@ -TARGET = mockserviceplugin4 QT += multimedia-private HEADERS += ../mockservice.h diff --git a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro index 093c24746..37f287f9d 100644 --- a/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro +++ b/tests/auto/unit/qmediaserviceprovider/mockserviceplugin5/mockserviceplugin5.pro @@ -1,4 +1,3 @@ -TARGET = mockserviceplugin5 QT += multimedia-private HEADERS += ../mockservice.h diff --git a/tests/auto/unit/qradiodata/qradiodata.pro b/tests/auto/unit/qradiodata/qradiodata.pro index a4937cc51..01a1f005f 100644 --- a/tests/auto/unit/qradiodata/qradiodata.pro +++ b/tests/auto/unit/qradiodata/qradiodata.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qradiodata QT += multimedia-private testlib SOURCES += tst_qradiodata.cpp diff --git a/tests/auto/unit/qradiotuner/qradiotuner.pro b/tests/auto/unit/qradiotuner/qradiotuner.pro index e0638c1f8..c449e03ae 100644 --- a/tests/auto/unit/qradiotuner/qradiotuner.pro +++ b/tests/auto/unit/qradiotuner/qradiotuner.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qradiotuner QT += multimedia-private testlib SOURCES += tst_qradiotuner.cpp diff --git a/tests/auto/unit/qsamplecache/qsamplecache.pro b/tests/auto/unit/qsamplecache/qsamplecache.pro index 1f0db1b58..d6fa7c4e0 100644 --- a/tests/auto/unit/qsamplecache/qsamplecache.pro +++ b/tests/auto/unit/qsamplecache/qsamplecache.pro @@ -1,4 +1,4 @@ -CONFIG += no_private_qt_headers_warning testcase +CONFIG += testcase TARGET = tst_qsamplecache QT += multimedia-private testlib diff --git a/tests/auto/unit/qvideoprobe/qvideoprobe.pro b/tests/auto/unit/qvideoprobe/qvideoprobe.pro index 0bd4102a8..88e8eebbe 100644 --- a/tests/auto/unit/qvideoprobe/qvideoprobe.pro +++ b/tests/auto/unit/qvideoprobe/qvideoprobe.pro @@ -1,4 +1,4 @@ -CONFIG += testcase no_private_qt_headers_warning +CONFIG += testcase TARGET = tst_qvideoprobe QT += multimedia-private testlib diff --git a/tests/auto/unit/qwavedecoder/qwavedecoder.pro b/tests/auto/unit/qwavedecoder/qwavedecoder.pro index 1b6af7e86..a24273f3c 100644 --- a/tests/auto/unit/qwavedecoder/qwavedecoder.pro +++ b/tests/auto/unit/qwavedecoder/qwavedecoder.pro @@ -4,7 +4,7 @@ SOURCES += tst_qwavedecoder.cpp \ ../../../../src/multimedia/audio/qwavedecoder_p.cpp QT += multimedia-private testlib network -CONFIG += no_private_qt_headers_warning testcase +CONFIG += testcase TESTDATA += data/* DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0 -- cgit v1.2.3 From 58019c256eb7cc2b5c65ab4feedb7103079d7438 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Fri, 26 Feb 2016 10:29:22 +0100 Subject: Fix constructor parameters in tst_QMediaPlaylist. Fix warning: tst_qmediaplaylist.cpp: In member function 'void tst_QMediaPlaylist::mediaPlayListControl()': tst_qmediaplaylist.cpp:1221:49: warning: the address of 'parent' will always evaluate as 'true' [-Waddress] Change-Id: I46391550d07a8f58442269d0e5eae418258adbff Reviewed-by: Yoann Lopes --- tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tests/auto/unit') diff --git a/tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp b/tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp index 104046d0e..fb7773834 100644 --- a/tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp +++ b/tests/auto/unit/qmediaplaylist/tst_qmediaplaylist.cpp @@ -1223,7 +1223,7 @@ void tst_QMediaPlaylist::mediaPlayListControl() { // To check changes in abstract classe's pure virtual functions QObject parent; - MockMediaPlaylistControl plylistctrl(&parent); + MockMediaPlaylistControl plylistctrl(false, &parent); } // MaemoAPI-1850:test QMediaPlayListSourceControl constructor -- cgit v1.2.3