centralize and fixup example sources install targets

it's confusing for the users if the examples' project files contain code
to install their own sources. also, this constitutes an enormous code
duplication, and lots of mistakes. consequently, automate it.

more or less as a side effect, this also removes the entirely meaningless
target installs in subdirs projects.

Task-number: QTBUG-28184
Change-Id: I9fc1367a06db9e2c46aeb67d68729a4f67163ef9
Reviewed-by: hjk <qthjk@ovi.com>
This commit is contained in:
Oswald Buddenhagen 2012-11-27 20:40:16 +01:00 committed by The Qt Project
parent 12dcab77a7
commit aeb036ed87
306 changed files with 367 additions and 1050 deletions

View File

@ -9,8 +9,6 @@ DBUS_INTERFACES += org.example.chat.xml
# install
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/chat
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.xml
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/dbus-chat
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -5,8 +5,6 @@ HEADERS += complexping.h ping-common.h
SOURCES += complexping.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -5,8 +5,6 @@ HEADERS += complexpong.h
SOURCES += complexpong.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -8,10 +8,4 @@ SUBDIRS = listnames \
remotecontrolledcar
}
# install
target.path = $$[QT_INSTALL_EXAMPLES]/dbus
sources.files = *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus
INSTALLS += sources
QT += widgets

View File

@ -5,8 +5,6 @@ win32:CONFIG += console
SOURCES += listnames.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/listnames
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/listnames
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -5,8 +5,6 @@ HEADERS += ping-common.h
SOURCES += ping.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/pingpong
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/pingpong
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -5,8 +5,6 @@ HEADERS += ping-common.h pong.h
SOURCES += pong.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/pingpong
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/pingpong
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -6,8 +6,6 @@ SOURCES += car.cpp main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/remotecontrolledcar/car
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro *.xml
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/remotecontrolledcar/car
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -7,8 +7,6 @@ SOURCES += main.cpp controller.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/remotecontrolledcar/controller
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.xml
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/remotecontrolledcar/controller
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -2,9 +2,4 @@ TEMPLATE = subdirs
SUBDIRS = car \
controller
# install
sources.files = *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/remotecontrolledcar
INSTALLS += sources
QT += widgets

View File

@ -3,6 +3,4 @@ QT += widgets
SOURCES = digiflip.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/digiflip
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded/digiflip
INSTALLS += target sources
INSTALLS += target

View File

@ -4,9 +4,4 @@ SUBDIRS = styleexample raycasting flickable digiflip
SUBDIRS += lightmaps
SUBDIRS += flightinfo
# install
sources.files = README *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded
INSTALLS += sources
QT += widgets widgets

View File

@ -2,7 +2,5 @@ SOURCES = flickable.cpp main.cpp
HEADERS = flickable.h
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/flickable
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded/flickable
INSTALLS += target sources
INSTALLS += target
QT += widgets widgets

View File

@ -6,6 +6,4 @@ RESOURCES = flightinfo.qrc
QT += network widgets
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/flightinfo
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded/flightinfo
INSTALLS += target sources
INSTALLS += target

View File

@ -9,6 +9,4 @@ SOURCES = lightmaps.cpp \
QT += network widgets
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/lightmaps
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded/lightmaps
INSTALLS += target sources
INSTALLS += target

View File

@ -3,7 +3,5 @@ SOURCES = raycasting.cpp
RESOURCES += raycasting.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/raycasting
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded/raycasting
INSTALLS += target sources
INSTALLS += target
QT += widgets widgets

View File

@ -6,6 +6,4 @@ SOURCES += main.cpp stylewidget.cpp
RESOURCES += styleexample.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/embedded/styleexample
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.html
sources.path = $$[QT_INSTALL_EXAMPLES]/embedded/styleexample
INSTALLS += target sources
INSTALLS += target

View File

@ -24,8 +24,3 @@ contains(QT_BUILD_PARTS, tools):!contains(QT_CONFIG, no-gui):!contains(QT_CONFIG
contains(QT_CONFIG, opengl):!contains(QT_CONFIG, no-widgets):SUBDIRS += opengl
contains(QT_CONFIG, dbus): SUBDIRS += dbus
contains(QT_CONFIG, concurrent): SUBDIRS += qtconcurrent
# install
sources.files = README *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]
INSTALLS += sources

