Commit a6065d60 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen Committed by The Qt Project
Browse files

centralize and fixup example sources install targets


follow respective change in qtbase

Change-Id: I27502eb7ebea973e19ec5f7c3ec0e2338556f6e0
Reviewed-by: default avatarOswald Buddenhagen <oswald.buddenhagen@digia.com>
Reviewed-by: default avatarAlan Alpert (Personal) <416365416c@gmail.com>
parent c18e04b2
dev 5.10 5.11 5.12 5.12.1 5.12.10 5.12.11 5.12.12 5.12.2 5.12.3 5.12.4 5.12.5 5.12.6 5.12.7 5.12.8 5.12.9 5.13 5.13.0 5.13.1 5.13.2 5.14 5.14.0 5.14.1 5.14.2 5.15 5.15.0 5.15.1 5.15.2 5.3 5.4 5.5 5.6 5.7 5.8 5.9 5.9.8 6.0 6.0.0 6.1 6.1.0 6.1.1 6.1.2 6.1.3 6.2 6.2.0 6.2.1 6.2.2 old/5.0 old/5.1 old/5.2 wip/cmake wip/dbus wip/gc wip/itemviews wip/nacl wip/new-backend wip/pointerhandler wip/propertycache-refactor wip/qquickdeliveryagent wip/scenegraphng wip/tizen wip/webassembly v5.15.0-alpha1 v5.14.1 v5.14.0 v5.14.0-rc2 v5.14.0-rc1 v5.14.0-beta3 v5.14.0-beta2 v5.14.0-beta1 v5.14.0-alpha1 v5.13.2 v5.13.1 v5.13.0 v5.13.0-rc3 v5.13.0-rc2 v5.13.0-rc1 v5.13.0-beta4 v5.13.0-beta3 v5.13.0-beta2 v5.13.0-beta1 v5.13.0-alpha1 v5.12.7 v5.12.6 v5.12.5 v5.12.4 v5.12.3 v5.12.2 v5.12.1 v5.12.0 v5.12.0-rc2 v5.12.0-rc1 v5.12.0-beta4 v5.12.0-beta3 v5.12.0-beta2 v5.12.0-beta1 v5.12.0-alpha1 v5.11.3 v5.11.2 v5.11.1 v5.11.0 v5.11.0-rc2 v5.11.0-rc1 v5.11.0-beta4 v5.11.0-beta3 v5.11.0-beta2 v5.11.0-beta1 v5.11.0-alpha1 v5.10.1 v5.10.0 v5.10.0-rc3 v5.10.0-rc2 v5.10.0-rc1 v5.10.0-beta4 v5.10.0-beta3 v5.10.0-beta2 v5.10.0-beta1 v5.10.0-alpha1 v5.9.9 v5.9.8 v5.9.7 v5.9.6 v5.9.5 v5.9.4 v5.9.3 v5.9.2 v5.9.1 v5.9.0 v5.9.0-rc2 v5.9.0-rc1 v5.9.0-beta4 v5.9.0-beta3 v5.9.0-beta2 v5.9.0-beta1 v5.9.0-alpha1 v5.8.0 v5.8.0-rc1 v5.8.0-beta1 v5.8.0-alpha1 v5.7.1 v5.7.0 v5.7.0-rc1 v5.7.0-beta1 v5.7.0-alpha1 v5.6.3 v5.6.2 v5.6.1 v5.6.1-1 v5.6.0 v5.6.0-rc1 v5.6.0-beta1 v5.6.0-alpha1 v5.5.1 v5.5.0 v5.5.0-rc1 v5.5.0-beta1 v5.5.0-alpha1 v5.4.2 v5.4.1 v5.4.0 v5.4.0-rc1 v5.4.0-beta1 v5.4.0-alpha1 v5.3.2 v5.3.1 v5.3.0 v5.3.0-rc1 v5.3.0-beta1 v5.3.0-alpha1 v5.2.1 v5.2.0 v5.2.0-rc1 v5.2.0-beta1 v5.2.0-alpha1 v5.1.1 v5.1.0 v5.1.0-rc2 v5.1.0-rc1 v5.1.0-beta1 v5.1.0-alpha1 v5.0.2 v5.0.1 v5.0.0 v5.0.0-rc2
No related merge requests found
Showing with 30 additions and 172 deletions
load(qt_build_config) load(qt_build_config)
CONFIG += qt_example_installs
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/calqlatr
qml.files = calqlatr.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/calqlatr
sources.files = $$SOURCES calqlatr.pro
sources.path = $$qml.path
INSTALLS += target sources qml
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/maroon
qml.files = maroon.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/maroon
sources.files = $$SOURCES maroon.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += qml quick
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/stocqt
qml.files = stocqt.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/stocqt
sources.files = $$SOURCES stocqt.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/tweetsearch
qml.files = tweetsearch.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/demos/tweetsearch
sources.files = $$SOURCES tweetsearch.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS += \ SUBDIRS += \
demos \ qmltest \
shared \
localstorage \
particles \
qml \ qml \
quick \ quick
tutorials \
window \
qmltest
# install
sources.files = shared examples.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/
INSTALLS += sources
TEMPLATE = subdirs
SUBDIRS += localstorage
# install
sources.files = localstorage.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/localstorage
INSTALLS += sources
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/localstorage/localstorage
qml.files = localstorage.qml hello.qml
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/localstorage/localstorage
sources.files = $$SOURCES localstorage.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/affectors
qml.files = affectors.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/affectors
sources.files = $$SOURCES affectors.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/customparticle
qml.files = customparticle.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/customparticle
sources.files = $$SOURCES customparticle.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/emitters
qml.files = emitters.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/emitters
sources.files = $$SOURCES emitters.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/imageparticle
qml.files = imageparticle.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/imageparticle
sources.files = $$SOURCES imageparticle.pro
sources.path = $$qml.path
INSTALLS += sources target qml
TEMPLATE = app
QT += quick qml
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/system
qml.files = system.qml content
qml.path = $$[QT_INSTALL_EXAMPLES]/qtquick/particles/system
sources.files = $$SOURCES system.pro
sources.path = $$qml.path
INSTALLS += sources target qml
...@@ -7,15 +7,9 @@ TARGET = qmlimageproviderplugin ...@@ -7,15 +7,9 @@ TARGET = qmlimageproviderplugin
SOURCES += imageprovider.cpp SOURCES += imageprovider.cpp
OTHER_FILES += imageprovider.json EXAMPLE_FILES = imageprovider-example.qml
sources.files = $$SOURCES imageprovider.qml imageprovider.pro $$OTHER_FILES target.path = $$[QT_INSTALL_EXAMPLES]/qml/imageprovider/ImageProviderCore
sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/imageprovider qml.files = ImageProviderCore/qmldir
qml.path = $$[QT_INSTALL_EXAMPLES]/qml/imageprovider/ImageProviderCore
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/imageprovider/ImageProviderCore INSTALLS = target qml
ImageProviderCore_sources.files = \
ImageProviderCore/qmldir
ImageProviderCore_sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/imageprovider/ImageProviderCore
INSTALLS = sources ImageProviderCore_sources target
...@@ -3,8 +3,5 @@ QT += qml quick network ...@@ -3,8 +3,5 @@ QT += qml quick network
SOURCES += main.cpp SOURCES += main.cpp
RESOURCES += networkaccessmanagerfactory.qrc RESOURCES += networkaccessmanagerfactory.qrc
sources.files = $$SOURCES $$RESOURCES networkaccessmanagerfactory.pro view.qml target.path = $$[QT_INSTALL_EXAMPLES]/qml/networkaccessmanagerfactory
sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/networkaccessmanagerfactory INSTALLS = target
target.path = $$sources.path
INSTALLS = sources target
...@@ -7,7 +7,7 @@ TARGET = qmlqtimeexampleplugin ...@@ -7,7 +7,7 @@ TARGET = qmlqtimeexampleplugin
SOURCES += plugin.cpp SOURCES += plugin.cpp
qdeclarativesources.files += \ pluginfiles.files += \
imports/TimeExample/qmldir \ imports/TimeExample/qmldir \
imports/TimeExample/center.png \ imports/TimeExample/center.png \
imports/TimeExample/clock.png \ imports/TimeExample/clock.png \
...@@ -15,11 +15,10 @@ qdeclarativesources.files += \ ...@@ -15,11 +15,10 @@ qdeclarativesources.files += \
imports/TimeExample/hour.png \ imports/TimeExample/hour.png \
imports/TimeExample/minute.png imports/TimeExample/minute.png
qdeclarativesources.path += $$[QT_INSTALL_EXAMPLES]/qtquick/qml/plugins/imports/TimeExample qml.files = plugins.qml
qml.path += $$[QT_INSTALL_EXAMPLES]/qml/plugins
target.path += $$[QT_INSTALL_EXAMPLES]/qml/plugins/imports/TimeExample
pluginfiles.path += $$[QT_INSTALL_EXAMPLES]/qml/plugins/imports/TimeExample
sources.files += plugins.pro plugin.cpp plugins.qml INSTALLS += target qml pluginfiles
sources.path += $$[QT_INSTALL_EXAMPLES]/qtquick/qml/plugins
target.path += $$[QT_INSTALL_EXAMPLES]/qtquick/qml/plugins/imports/TimeExample
INSTALLS += qdeclarativesources sources target
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS +=imageprovider \ SUBDIRS +=imageprovider \
plugins \
networkaccessmanagerfactory \ networkaccessmanagerfactory \
plugins \
referenceexamples \ referenceexamples \
shell shell \
xmlhttprequest
#Install EXAMPLE_FILES = \
sources.files = qml.pro dynamicscene \
sources.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml i18n \
INSTALLS += sources locale
...@@ -5,7 +5,5 @@ SOURCES += main.cpp \ ...@@ -5,7 +5,5 @@ SOURCES += main.cpp \
HEADERS += person.h HEADERS += person.h
RESOURCES += adding.qrc RESOURCES += adding.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/referenceexamples/adding target.path = $$[QT_INSTALL_EXAMPLES]/qml/referenceexamples/adding
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS adding.pro example.qml INSTALLS += target
sources.path = $$target.path
INSTALLS += target sources
...@@ -7,7 +7,5 @@ HEADERS += person.h \ ...@@ -7,7 +7,5 @@ HEADERS += person.h \
birthdayparty.h birthdayparty.h
RESOURCES += attached.qrc RESOURCES += attached.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/referenceexamples/attached target.path = $$[QT_INSTALL_EXAMPLES]/qml/referenceexamples/attached
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS attached.pro example.qml INSTALLS += target
sources.path = $$target.path
INSTALLS += target sources
...@@ -7,9 +7,7 @@ SOURCES += main.cpp \ ...@@ -7,9 +7,7 @@ SOURCES += main.cpp \
HEADERS += person.h \ HEADERS += person.h \
birthdayparty.h \ birthdayparty.h \
happybirthdaysong.h happybirthdaysong.h
RESOURCES += binding.qrc RESOURCES += binding.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/qtquick/qml/referenceexamples/binding
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS binding.pro example.qml target.path = $$[QT_INSTALL_EXAMPLES]/qml/referenceexamples/binding
sources.path = $$target.path INSTALLS += target
INSTALLS += target sources
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment