From 8f81fadf5510e45c7cac9f5a319797740324f559 Mon Sep 17 00:00:00 2001 From: Joseph Donofry <rubberduckie3554@gmail.com> Date: Mon, 13 Sep 2021 19:36:30 -0400 Subject: [PATCH] Include stdexcept and update .pro file --- QtIdenticon.pro | 27 ++++++++++++++++++++++++--- src/identiconstyle.cpp | 2 ++ src/rendering/colortheme.cpp | 2 ++ src/rendering/colorutils.cpp | 2 ++ 4 files changed, 30 insertions(+), 3 deletions(-) diff --git a/QtIdenticon.pro b/QtIdenticon.pro index 97e2369..0744f79 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 b004267..c38fa65 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 94f18c4..c8c46cc 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 bdb7a24..7fbe3fc 100644 --- a/src/rendering/colorutils.cpp +++ b/src/rendering/colorutils.cpp @@ -1,3 +1,5 @@ +#include <stdexcept> + #include "colorutils.h" namespace rendering { -- GitLab