diff --git a/QtIdenticon.pro b/QtIdenticon.pro index 97e23691b481632559b1d4900420df259b60bf86..0744f79f0f99f8c8c9d3d231f1b83ef841f5b07b 100644 --- a/QtIdenticon.pro +++ b/QtIdenticon.pro @@ -3,8 +3,11 @@ ###################################################################### TEMPLATE = lib -CONFIG += plugin +CONFIG += plugin c++11 TARGET = qtjdenticon +TARGET = $$qtLibraryTarget($$TARGET) +uri = im.nheko.qtjdenticon + INCLUDEPATH = includes INCLUDEPATH += . DESTDIR = plugins @@ -60,5 +63,23 @@ SOURCES += src/identicon.cpp \ src/jdenticonplugin.cpp # install -target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/jdenticon/plugins -INSTALLS += target +#target.path = $$[QT_INSTALL_EXAMPLES]/widgets/tools/jdenticon/plugins +#INSTALLS += target + +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 +unix { + installPath = $$[QT_INSTALL_QML]/$$replace(uri, \., /) + qmldir.path = $$installPath + target.path = $$installPath + INSTALLS += target qmldir +} \ No newline at end of file diff --git a/src/identiconstyle.cpp b/src/identiconstyle.cpp index b0042670c78097647500dc66d6138002b4a98be3..c38fa65c6e055bf766e675398fb3436ed29af48b 100644 --- a/src/identiconstyle.cpp +++ b/src/identiconstyle.cpp @@ -1,3 +1,5 @@ +#include <stdexcept> + #include "identiconstyle.h" IdenticonStyle::IdenticonStyle() {} diff --git a/src/rendering/colortheme.cpp b/src/rendering/colortheme.cpp index 94f18c48ce4b279272d21a509c98e8a51af85a1f..c8c46cc190d9ff12063fc8ae671bce32b15236d7 100644 --- a/src/rendering/colortheme.cpp +++ b/src/rendering/colortheme.cpp @@ -1,3 +1,5 @@ +#include <stdexcept> + #include "colortheme.h" namespace rendering { diff --git a/src/rendering/colorutils.cpp b/src/rendering/colorutils.cpp index bdb7a247ddc705d206e1d3f06d575455cb8654e6..7fbe3fcbdf803e98e75afb461937ad7aefd1b8ac 100644 --- a/src/rendering/colorutils.cpp +++ b/src/rendering/colorutils.cpp @@ -1,3 +1,5 @@ +#include <stdexcept> + #include "colorutils.h" namespace rendering {