Fixed up examples and demos
authorJonas Rabbe <jonas.rabbe@nokia.com>
Tue, 5 Jul 2011 04:18:51 +0000 (14:18 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 6 Jul 2011 03:17:52 +0000 (05:17 +0200)
Changed the .pro files and moved some things around to ensure that the
examples and demos for Qt Multimedia Kit compiles and can be checked by
the CI system.

Change-Id: I915dc38ca76a97f20949df715725659c603231e2
Reviewed-on: http://codereview.qt.nokia.com/1136
Reviewed-by: Qt Sanity Bot <qt_sanity_bot@ovi.com>
Reviewed-by: Dmytro Poplavskiy <dmytro.poplavskiy@nokia.com>
Reviewed-by: Jonas Rabbe <jonas.rabbe@nokia.com>
14 files changed:
demos/player/player.pro
examples/audiodevices/audiodevices.pro
examples/audiodevices/main.cpp [moved from examples/main.cpp with 100% similarity]
examples/audioinput/audioinput.pro
examples/audiooutput/audiooutput.pro
examples/audiorecorder/audiorecorder.pro
examples/camera/camera.pro
examples/declarative-camera/declarative-camera.pro
examples/examples.pro
examples/radio/radio.pro
examples/slideshow/slideshow.pro
examples/videographicsitem/videographicsitem.pro
examples/videowidget/videowidget.pro
qtmultimediakit.pro

index 6f369ae..332a84c 100644 (file)
@@ -1,13 +1,11 @@
 TEMPLATE = app
 TARGET = player
-QT += network \
-      xml
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio
+CONFIG += qt warn_on
 
-include(../demos.pri)
-CONFIG += mobility
-MOBILITY = multimedia
+QT += network \
+      xml \
+      multimediakit \
 
 HEADERS = \
     player.h \
@@ -28,3 +26,10 @@ symbian {
     LIBS += -lavkon -lcone -leikcore
     TARGET.CAPABILITY = ReadUserData
 }
+
+#install
+target.path = $$[QT_INSTALL_DEMOS]/qtmultimediakit/player
+sources.files = $$SOURCES $HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_DEMOS]/qtmultimediakit/player
+INSTALLS += target sources
+
index 2af690b..e7904f5 100644 (file)
@@ -1,13 +1,7 @@
 TEMPLATE = app
-CONFIG += example
+TARGET = audiodevices
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 HEADERS       = audiodevices.h
 
@@ -19,3 +13,10 @@ FORMS        += audiodevicesbase.ui
 symbian {
     TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData
 }
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audiodevices
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audiodevices
+
+INSTALLS += target sources
+
index 80daa8d..6d2aa50 100644 (file)
@@ -1,16 +1,16 @@
 TEMPLATE = app
-CONFIG += example
+TARGET = audioinput
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 HEADERS       = audioinput.h
 
 SOURCES       = audioinput.cpp \
                 main.cpp
 
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audioinput
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audioinput
+
+INSTALLS += target sources
+
index 63d037f..38159fa 100644 (file)
@@ -1,15 +1,16 @@
 TEMPLATE = app
-CONFIG += example
+TARGET += audiooutput
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 HEADERS       = audiooutput.h
 
 SOURCES       = audiooutput.cpp \
                 main.cpp
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audiooutput
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audiooutput
+
+INSTALLS += target sources
+
index 9950241..9b56a8c 100644 (file)
@@ -1,13 +1,7 @@
 TEMPLATE = app
-CONFIG += example
+TARGET = audiorecorder
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/audio
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 HEADERS = \
     audiorecorder.h
