mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-05 21:04:14 -04:00
Create retroshare.pri for common configurations in .pro files
So far it only contains the default values for installation paths
This commit is contained in:
parent
c844d37ada
commit
e135e3441c
9 changed files with 22 additions and 18 deletions
|
@ -1,3 +1,5 @@
|
||||||
|
!include("retroshare.pri"): error("Could not include file retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = subdirs
|
TEMPLATE = subdirs
|
||||||
|
|
||||||
SUBDIRS += \
|
SUBDIRS += \
|
||||||
|
@ -32,11 +34,6 @@ plugins.file = plugins/plugins.pro
|
||||||
plugins.depends = retroshare_gui
|
plugins.depends = retroshare_gui
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) { PREFIX = /usr }
|
|
||||||
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare06" }
|
|
||||||
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
|
||||||
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
|
||||||
|
|
||||||
icon_files.path = "$${PREFIX}/share/icons/hicolor"
|
icon_files.path = "$${PREFIX}/share/icons/hicolor"
|
||||||
icon_files.files = data/24x24
|
icon_files.files = data/24x24
|
||||||
icon_files.files += data/48x48
|
icon_files.files += data/48x48
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG += staticlib bitdht
|
CONFIG += staticlib bitdht
|
||||||
CONFIG -= qt
|
CONFIG -= qt
|
||||||
|
@ -168,11 +170,6 @@ linux-* {
|
||||||
}
|
}
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) { PREFIX = /usr }
|
|
||||||
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare06" }
|
|
||||||
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
|
||||||
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
|
||||||
|
|
||||||
DEFINES *= LIB_DIR=\"\\\"$${LIB_DIR}\\\"\"
|
DEFINES *= LIB_DIR=\"\\\"$${LIB_DIR}\\\"\"
|
||||||
DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
|
DEFINES *= DATA_DIR=\"\\\"$${DATA_DIR}\\\"\"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
win32 {
|
win32 {
|
||||||
CONFIG += staticlib
|
CONFIG += staticlib
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = lib
|
TEMPLATE = lib
|
||||||
CONFIG *= plugin
|
CONFIG *= plugin
|
||||||
|
|
||||||
|
@ -5,9 +7,6 @@ DEPENDPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
||||||
INCLUDEPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
INCLUDEPATH += ../../libretroshare/src/ ../../retroshare-gui/src/
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) { PREFIX = /usr }
|
|
||||||
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
|
||||||
|
|
||||||
target.path = "$${LIB_DIR}/retroshare/extensions6"
|
target.path = "$${LIB_DIR}/retroshare/extensions6"
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
QT += network xml script
|
QT += network xml script
|
||||||
CONFIG += qt gui uic qrc resources idle bitdht
|
CONFIG += qt gui uic qrc resources idle bitdht
|
||||||
|
|
||||||
|
@ -110,9 +112,6 @@ linux-* {
|
||||||
}
|
}
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) { PREFIX = /usr }
|
|
||||||
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
|
||||||
|
|
||||||
target.path = "$${PREFIX}/bin"
|
target.path = "$${PREFIX}/bin"
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
!include("../../retroshare.pri"): error("Could not include file ../../retroshare.pri")
|
||||||
|
|
||||||
TEMPLATE = app
|
TEMPLATE = app
|
||||||
TARGET = RetroShare06-nogui
|
TARGET = RetroShare06-nogui
|
||||||
CONFIG += bitdht
|
CONFIG += bitdht
|
||||||
|
@ -56,8 +58,6 @@ linux-* {
|
||||||
}
|
}
|
||||||
|
|
||||||
unix {
|
unix {
|
||||||
isEmpty(PREFIX) { PREFIX = /usr }
|
|
||||||
|
|
||||||
target.path = "$${PREFIX}/bin"
|
target.path = "$${PREFIX}/bin"
|
||||||
INSTALLS += target
|
INSTALLS += target
|
||||||
}
|
}
|
||||||
|
|
6
retroshare.pri
Normal file
6
retroshare.pri
Normal file
|
@ -0,0 +1,6 @@
|
||||||
|
unix {
|
||||||
|
isEmpty(PREFIX) { PREFIX = "/usr" }
|
||||||
|
isEmpty(INC_DIR) { INC_DIR = "$${PREFIX}/include/retroshare06" }
|
||||||
|
isEmpty(LIB_DIR) { LIB_DIR = "$${PREFIX}/lib" }
|
||||||
|
isEmpty(DATA_DIR) { DATA_DIR = "$${PREFIX}/share/RetroShare06" }
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue