]> Some of my projects - aniplayer.git/commitdiff
Add all the required unix install commands/paths
authorAPTX <redacted>
Sun, 26 Feb 2017 13:47:52 +0000 (14:47 +0100)
committerAPTX <redacted>
Sun, 26 Feb 2017 13:51:40 +0000 (14:51 +0100)
backendplugins/backend_mpv/backend_mpv.pro
backendplugins/backend_null/backend_null.pro
buildconfig.pri
core/core.pro

index 4cb0b3b..75ffa62 100644 (file)
@@ -1,5 +1,6 @@
 TARGET = backend_mpv
 TEMPLATE = lib
+
 include(../../core/core.pri)
 include(../backendbuildconfig.pri)
 
@@ -20,7 +21,7 @@ unix {
 }
 
 unix {
-    target.path = /usr/lib/aniplayer/backendplugins
+    target.path = $${PREFIX}/lib/aniplayer/backendplugins
     INSTALLS += target
 }
 
index 42eae60..1443ae9 100644 (file)
@@ -1,7 +1,9 @@
 TARGET = backend_null
 QT -= gui
 TEMPLATE = lib
+
 include(../../core/core.pri)
+include(../backendbuildconfig.pri)
 
 DEFINES += BACKEND_NULL_LIBRARY QT_DEPRECATED_WARNINGS
 
@@ -11,6 +13,6 @@ HEADERS += backendnull.h\
            backend_null_global.h
 
 unix {
-    target.path = /usr/lib
+    target.path = $${PREFIX}/lib/aniplayer/backendplugins
     INSTALLS += target
 }
index 7972793..72bc845 100644 (file)
@@ -4,3 +4,4 @@ CONFIG += c++14
 OBJECTS_DIR = workfiles/obj
 MOC_DIR = workfiles/moc
 RCC_DIR = workfiles/rcc
+include(config.pri)
index 5e7a100..bc605b5 100644 (file)
@@ -1,9 +1,8 @@
+TARGET = aniplayer
 TEMPLATE = app
-
 QT += widgets qml quick
-CONFIG += c++11
 
-TARGET = aniplayer
+DEFINES += BACKEND_MPV_LIBRARY QT_DEPRECATED_WARNINGS
 
 include(core.pri)
 
@@ -34,3 +33,8 @@ win32 {
     CONFIG -= embed_manifest_exe
     RC_FILE += aniplayer.rc
 }
+
+unix {
+    target.path = $${PREFIX}/bin
+    INSTALLS += target
+}