View File

@ -3,9 +3,4 @@ TEMPLATE = \
SUBDIRS = \
imagegestures
# install
target.path = $$[QT_INSTALL_EXAMPLES]/gestures
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS gestures.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/gestures
INSTALLS += target sources
QT += widgets

View File

@ -6,14 +6,7 @@ SOURCES = imagewidget.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/gestures/imagegestures
sources.files = $$SOURCES \
$$HEADERS \
$$RESOURCES \
$$FORMS \
imagegestures.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/gestures/imagegestures
INSTALLS += target \
sources
INSTALLS += target
QT += widgets

View File

@ -3,9 +3,4 @@ TEMPLATE = subdirs
!vxworks:!qnx:SUBDIRS = sharedmemory
!wince*: SUBDIRS += localfortuneserver localfortuneclient
# install
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS ipc.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/ipc
INSTALLS += sources
QT += widgets

View File

@ -5,9 +5,7 @@ QT += network widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/ipc/localfortuneclient
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS localfortuneclient.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/ipc/localfortuneclient
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -5,9 +5,7 @@ QT += network widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/ipc/localfortuneserver
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS localfortuneserver.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/ipc/localfortuneserver
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -6,11 +6,11 @@ HEADERS += dialog.h
# Forms and resources
FORMS += dialog.ui
EXAMPLE_FILES = *.png
# install
target.path = $$[QT_INSTALL_EXAMPLES]/ipc/sharedmemory
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/ipc/sharedmemory
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -6,8 +6,6 @@ TRANSLATIONS = hellotr_ja.ts
# install
target.path = $$[QT_INSTALL_EXAMPLES]/linguist/hellotr
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/linguist/hellotr
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -11,9 +11,7 @@ TRANSLATIONS = arrowpad_fr.ts \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/linguist/arrowpad
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/linguist/arrowpad
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -6,9 +6,7 @@ TRANSLATIONS = hellotr_la.ts
# install
target.path = $$[QT_INSTALL_EXAMPLES]/linguist/hellotr
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/linguist/hellotr
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -3,9 +3,4 @@ SUBDIRS = arrowpad \
hellotr \
trollprint
# install
sources.files = README *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/linguist
INSTALLS += sources
QT += widgets

View File

@ -7,9 +7,7 @@ TRANSLATIONS = trollprint_pt.ts
# install
target.path = $$[QT_INSTALL_EXAMPLES]/linguist/trollprint
sources.files = $$SOURCES $$HEADERS $$TRANSLATIONS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/linguist/trollprint
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -12,6 +12,8 @@ FORMS = bearermonitor_240_320.ui \
bearermonitor_640_480.ui \
sessionwidget.ui
EXAMPLE_FILES = bearermonitor_maemo.ui sessionwidget_maemo.ui # not used
win32:!wince*:LIBS += -lws2_32
wince*:LIBS += -lws2
@ -19,6 +21,4 @@ CONFIG += console
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/bearermonitor
sources.files = $$SOURCES $$HEADERS *.ui *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/bearermonitor
INSTALLS += target sources
INSTALLS += target

View File

@ -9,7 +9,5 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/blockingfortuneclient
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS blockingfortuneclient.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/blockingfortuneclient
INSTALLS += target sources
INSTALLS += target

View File

@ -7,7 +7,5 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastreceiver
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS broadcastreceiver.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastreceiver
INSTALLS += target sources
INSTALLS += target

View File

@ -7,6 +7,4 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastsender
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS broadcastsender.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/broadcastsender
INSTALLS += target sources
INSTALLS += target

View File

@ -7,6 +7,4 @@ SOURCES += dnslookup.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/dnslookup
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/dnslookup
INSTALLS += target sources
INSTALLS += target

View File

@ -6,8 +6,6 @@ SOURCES += main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/download
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/network/download
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -7,9 +7,7 @@ SOURCES += downloadmanager.cpp main.cpp textprogressbar.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/downloadmanager
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/network/downloadmanager
INSTALLS += target sources
INSTALLS += target
OTHER_FILES += \
debian/changelog \

View File

