Skip to content

Commit

Permalink
respect installation PREFIX
Browse files Browse the repository at this point in the history
  • Loading branch information
dmgk committed Jul 4, 2016
1 parent c1fa4b7 commit 0a3a07f
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 5 deletions.
7 changes: 7 additions & 0 deletions liteidex/liteidex.pri
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,13 @@ DEFINES += LITEAPP_LIBRARY

DEFINES += IDE_LIBRARY_BASENAME=\\\"$$IDE_LIBRARY_BASENAME\\\"

isEmpty(PREFIX) {
PREFIX = /usr/local
}
BINPREFIX = $$PREFIX/bin
LIBPREFIX = $$PREFIX/lib/liteide
PLUGINPREFIX = $$PREFIX/lib/liteide/plugins

IDE_APP_TARGET = liteide
IDE_SOURCE_TREE = $$PWD
IDE_BUILD_TREE = $$IDE_SOURCE_TREE/liteide
Expand Down
2 changes: 1 addition & 1 deletion liteidex/src/liteapp/liteapp.pro
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ contains(DEFINES, LITEAPP_LIBRARY) {
ICON = images/liteide.icns
QMAKE_INFO_PLIST = Info.plist
} else {
target.path = /bin
target.path = $$LIBPREFIX
INSTALLS += target
}
}
2 changes: 1 addition & 1 deletion liteidex/src/liteide/liteide.pro
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,6 @@ win32 {
ICON = liteide.icns
QMAKE_INFO_PLIST = Info.plist
} else {
target.path = /bin
target.path = $$BINPREFIX
INSTALLS += target
}
2 changes: 1 addition & 1 deletion liteidex/src/liteideapi.pri
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ isEmpty(TARGET) {
contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols

!macx {
target.path = /lib
target.path = $$LIBPREFIX
INSTALLS += target
}

Expand Down
2 changes: 1 addition & 1 deletion liteidex/src/liteideplugin.pri
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols
CONFIG += plugin plugin_with_soname

!macx {
target.path = /plugins
target.path = $$PLUGINPREFIX
INSTALLS += target
}

Expand Down
2 changes: 1 addition & 1 deletion liteidex/src/liteideutils.pri
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ isEmpty(TARGET) {
contains(QT_CONFIG, reduce_exports):CONFIG += hide_symbols

!macx {
target.path = /lib
target.path = $$LIBPREFIX
INSTALLS += target
}

Expand Down

0 comments on commit 0a3a07f

Please sign in to comment.