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>
@@ -1 +1,2 @@
|
|||||||
load(qt_build_config)
|
load(qt_build_config)
|
||||||
|
CONFIG += qt_example_installs
|
||||||
|
|||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -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/*
|
|
||||||
|
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
@@ -1,8 +0,0 @@
|
|||||||
TEMPLATE = subdirs
|
|
||||||
|
|
||||||
SUBDIRS += customvideoitem customvideowidget
|
|
||||||
|
|
||||||
# install
|
|
||||||
sources.files = customvideosurface.pro
|
|
||||||
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/customvideosurface
|
|
||||||
INSTALLS += sources
|
|
||||||
@@ -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
|
|
||||||
@@ -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
|
|
||||||
|
|
||||||
@@ -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
|
|
||||||
@@ -1,31 +1,3 @@
|
|||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
SUBDIRS += multimedia multimediawidgets
|
||||||
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
|
|
||||||
|
|
||||||
|
|||||||
17
examples/multimedia/audiodecoder/audiodecoder.pro
Normal 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
|
||||||
16
examples/multimedia/audiodevices/audiodevices.pro
Normal 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
|
||||||
|
Before Width: | Height: | Size: 37 KiB After Width: | Height: | Size: 37 KiB |
6
examples/multimedia/audioengine/audioengine.pro
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
|
# These examples contain no C++ and can simply be copied
|
||||||
|
SUBDIRS =
|
||||||
|
EXAMPLE_FILES = qml
|
||||||
|
|
||||||
12
examples/multimedia/audioinput/audioinput.pro
Normal 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
|
||||||
|
Before Width: | Height: | Size: 10 KiB After Width: | Height: | Size: 10 KiB |
12
examples/multimedia/audiooutput/audiooutput.pro
Normal 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
|
||||||
|
Before Width: | Height: | Size: 12 KiB After Width: | Height: | Size: 12 KiB |
@@ -20,10 +20,7 @@ maemo*: {
|
|||||||
FORMS += audiorecorder.ui
|
FORMS += audiorecorder.ui
|
||||||
}
|
}
|
||||||
|
|
||||||
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiorecorder
|
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/audiorecorder
|
||||||
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
|
INSTALLS += target
|
||||||
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/audiorecorder
|
|
||||||
|
|
||||||
INSTALLS += target sources
|
|
||||||
|
|
||||||
QT+=widgets
|
QT+=widgets
|
||||||
|
Before Width: | Height: | Size: 28 KiB After Width: | Height: | Size: 28 KiB |
@@ -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
|
||||||
|
Before Width: | Height: | Size: 16 KiB After Width: | Height: | Size: 16 KiB |
25
examples/multimedia/multimedia.pro
Normal 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
|
||||||
|
|
||||||
16
examples/multimedia/radio/radio.pro
Normal 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
|
||||||
@@ -37,11 +37,8 @@ macx {
|
|||||||
DESTDIR = ../..$${spectrum_build_dir}
|
DESTDIR = ../..$${spectrum_build_dir}
|
||||||
}
|
}
|
||||||
|
|
||||||
# Install
|
EXAMPLE_FILES = bwins/fftreal.def eabi/fftreal.def readme.txt license.txt
|
||||||
|
|
||||||
target.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/spectrum
|
target.path = $$[QT_INSTALL_EXAMPLES]/multimedia/spectrum
|
||||||
sources.files = $$SOURCES $$HEADERS fftreal.pro readme.txt license.txt
|
INSTALLS += target
|
||||||
sources.files += bwins/fftreal.def eabi/fftreal.def
|
|
||||||
sources.path = $$[QT_INSTALL_EXAMPLES]/qtmultimedia/spectrum/3rdparty/fftreal
|
|
||||||
INSTALLS += sources target
|
|
||||||
|
|
||||||