From 104066f7ea21297692adaa10eb3452a1bcb1061e Mon Sep 17 00:00:00 2001
From: Akira Ohgaki <akiraohgaki@gmail.com>
Date: Mon, 15 Aug 2016 18:16:28 +0900
Subject: [PATCH] Add qmake project files

---
 deployment.pri | 21 +++++++++++++++++++++
 rpath.pri      |  5 +++++
 xdgurl.pro     | 43 +++++++++++++++++++++++++++++++++++++++++++
 3 files changed, 69 insertions(+)
 create mode 100644 deployment.pri
 create mode 100644 rpath.pri
 create mode 100644 xdgurl.pro

diff --git a/deployment.pri b/deployment.pri
new file mode 100644
index 0000000..5e28d19
--- /dev/null
+++ b/deployment.pri
@@ -0,0 +1,21 @@
+unix:!android {
+    isEmpty(PREFIX) {
+        PREFIX = /usr/local
+    }
+
+    SRCDIR = src
+    BINDIR = $${PREFIX}/bin
+    DATADIR = $${PREFIX}/share
+
+    target.path = $${BINDIR}
+
+    desktopentry.files = $${SRCDIR}/desktop/$${TARGET}.desktop
+    desktopentry.path = $${DATADIR}/applications
+
+    icon.files = $${SRCDIR}/desktop/$${TARGET}.svg
+    icon.path = $${DATADIR}/icons/hicolor/scalable/apps
+
+    INSTALLS += target desktopentry icon
+}
+
+export(INSTALLS)
diff --git a/rpath.pri b/rpath.pri
new file mode 100644
index 0000000..b3cd65e
--- /dev/null
+++ b/rpath.pri
@@ -0,0 +1,5 @@
+unix:!android {
+    QMAKE_LFLAGS += -Wl,-rpath=\\\$\$ORIGIN
+    QMAKE_LFLAGS += -Wl,-rpath=/usr/lib/$${TARGET}
+    QMAKE_RPATH =
+}
diff --git a/xdgurl.pro b/xdgurl.pro
new file mode 100644
index 0000000..be39082
--- /dev/null
+++ b/xdgurl.pro
@@ -0,0 +1,43 @@
+TARGET = xdgurl
+
+TEMPLATE = app
+
+QT += \
+    core \
+    gui \
+    widgets \
+    qml \
+    quick \
+    svg \
+    network
+
+CONFIG += \
+    c++11
+
+SOURCES += \
+    src/main.cpp \
+    src/core/config.cpp \
+    src/core/network.cpp \
+    src/handlers/item.cpp \
+    src/utility/file.cpp \
+    src/utility/json.cpp
+
+HEADERS += \
+    src/core/config.h \
+    src/core/network.h \
+    src/handlers/item.h \
+    src/utility/file.h \
+    src/utility/json.h
+
+RESOURCES += \
+    src/qml.qrc \
+    src/configs.qrc
+
+DISTFILES += \
+    README.md
+
+# Additional RPATH
+#include(rpath.pri)
+
+# Deployment rules
+include(deployment.pri)
-- 
GitLab