mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-18 18:38:51 +00:00
Update lib_radare2.pri
Override PREFIX= from command 'qmake PREFIX='
This commit is contained in:
parent
b4f7f1a232
commit
914b35e637
@ -36,9 +36,9 @@ win32 {
|
||||
-lr_sdb
|
||||
} else {
|
||||
macx|bsd {
|
||||
PREFIX=/usr/local
|
||||
R2PREFIX=/usr/local
|
||||
} else {
|
||||
PREFIX=/usr
|
||||
R2PREFIX=/usr
|
||||
}
|
||||
USE_PKGCONFIG = 1
|
||||
R2_USER_PKGCONFIG = $$(HOME)/bin/prefix/radare2/lib/pkgconfig
|
||||
@ -47,23 +47,23 @@ win32 {
|
||||
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2_USER_PKGCONFIG
|
||||
} else {
|
||||
unix {
|
||||
exists($$PREFIX/lib/pkgconfig/r_core.pc) {
|
||||
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$PREFIX/lib/pkgconfig
|
||||
exists($$R2PREFIX/lib/pkgconfig/r_core.pc) {
|
||||
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2PREFIX/lib/pkgconfig
|
||||
} else {
|
||||
LIBS += -L$$PREFIX/lib
|
||||
R2_INCLUDEPATH += $$PREFIX/include/libr
|
||||
LIBS += -L$$R2PREFIX/lib
|
||||
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
||||
USE_PKGCONFIG = 0
|
||||
}
|
||||
}
|
||||
macx {
|
||||
LIBS += -L$$PREFIX/lib
|
||||
R2_INCLUDEPATH += $$PREFIX/include/libr
|
||||
LIBS += -L$$R2PREFIX/lib
|
||||
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
||||
USE_PKGCONFIG = 0
|
||||
}
|
||||
bsd {
|
||||
!exists($$PKG_CONFIG_PATH/r_core.pc) {
|
||||
LIBS += -L$$PREFIX/lib
|
||||
R2_INCLUDEPATH += $$PREFIX/include/libr
|
||||
LIBS += -L$$R2PREFIX/lib
|
||||
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
||||
USE_PKGCONFIG = 0
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user