@ -7,6 +7,4 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneclient
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fortuneclient.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneclient
INSTALLS += target sources
INSTALLS += target

View File

@ -7,6 +7,4 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneserver
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fortuneserver.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/fortuneserver
INSTALLS += target sources
INSTALLS += target

View File

@ -4,9 +4,7 @@ HEADERS = searchbox.h googlesuggest.h
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/googlesuggest
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/googlesuggest
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -8,6 +8,4 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/http
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS http.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/http
INSTALLS += target sources
INSTALLS += target

View File

@ -7,6 +7,4 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/loopback
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS loopback.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/loopback
INSTALLS += target sources
INSTALLS += target

View File

@ -7,7 +7,5 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/multicastreceiver
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS multicastreceiver.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/multicastreceiver
INSTALLS += target sources
INSTALLS += target

View File

@ -5,7 +5,5 @@ QT += network widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/multicastsender
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS multicastsender.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/multicastsender
INSTALLS += target sources
INSTALLS += target

View File

@ -14,8 +14,6 @@ QT += network widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/network-chat
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS network-chat.pro *.chat
sources.path = $$[QT_INSTALL_EXAMPLES]/network/network-chat
INSTALLS += target sources
INSTALLS += target

View File

@ -26,9 +26,3 @@ SUBDIRS = \
contains(QT_CONFIG, openssl):SUBDIRS += securesocketclient
contains(QT_CONFIG, openssl-linked):SUBDIRS += securesocketclient
}
# install
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS network.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/network
INSTALLS += sources

View File

@ -11,7 +11,5 @@ QT += network widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/securesocketclient
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.png *.jpg images
sources.path = $$[QT_INSTALL_EXAMPLES]/network/securesocketclient
INSTALLS += target sources
INSTALLS += target

View File

@ -11,8 +11,6 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/threadedfortuneserver
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS threadedfortuneserver.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/network/threadedfortuneserver
INSTALLS += target sources
INSTALLS += target

View File

@ -33,10 +33,7 @@ QT += network
# install
target.path = $$[QT_INSTALL_EXAMPLES]/network/torrent
sources.files = $$SOURCES $$HEADERS $$RESOURCES torrent.pro *.torrent
sources.files += icons forms 3rdparty
sources.path = $$[QT_INSTALL_EXAMPLES]/network/torrent
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -12,9 +12,7 @@ SOURCES = glwidget.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/2dpainting
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS 2dpainting.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/2dpainting
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -18,16 +18,10 @@ contains(QT_CONFIG, opengl) {
RESOURCES += \
shaders.qrc \
textures.qrc
OTHER_FILES += \
vshader.glsl \
fshader.glsl
}
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/cube
sources.files = $$SOURCES $$HEADERS $$RESOURCES cube.png *.glsl *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/cube
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -6,9 +6,7 @@ QT += opengl widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/framebufferobject2
sources.files = $$SOURCES $$HEADERS $$RESOURCES framebufferobject2.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/framebufferobject2
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -7,9 +7,7 @@ QT += opengl widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/grabber
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS grabber.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/grabber
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -12,9 +12,7 @@ QT += opengl widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -8,6 +8,4 @@ HEADERS += glwindow.h
RESOURCES += texture.qrc
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl_es.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es
INSTALLS += target sources
INSTALLS += target

View File

