mirror of
https://github.com/rizinorg/cutter.git
synced 2025-01-19 10:58:51 +00:00
Fix references to pkg-config in lib_radare2.pri for Unix (#540)
* Fix references to pkg-config in lib_radare2.pri for Unix
This commit is contained in:
parent
db76bffbe3
commit
da2c4770fc
@ -35,16 +35,29 @@ win32 {
|
|||||||
-lr_crypto \
|
-lr_crypto \
|
||||||
-lr_shlr
|
-lr_shlr
|
||||||
} else {
|
} else {
|
||||||
|
macx {
|
||||||
|
PREFIX=/usr/local
|
||||||
|
} else {
|
||||||
|
PREFIX=/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
|
||||||
exists($$R2_USER_PKGCONFIG) {
|
exists($$R2_USER_PKGCONFIG) {
|
||||||
# caution: may not work for cross compilations
|
# caution: may not work for cross compilations
|
||||||
QMAKE_PKG_CONFIG = PKG_CONFIG_PATH=$$R2_USER_PKGCONFIG pkg-config
|
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2_USER_PKGCONFIG
|
||||||
} else {
|
} else {
|
||||||
exists(/usr/local/lib/pkgconfig/r_core.pc) {
|
unix {
|
||||||
QMAKE_PKG_CONFIG = PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config
|
exists($$PREFIX/lib/pkgconfig/r_core.pc) {
|
||||||
LIBS += -L/usr/local/lib
|
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$PREFIX/lib/pkgconfig
|
||||||
INCLUDEPATH += /usr/local/include/libr
|
} else {
|
||||||
|
LIBS += -L$$PREFIX/lib
|
||||||
|
INCLUDEPATH += $$PREFIX/include/libr
|
||||||
|
USE_PKGCONFIG = 0
|
||||||
|
}
|
||||||
|
}
|
||||||
|
macx {
|
||||||
|
LIBS += -L$$PREFIX/lib
|
||||||
|
INCLUDEPATH += $$PREFIX/include/libr
|
||||||
USE_PKGCONFIG = 0
|
USE_PKGCONFIG = 0
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user