2013-11-25 12:27:42 +00:00
|
|
|
TEMPLATE = lib
|
2019-09-12 15:03:52 +00:00
|
|
|
CONFIG += plugin qmltypes
|
2013-11-25 12:27:42 +00:00
|
|
|
QT += qml quick
|
|
|
|
|
2019-09-12 15:03:52 +00:00
|
|
|
QML_IMPORT_NAME = Charts
|
|
|
|
QML_IMPORT_MAJOR_VERSION = 1
|
|
|
|
|
2013-11-25 12:27:42 +00:00
|
|
|
TARGET = $$qtLibraryTarget(chartsplugin)
|
|
|
|
|
|
|
|
HEADERS += piechart.h \
|
|
|
|
pieslice.h \
|
|
|
|
chartsplugin.h
|
|
|
|
|
|
|
|
SOURCES += piechart.cpp \
|
2019-09-12 15:03:52 +00:00
|
|
|
pieslice.cpp
|
|
|
|
|
|
|
|
DESTPATH=$$[QT_INSTALL_EXAMPLES]/qml/tutorials/extending-qml/chapter6-plugins/$$QML_IMPORT_NAME
|
2013-11-25 12:27:42 +00:00
|
|
|
|
|
|
|
target.path=$$DESTPATH
|
|
|
|
qmldir.files=$$PWD/qmldir
|
|
|
|
qmldir.path=$$DESTPATH
|
|
|
|
INSTALLS += target qmldir
|
|
|
|
|
2016-04-21 14:49:12 +00:00
|
|
|
CONFIG += install_ok # Do not cargo-cult this!
|
|
|
|
|
2013-11-25 12:27:42 +00:00
|
|
|
OTHER_FILES += qmldir
|
|
|
|
|
|
|
|
# Copy the qmldir file to the same folder as the plugin binary
|
2016-04-22 18:47:58 +00:00
|
|
|
cpqmldir.files = qmldir
|
2021-08-25 12:54:19 +00:00
|
|
|
cpqmldir.path = .
|
2016-04-22 18:47:58 +00:00
|
|
|
COPIES += cpqmldir
|