centralize and fixup example sources install targets

This follows suit with aeb036e in qtbase.

Change-Id: Ie8580d0a1f38ab9858b0e44c9f99bdc552a1752a
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Joerg Bornemann
2012-12-05 13:03:09 +01:00
committed by The Qt Project
parent 90c8ba233b
commit 6b4994c265
407 changed files with 216 additions and 271 deletions

View File

@@ -1 +1,2 @@
load(qt_build_config)
CONFIG += qt_example_installs

View File

@@ -1,20 +0,0 @@
TEMPLATE = app
TARGET = audiodecoder
CONFIG += qt warn_on
HEADERS = \
audiodecoder.h \
wavefilewriter.h
SOURCES = main.cpp \
audiodecoder.cpp \
wavefilewriter.cpp
QT += multimedia
CONFIG += console
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiodecoder
sources.files = $$SOURCES $$HEADERS audiodecoder.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiodecoder
INSTALLS += target sources

View File

@@ -1,19 +0,0 @@
TEMPLATE = app
TARGET = audiodevices
QT += multimedia
HEADERS = audiodevices.h
SOURCES = audiodevices.cpp \
main.cpp
FORMS += audiodevicesbase.ui
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiodevices
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiodevices
INSTALLS += target sources
QT+=widgets

View File

@@ -1,10 +0,0 @@
TEMPLATE = subdirs
# These examples contain no C++ and can simply be copied
SUBDIRS =
sources.files = doc qml
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audioengine
INSTALLS += sources
OTHER_FILES += qml/*.qml qml/*.qmlproject qml/content/*

View File

@@ -1,15 +0,0 @@
TEMPLATE = app
TARGET = audioinput
QT += multimedia widgets
HEADERS = audioinput.h
SOURCES = audioinput.cpp \
main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audioinput
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audioinput
INSTALLS += target sources

View File

@@ -1,15 +0,0 @@
TEMPLATE = app
TARGET = audiooutput
QT += multimedia widgets
HEADERS = audiooutput.h
SOURCES = audiooutput.cpp \
main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiooutput
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiooutput
INSTALLS += target sources

View File

@@ -1,8 +0,0 @@
TEMPLATE = subdirs
SUBDIRS += customvideoitem customvideowidget
# install
sources.files = customvideosurface.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/customvideosurface
INSTALLS += sources

View File

@@ -1,21 +0,0 @@
TEMPLATE = app
TARGET = customvideowidget
QT += multimedia multimediawidgets widgets
HEADERS = \
videoplayer.h \
videowidget.h \
videowidgetsurface.h
SOURCES = \
main.cpp \
videoplayer.cpp \
videowidget.cpp \
videowidgetsurface.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/customvideosurface/customvideowidget
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/customvideosurface/customvideowidget
INSTALLS += target sources

View File

@@ -1,13 +0,0 @@
TEMPLATE=app
TARGET=declarative-camera
QT += quick qml multimedia
SOURCES += qmlcamera.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/declarative-camera
sources.files = $$SOURCES *.pro images *.qml
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/declarative-camera
INSTALLS += target sources

View File

@@ -1,12 +0,0 @@
QT += qml quick multimedia
SOURCES += main.cpp
RESOURCES += declarative-radio.qrc
OTHER_FILES += view.qml
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/declarative-radio
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro doc view.qml
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/declarative-radio
INSTALLS += target sources

View File

@@ -1,31 +1,3 @@
TEMPLATE = subdirs
SUBDIRS += audiodecoder
# These examples all need widgets for now (using creator templates that use widgets)
!isEmpty(QT.widgets.name) {
SUBDIRS += \
radio \
camera \
spectrum \
audiorecorder \
audiodevices \
audioinput \
audiooutput \
videographicsitem \
videowidget \
player \
customvideosurface
QT += widgets
}
!isEmpty(QT.gui.name):!isEmpty(QT.qml.name) {
disabled:SUBDIRS += declarative-camera
SUBDIRS += \
declarative-radio \
video
}
config_openal: SUBDIRS += audioengine
SUBDIRS += multimedia multimediawidgets

View File

@@ -0,0 +1,17 @@
TEMPLATE = app
TARGET = audiodecoder
CONFIG += qt warn_on
HEADERS = \
audiodecoder.h \
wavefilewriter.h
SOURCES = main.cpp \
audiodecoder.cpp \
wavefilewriter.cpp
QT += multimedia
CONFIG += console
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audiodecoder
INSTALLS += target

View File

@@ -0,0 +1,16 @@
TEMPLATE = app
TARGET = audiodevices
QT += multimedia
HEADERS = audiodevices.h
SOURCES = audiodevices.cpp \
main.cpp
FORMS += audiodevicesbase.ui
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audiodevices
INSTALLS += target
QT+=widgets

View File

Before

Width:  |  Height:  |  Size: 37 KiB

After

Width:  |  Height:  |  Size: 37 KiB

View File

@@ -0,0 +1,6 @@
TEMPLATE = subdirs
# These examples contain no C++ and can simply be copied
SUBDIRS =
EXAMPLE_FILES = qml

View File

@@ -0,0 +1,12 @@
TEMPLATE = app
TARGET = audioinput
QT += multimedia widgets
HEADERS = audioinput.h
SOURCES = audioinput.cpp \
main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audioinput
INSTALLS += target

View File

Before

Width:  |  Height:  |  Size: 10 KiB

After

Width:  |  Height:  |  Size: 10 KiB

View File

@@ -0,0 +1,12 @@
TEMPLATE = app
TARGET = audiooutput
QT += multimedia widgets
HEADERS = audiooutput.h
SOURCES = audiooutput.cpp \
main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audiooutput
INSTALLS += target

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

View File

@@ -20,10 +20,7 @@ maemo*: {
FORMS += audiorecorder.ui
}
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiorecorder
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiorecorder
INSTALLS += target sources
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audiorecorder
INSTALLS += target
QT+=widgets

View File

Before

Width:  |  Height:  |  Size: 28 KiB

After

Width:  |  Height:  |  Size: 28 KiB

View File

@@ -0,0 +1,9 @@
QT += qml quick multimedia
SOURCES += main.cpp
RESOURCES += declarative-radio.qrc
EXAMPLE_FILES += view.qml
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/declarative-radio
INSTALLS += target

View File

@@ -0,0 +1,25 @@
TEMPLATE = subdirs
SUBDIRS += audiodecoder
# These examples all need widgets for now (using creator templates that use widgets)
!isEmpty(QT.widgets.name) {
SUBDIRS += \
radio \
spectrum \
audiorecorder \
audiodevices \
audioinput \
audiooutput \
QT += widgets
}
!isEmpty(QT.gui.name):!isEmpty(QT.qml.name) {
SUBDIRS += \
declarative-radio \
video
}
config_openal: SUBDIRS += audioengine

View File

@@ -0,0 +1,16 @@
TEMPLATE = app
TARGET = radio
QT += multimedia
HEADERS = \
radio.h
SOURCES = \
main.cpp \
radio.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/radio
INSTALLS += target
QT+=widgets

View File

@@ -37,11 +37,8 @@ macx {
DESTDIR = ../..$${spectrum_build_dir}
}
# Install
EXAMPLE_FILES = bwins/fftreal.def eabi/fftreal.def readme.txt license.txt
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/spectrum
sources.files = $$SOURCES $$HEADERS fftreal.pro readme.txt license.txt
sources.files += bwins/fftreal.def eabi/fftreal.def
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/spectrum/3rdparty/fftreal
INSTALLS += sources target
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/spectrum
INSTALLS += target

Some files were not shown because too many files have changed in this diff Show More