aboutsummaryrefslogtreecommitdiffstats
path: root/examples/examples.pro
diff options
context:
space:
mode:
authorEike Ziller <eike.ziller@qt.io>2018-09-14 13:52:32 +0200
committerEike Ziller <eike.ziller@qt.io>2018-09-17 10:44:49 +0000
commita33fc09a091f73ca3cc3192dfc88218883aed1c9 (patch)
treee6368a2ed07364067934cd56a5a6038a9113e29d /examples/examples.pro
parentebbaa352fcfac361479c56192ac6cba4dcc87efb (diff)
Add "copyexamples" make target for copying all the examples to the build
And remove examples/package.py, which is basically just a zip call anyhow. Change-Id: I70ae585f9919dc3e9a6fb8bfe8feee26c4b72ab1 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Diffstat (limited to 'examples/examples.pro')
-rw-r--r--examples/examples.pro22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/examples.pro b/examples/examples.pro
new file mode 100644
index 0000000..58de286
--- /dev/null
+++ b/examples/examples.pro
@@ -0,0 +1,22 @@
+# We cannot use qtcreatordata.pri for this, because that cannot be made "on request only"
+# so we use a "no_default_install" install target instead.
+
+TEMPLATE = aux
+
+include(../plugins/pythonextensions/qtcreator.pri)
+include($$IDE_SOURCE_TREE/qtcreator.pri)
+
+inst_examples.files = \
+ macroexpander \
+ numpysetup \
+ projects \
+ requirerequests \
+ smallmenu \
+ transform
+
+inst_examples.path = $$IDE_PLUGIN_PATH/python
+inst_examples.CONFIG += no_default_install directory
+INSTALLS += inst_examples
+
+copyexamples.depends += install_inst_examples
+QMAKE_EXTRA_TARGETS += copyexamples