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 # install
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/chat target.path = $$[QT_INSTALL_EXAMPLES]/dbus/chat
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.xml INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/dbus-chat
INSTALLS += target sources
simulator: warning(This example does not work on Simulator platform) 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 SOURCES += complexping.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong target.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong
sources.files = $$SOURCES $$HEADERS $$RESOURCES *.pro INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/dbus/complexpingpong
INSTALLS += target sources
simulator: warning(This example does not work on Simulator platform) simulator: warning(This example does not work on Simulator platform)

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

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, opengl):!contains(QT_CONFIG, no-widgets):SUBDIRS += opengl
contains(QT_CONFIG, dbus): SUBDIRS += dbus contains(QT_CONFIG, dbus): SUBDIRS += dbus
contains(QT_CONFIG, concurrent): SUBDIRS += qtconcurrent 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 = \ SUBDIRS = \
imagegestures 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 QT += widgets

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -6,8 +6,6 @@ SOURCES += main.cpp
# install # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/download target.path = $$[QT_INSTALL_EXAMPLES]/network/download
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/network/download
INSTALLS += target sources
simulator: warning(This example might not fully work on Simulator platform) 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 # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/downloadmanager target.path = $$[QT_INSTALL_EXAMPLES]/network/downloadmanager
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/network/downloadmanager
INSTALLS += target sources
OTHER_FILES += \ OTHER_FILES += \
debian/changelog \ debian/changelog \

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -26,9 +26,3 @@ SUBDIRS = \
contains(QT_CONFIG, openssl):SUBDIRS += securesocketclient contains(QT_CONFIG, openssl):SUBDIRS += securesocketclient
contains(QT_CONFIG, openssl-linked):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 # install
target.path = $$[QT_INSTALL_EXAMPLES]/network/securesocketclient target.path = $$[QT_INSTALL_EXAMPLES]/network/securesocketclient
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS *.pro *.png *.jpg images INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/network/securesocketclient
INSTALLS += target sources

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -15,9 +15,3 @@ contains(QT_CONFIG, no-widgets) {
runfunction \ runfunction \
wordcount 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 SOURCES += main.cpp
target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction target.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction
sources.files = $$SOURCES $$HEADERS $$FORMS $$RESOURCES *.pro *.png INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/qtconcurrent/runfunction
INSTALLS += target sources
simulator: warning(This example does not work on Simulator platform) simulator: warning(This example does not work on Simulator platform)

View File

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

View File

@ -1,8 +1,2 @@
TEMPLATE = subdirs TEMPLATE = subdirs
SUBDIRS = tutorial1 tutorial2 tutorial3 tutorial4 tutorial5 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 # install
target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1 target.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1
sources.files = $$SOURCES *.pro INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/qtestlib/tutorial1
INSTALLS += target sources
QT += widgets QT += widgets

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -3,9 +3,3 @@ SUBDIRS = semaphores \
waitconditions waitconditions
!contains(QT_CONFIG, no-widgets):SUBDIRS += mandelbrot !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 # install
target.path = $$[QT_INSTALL_EXAMPLES]/threads/waitconditions target.path = $$[QT_INSTALL_EXAMPLES]/threads/waitconditions
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS waitconditions.pro INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/threads/waitconditions
INSTALLS += target sources
simulator: warning(This example might not fully work on Simulator platform) simulator: warning(This example might not fully work on Simulator platform)

View File

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

View File

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

View File

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

View File

@ -3,9 +3,3 @@ CONFIG += ordered
SUBDIRS = contiguouscache \ SUBDIRS = contiguouscache \
customtype \ customtype \
customtypesending 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 # install
target.path = $$[QT_INSTALL_EXAMPLES]/touch/dials target.path = $$[QT_INSTALL_EXAMPLES]/touch/dials
sources.files = $$SOURCES $$HEADERS $$RESOURCES $$FORMS dials.pro INSTALLS += target
sources.path = $$[QT_INSTALL_EXAMPLES]/touch/dials
INSTALLS += target sources
QT += widgets QT += widgets

View File

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

View File

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

View File

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

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