@ -13,9 +13,7 @@ RESOURCES += texture.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es2
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellogl_es2.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellogl_es2
INSTALLS += target sources
INSTALLS += target
maemo5 {
# Debian package name may not contain numbers or special characters

View File

@ -5,7 +5,5 @@ SOURCES += hellowindow.cpp main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellowindow
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS hellowindow.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/hellowindow
INSTALLS += target sources
INSTALLS += target

View File

@ -25,10 +25,6 @@ contains(QT_CONFIG, opengles1)|contains(QT_CONFIG, opengles2){
SUBDIRS += hellowindow \
paintedwindow
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS opengl.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl
INSTALLS += target sources
EXAMPLE_FILES = shared
QT += widgets

View File

@ -12,14 +12,6 @@ SOURCES = bubble.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/overpainting
sources.files = $$SOURCES \
$$HEADERS \
$$RESOURCES \
$$FORMS \
overpainting.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/overpainting
INSTALLS += target \
sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -3,6 +3,4 @@ SOURCES += paintedwindow.cpp main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/paintedwindow
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS paintedwindow.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/paintedwindow
INSTALLS += target sources
INSTALLS += target

View File

@ -8,14 +8,6 @@ QT += opengl widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/pbuffers
sources.files = $$SOURCES \
$$HEADERS \
$$RESOURCES \
pbuffers.pro \
*.png
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/pbuffers
INSTALLS += target \
sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -6,8 +6,6 @@ RESOURCES += pbuffers2.qrc
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/pbuffers2
sources.files = $$SOURCES $$HEADERS $$RESOURCES pbuffers2.pro *.png *.svg
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/pbuffers2
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -5,9 +5,7 @@ QT += opengl widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/samplebuffers
sources.files = $$SOURCES $$HEADERS samplebuffers.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/samplebuffers
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -8,9 +8,7 @@ QT += opengl widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/opengl/textures
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS textures.pro images
sources.path = $$[QT_INSTALL_EXAMPLES]/opengl/textures
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -1,8 +1,2 @@
TEMPLATE = subdirs
SUBDIRS = windows
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qpa
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qpa.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qpa
INSTALLS += target sources

View File

@ -6,6 +6,4 @@ SOURCES += window.cpp main.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qpa/windows
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS windows.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qpa/windows
INSTALLS += target sources
INSTALLS += target

View File

@ -4,9 +4,7 @@ SOURCES += main.cpp imagescaling.cpp
HEADERS += imagescaling.h
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/imagescaling
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/imagescaling
INSTALLS += target sources
INSTALLS += target
wince*: DEPLOYMENT_PLUGIN += qgif qjpeg

View File

@ -7,8 +7,6 @@ CONFIG -= app_bundle
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/map
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/map
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -4,8 +4,6 @@ CONFIG += console
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/progressdialog
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/progressdialog
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -15,9 +15,3 @@ contains(QT_CONFIG, no-widgets) {
runfunction \
wordcount
}
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qtconcurrent.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent
INSTALLS += target sources

View File

@ -5,8 +5,6 @@ CONFIG -= app_bundle
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -5,8 +5,6 @@ CONFIG -= app_bundle
SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/wordcount
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/wordcount
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example does not work on Simulator platform)

View File

@ -1,8 +1,2 @@
TEMPLATE = subdirs
SUBDIRS = tutorial1 tutorial2 tutorial3 tutorial4 tutorial5
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS qtestlib.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib
INSTALLS += target sources

View File

@ -3,8 +3,6 @@ QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -3,8 +3,6 @@ QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial2
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial2
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -3,8 +3,6 @@ QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial3
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial3
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -3,8 +3,6 @@ QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial4
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial4
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -3,8 +3,6 @@ QT += testlib
# install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial5
sources.files = $$SOURCES *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial5
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -9,9 +9,7 @@ FORMS = bookwindow.ui
QT += sql widgets widgets
target.path = $$[QT_INSTALL_EXAMPLES]/sql/books
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro images
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/books
INSTALLS += target sources
INSTALLS += target
wince*: {

View File

@ -6,7 +6,5 @@ QT += sql widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/cachedtable
sources.files = $$SOURCES *.h $$RESOURCES $$FORMS cachedtable.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/cachedtable
INSTALLS += target sources
INSTALLS += target

View File

@ -11,6 +11,4 @@ QT += sql widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/drilldown
sources.files = $$SOURCES *.h $$RESOURCES $$FORMS drilldown.pro *.png *.jpg images
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/drilldown
INSTALLS += target sources
INSTALLS += target

View File

@ -9,8 +9,8 @@ SOURCES = dialog.cpp \
QT += sql widgets
QT += xml widgets
EXAMPLE_FILES = albumdetails.xml
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/masterdetail
sources.files = $$SOURCES *.h $$RESOURCES $$FORMS masterdetail.pro *.xml images
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/masterdetail
INSTALLS += target sources
INSTALLS += target

View File

@ -8,7 +8,5 @@ QT += sql widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/querymodel
sources.files = $$SOURCES *.h $$RESOURCES $$FORMS querymodel.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/querymodel
INSTALLS += target sources
INSTALLS += target

View File

@ -4,7 +4,5 @@ QT += sql widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/relationaltablemodel
sources.files = $$SOURCES *.h $$RESOURCES $$FORMS relationaltablemodel.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/relationaltablemodel
INSTALLS += target sources
INSTALLS += target

View File

@ -18,7 +18,5 @@ SUBDIRS = books \
}
}
# install
sources.files = connection.h sql.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/sql
INSTALLS += sources
EXAMPLE_FILES = connection.h

