diff options
author | Juergen Ryannel <[email protected]> | 2019-05-15 15:47:56 +0200 |
---|---|---|
committer | Bramastyo Harimukti Santoso <[email protected]> | 2019-09-02 10:45:17 +0000 |
commit | 6752b5f475b266997ec9f1b65920665f466e8d5d (patch) | |
tree | e02df8ca423030fad0b8e9a1133844c1aafa8893 /src/plugin/plugin.pro | |
parent | 5f259e60542de5061a5ecec163978d4ec85ccbbe (diff) |
Change-Id: I2a0274b00f848d7eaf698ce3b68cf4f5dfd0a516
Reviewed-by: Vladimir Minenko <[email protected]>
Reviewed-by: Bramastyo Harimukti Santoso <[email protected]>
Diffstat (limited to 'src/plugin/plugin.pro')
-rw-r--r-- | src/plugin/plugin.pro | 42 |
1 files changed, 42 insertions, 0 deletions
diff --git a/src/plugin/plugin.pro b/src/plugin/plugin.pro new file mode 100644 index 0000000..ecdc836 --- /dev/null +++ b/src/plugin/plugin.pro @@ -0,0 +1,42 @@ +TEMPLATE = lib +TARGET = analytics +CONFIG += plugin + +TARGET = $$qtLibraryTarget($$TARGET) +uri = analytics + +include ( ../../qtanalytics.pri ) +include ( ../../doc/doc.pri ) +include ( plugin.pri ) +# Input +SOURCES += \ + plugin.cpp + +HEADERS += \ + plugin.h + +DISTFILES = qmldir + +!equals(_PRO_FILE_PWD_, $$OUT_PWD) { + copy_qmldir.target = $$OUT_PWD/qmldir + copy_qmldir.depends = $$_PRO_FILE_PWD_/qmldir + copy_qmldir.commands = $(COPY_FILE) \"$$replace(copy_qmldir.depends, /, $$QMAKE_DIR_SEP)\" \"$$replace(copy_qmldir.target, /, $$QMAKE_DIR_SEP)\" + QMAKE_EXTRA_TARGETS += copy_qmldir + PRE_TARGETDEPS += $$copy_qmldir.target +} + +qmldir.files = qmldir + +installPath = $$[QT_INSTALL_QML]/$$replace(uri, \\., /) +defined(ANALYTICS_DIR, var) { + installPath = $${ANALYTICS_DIR}/analytics + message( "The plugin will be installed in "$${ANALYTICS_DIR}/analytics ) +} + +qmldir.path = $$installPath +target.path = $$installPath +INSTALLS += target qmldir + +OBJECTS_DIR = .obj +MOC_DIR = .moc + |