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
|
-lr_sdb
|
||||||
} else {
|
} else {
|
||||||
macx|bsd {
|
macx|bsd {
|
||||||
PREFIX=/usr/local
|
R2PREFIX=/usr/local
|
||||||
} else {
|
} else {
|
||||||
PREFIX=/usr
|
R2PREFIX=/usr
|
||||||
}
|
}
|
||||||
USE_PKGCONFIG = 1
|
USE_PKGCONFIG = 1
|
||||||
R2_USER_PKGCONFIG = $$(HOME)/bin/prefix/radare2/lib/pkgconfig
|
R2_USER_PKGCONFIG = $$(HOME)/bin/prefix/radare2/lib/pkgconfig
|
||||||
@ -47,23 +47,23 @@ win32 {
|
|||||||
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2_USER_PKGCONFIG
|
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2_USER_PKGCONFIG
|
||||||
} else {
|
} else {
|
||||||
unix {
|
unix {
|
||||||
exists($$PREFIX/lib/pkgconfig/r_core.pc) {
|
exists($$R2PREFIX/lib/pkgconfig/r_core.pc) {
|
||||||
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$PREFIX/lib/pkgconfig
|
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2PREFIX/lib/pkgconfig
|
||||||
} else {
|
} else {
|
||||||
LIBS += -L$$PREFIX/lib
|
LIBS += -L$$R2PREFIX/lib
|
||||||
R2_INCLUDEPATH += $$PREFIX/include/libr
|
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
||||||
USE_PKGCONFIG = 0
|
USE_PKGCONFIG = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
macx {
|
macx {
|
||||||
LIBS += -L$$PREFIX/lib
|
LIBS += -L$$R2PREFIX/lib
|
||||||
R2_INCLUDEPATH += $$PREFIX/include/libr
|
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
||||||
USE_PKGCONFIG = 0
|
USE_PKGCONFIG = 0
|
||||||
}
|
}
|
||||||
bsd {
|
bsd {
|
||||||
!exists($$PKG_CONFIG_PATH/r_core.pc) {
|
!exists($$PKG_CONFIG_PATH/r_core.pc) {
|
||||||
LIBS += -L$$PREFIX/lib
|
LIBS += -L$$R2PREFIX/lib
|
||||||
R2_INCLUDEPATH += $$PREFIX/include/libr
|
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
||||||
USE_PKGCONFIG = 0
|
USE_PKGCONFIG = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user