View File

@ -14,9 +14,7 @@ build_all:!build_pass {
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/sqlbrowser
sources.files = $$SOURCES $$HEADERS $$FORMS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/sqlbrowser
INSTALLS += target sources
INSTALLS += target
wince*: {

View File

@ -5,9 +5,7 @@ QT += sql widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/sqlwidgetmapper
sources.files = $$SOURCES $$HEADERS *.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/sqlwidgetmapper
INSTALLS += target sources
INSTALLS += target
wince*: DEPLOYMENT_PLUGIN += qsqlite

View File

@ -4,7 +4,5 @@ QT += sql widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/sql/tablemodel
sources.files = $$SOURCES *.h $$RESOURCES $$FORMS tablemodel.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/sql/tablemodel
INSTALLS += target sources
INSTALLS += target

View File

@ -8,8 +8,6 @@ unix:!mac:!vxworks:!integrity:LIBS += -lm
# install
target.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mandelbrot.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -9,8 +9,6 @@ QT += widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS mandelbrot.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/threads/mandelbrot
INSTALLS += target sources
INSTALLS += target

View File

@ -6,9 +6,7 @@ CONFIG += console
# install
target.path = $$[QT_INSTALL_EXAMPLES]/threads/semaphores
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS semaphores.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/threads/semaphores
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -3,9 +3,3 @@ SUBDIRS = semaphores \
waitconditions
!contains(QT_CONFIG, no-widgets):SUBDIRS += mandelbrot
# install
target.path = $$[QT_INSTALL_EXAMPLES]/threads
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS threads.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/threads
INSTALLS += target sources

View File

@ -6,8 +6,6 @@ SOURCES += waitconditions.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/threads/waitconditions
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS waitconditions.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/threads/waitconditions
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -4,9 +4,7 @@ SOURCES = randomlistmodel.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/contiguouscache
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS contiguouscache.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/tools/contiguouscache
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -5,9 +5,7 @@ QT += widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS customcompleter.pro resources
sources.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -7,9 +7,7 @@ QT += widgets
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS customcompleter.pro resources
sources.path = $$[QT_INSTALL_EXAMPLES]/tools/customcompleter
INSTALLS += target sources
INSTALLS += target
simulator: warning(This example might not fully work on Simulator platform)

View File

@ -3,9 +3,3 @@ CONFIG += ordered
SUBDIRS = contiguouscache \
customtype \
customtypesending
# install
target.path = $$[QT_INSTALL_EXAMPLES]/tools
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS tools.pro README
sources.path = $$[QT_INSTALL_EXAMPLES]/tools
INSTALLS += target sources

View File

@ -3,9 +3,7 @@ FORMS += dials.ui
# install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/dials
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS dials.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/touch/dials
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -6,9 +6,7 @@ SOURCES = main.cpp \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/fingerpaint
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS fingerpaint.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/touch/fingerpaint
INSTALLS += target sources
INSTALLS += target
QT += widgets
!isEmpty(QT.printsupport.name): QT += printsupport

View File

@ -3,9 +3,7 @@ SOURCES = main.cpp knob.cpp
# install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/knobs
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS knobs.pro
sources.path = $$[QT_INSTALL_EXAMPLES]/touch/knobs
INSTALLS += target sources
INSTALLS += target
QT += widgets

View File

@ -11,9 +11,7 @@ RESOURCES += \
# install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/pinchzoom
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS pinchzoom.pro images
sources.path = $$[QT_INSTALL_EXAMPLES]/touch/pinchzoom
INSTALLS += target sources
INSTALLS += target
QT += widgets

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