@@ -27,3 +21,10 @@ maemo*: {
 symbian: {
     TARGET.CAPABILITY = UserEnvironment ReadDeviceData WriteDeviceData
 }
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audiorecorder
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/audiorecorder
+
+INSTALLS += target sources
+
index 2d657e8..6ec82ca 100644 (file)
@@ -1,13 +1,7 @@
 TEMPLATE = app
 TARGET = camera
 
-INCLUDEPATH+=../../src/multimedia \
-             ../../src/multimedia/video
-
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
+QT += multimediakit
 
 HEADERS = \
     camera.h \
@@ -31,3 +25,10 @@ symbian {
     TARGET.EPOCHEAPSIZE = 0x20000 0x3000000
     LIBS += -lavkon -leiksrv -lcone -leikcore
 }
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/camera
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/camera
+
+INSTALLS += target sources
+
index 297361c..d0db157 100644 (file)
@@ -1,8 +1,7 @@
-include (../mobility_examples.pri)
 
 TEMPLATE=app
 
-QT += declarative network
+QT += declarative network multimediakit
 
 !maemo5 {
     contains(QT_CONFIG, opengl) {
@@ -10,12 +9,6 @@ QT += declarative network
     }
 }
 
-win32 {
-    #required by Qt SDK to resolve Mobility libraries
-    CONFIG+=mobility
-    MOBILITY+=multimedia
-}
-
 SOURCES += $$PWD/qmlcamera.cpp
 !mac:TARGET = qml_camera
 else:TARGET = QmlCamera
@@ -29,3 +22,9 @@ symbian {
     TARGET.EPOCHEAPSIZE = 0x20000 0x3000000
 }
 
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/qml_camera
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/qml_camera
+
+INSTALLS += target sources
+
index fd00697..522b1b5 100644 (file)
@@ -15,7 +15,3 @@ contains(QT_CONFIG, declarative) {
     SUBDIRS += declarative-camera
 }
 
-sources.path = $$QT_MOBILITY_EXAMPLES
-
-INSTALLS += sources
-
index 386efd4..b0b9ff3 100644 (file)
@@ -1,13 +1,7 @@
 TEMPLATE = app
-CONFIG += example
+TARGET = radio
 
-INCLUDEPATH += ../../src/multimedia
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 HEADERS = \
     radio.h
@@ -19,3 +13,10 @@ SOURCES = \
 symbian: {
     TARGET.CAPABILITY = UserEnvironment WriteDeviceData ReadDeviceData SwEvent
 }
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/radio
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/radio
+
+INSTALLS += target sources
+
index 76c660a..e969ade 100644 (file)
@@ -1,10 +1,7 @@
 TEMPLATE = app
 TARGET = slideshow
-INCLUDEPATH+=../../src/multimedia
-include (../mobility_examples.pri)
 
-CONFIG += mobility
-MOBILITY = multimedia
+QT += multimediakit
 
 HEADERS = \
     slideshow.h
@@ -17,3 +14,10 @@ symbian {
     TARGET.CAPABILITY = NetworkServices
     TARGET.EPOCHEAPSIZE = 0x20000 0x3000000
 }
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/slideshow
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/slideshow
+
+INSTALLS += target sources
+
index 8461beb..4738dfa 100644 (file)
@@ -1,13 +1,7 @@
 TEMPLATE = app
-CONFIG += example
+TARGET = videographicsitem
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/video
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 !symbian:contains(QT_CONFIG, opengl): QT += opengl
 
@@ -17,3 +11,10 @@ HEADERS   += videoplayer.h \
 SOURCES   += main.cpp \
              videoplayer.cpp \
              videoitem.cpp
+
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/videographicsitem
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/videographicsitem
+
+INSTALLS += target sources
+
index 1ef79fc..40f2cc1 100644 (file)
@@ -1,13 +1,7 @@
 TEMPLATE = app
-CONFIG += example
+TARGET = videowidget
 
-INCLUDEPATH += ../../src/multimedia ../../src/multimedia/video
-include(../mobility_examples.pri)
-
-CONFIG += mobility
-MOBILITY = multimedia
-
-QMAKE_RPATHDIR += $$DESTDIR
+QT += multimediakit
 
 HEADERS = \
     videoplayer.h \
@@ -20,3 +14,9 @@ SOURCES = \
     videowidget.cpp \
     videowidgetsurface.cpp
 
+target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/videowidget
+sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
+sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimediakit/videowidget
+
+INSTALLS += target sources
+
index bb1de01..38de934 100644 (file)
@@ -23,8 +23,7 @@ module_qtmultimediakit_tests.depends = module_qtmultimediakit_src
 module_qtmultimediakit_tests.CONFIG = no_default_target no_default_install
 
 SUBDIRS += module_qtmultimediakit_src \
-# temporarily disable demos and examples
-#           module_qtmultimediakit_demos \
-#           module_qtmultimediakit_examples \
+           module_qtmultimediakit_demos \
+           module_qtmultimediakit_examples \
            module_qtmultimediakit_tests \