2017-04-06 08:29:36 +00:00
|
|
|
win32 {
|
|
|
|
DEFINES += _CRT_NONSTDC_NO_DEPRECATE
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
2017-04-20 16:47:50 +00:00
|
|
|
!contains(QT_ARCH, x86_64) {
|
2018-11-10 12:10:26 +00:00
|
|
|
LIBS += -L"$$PWD/../r2_dist_x86/radare2/lib"
|
2019-02-11 20:26:11 +00:00
|
|
|
R2_INCLUDEPATH += "$$PWD/../r2_dist_x86/include"
|
2017-04-06 08:29:36 +00:00
|
|
|
} else {
|
2018-11-10 12:10:26 +00:00
|
|
|
LIBS += -L"$$PWD/../r2_dist_x64/radare2/lib"
|
2019-02-11 20:26:11 +00:00
|
|
|
R2_INCLUDEPATH += "$$PWD/../r2_dist_x64/include"
|
2017-04-06 08:29:36 +00:00
|
|
|
}
|
2019-02-11 20:26:11 +00:00
|
|
|
INCLUDEPATH += $$R2_INCLUDEPATH
|
2017-04-06 08:29:36 +00:00
|
|
|
|
2017-04-20 16:44:39 +00:00
|
|
|
LIBS += \
|
|
|
|
-lr_core \
|
|
|
|
-lr_config \
|
|
|
|
-lr_cons \
|
|
|
|
-lr_io \
|
|
|
|
-lr_util \
|
|
|
|
-lr_flag \
|
|
|
|
-lr_asm \
|
|
|
|
-lr_debug \
|
|
|
|
-lr_hash \
|
|
|
|
-lr_bin \
|
|
|
|
-lr_lang \
|
|
|
|
-lr_anal \
|
|
|
|
-lr_parse \
|
|
|
|
-lr_bp \
|
|
|
|
-lr_egg \
|
|
|
|
-lr_reg \
|
|
|
|
-lr_search \
|
|
|
|
-lr_syscall \
|
|
|
|
-lr_socket \
|
|
|
|
-lr_fs \
|
|
|
|
-lr_magic \
|
2019-09-25 12:36:30 +00:00
|
|
|
-lr_crypto
|
2017-04-20 16:44:39 +00:00
|
|
|
} else {
|
2018-12-13 12:23:03 +00:00
|
|
|
macx|bsd {
|
2019-07-18 20:25:21 +00:00
|
|
|
R2PREFIX=/usr/local
|
2018-06-19 14:16:22 +00:00
|
|
|
} else {
|
2019-07-18 20:25:21 +00:00
|
|
|
R2PREFIX=/usr
|
2018-06-19 14:16:22 +00:00
|
|
|
}
|
2017-08-31 17:51:45 +00:00
|
|
|
USE_PKGCONFIG = 1
|
2017-04-20 16:44:39 +00:00
|
|
|
R2_USER_PKGCONFIG = $$(HOME)/bin/prefix/radare2/lib/pkgconfig
|
|
|
|
exists($$R2_USER_PKGCONFIG) {
|
|
|
|
# caution: may not work for cross compilations
|
2018-06-19 14:16:22 +00:00
|
|
|
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2_USER_PKGCONFIG
|
2017-08-31 17:51:45 +00:00
|
|
|
} else {
|
2018-06-19 14:16:22 +00:00
|
|
|
unix {
|
2019-07-18 20:25:21 +00:00
|
|
|
exists($$R2PREFIX/lib/pkgconfig/r_core.pc) {
|
|
|
|
PKG_CONFIG_PATH=$$PKG_CONFIG_PATH:$$R2PREFIX/lib/pkgconfig
|
2018-06-19 14:16:22 +00:00
|
|
|
} else {
|
2019-07-18 20:25:21 +00:00
|
|
|
LIBS += -L$$R2PREFIX/lib
|
|
|
|
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
2018-06-19 14:16:22 +00:00
|
|
|
USE_PKGCONFIG = 0
|
2018-12-13 12:23:03 +00:00
|
|
|
}
|
2018-06-19 14:16:22 +00:00
|
|
|
}
|
|
|
|
macx {
|
2019-07-18 20:25:21 +00:00
|
|
|
LIBS += -L$$R2PREFIX/lib
|
|
|
|
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
2017-08-31 17:51:45 +00:00
|
|
|
USE_PKGCONFIG = 0
|
|
|
|
}
|
2018-12-13 12:23:03 +00:00
|
|
|
bsd {
|
|
|
|
!exists($$PKG_CONFIG_PATH/r_core.pc) {
|
2019-07-18 20:25:21 +00:00
|
|
|
LIBS += -L$$R2PREFIX/lib
|
|
|
|
R2_INCLUDEPATH += $$R2PREFIX/include/libr
|
2018-12-13 12:23:03 +00:00
|
|
|
USE_PKGCONFIG = 0
|
|
|
|
}
|
|
|
|
}
|
2017-04-06 08:29:36 +00:00
|
|
|
}
|
2019-02-11 20:26:11 +00:00
|
|
|
INCLUDEPATH += $$R2_INCLUDEPATH
|
2017-04-06 08:29:36 +00:00
|
|
|
|
2017-08-31 17:51:45 +00:00
|
|
|
DEFINES += _CRT_NONSTDC_NO_DEPRECATE
|
|
|
|
DEFINES += _CRT_SECURE_NO_WARNINGS
|
2017-09-01 08:45:09 +00:00
|
|
|
equals(USE_PKGCONFIG, 1) {
|
2017-08-31 17:51:45 +00:00
|
|
|
CONFIG += link_pkgconfig
|
|
|
|
PKGCONFIG += r_core
|
2019-02-11 20:26:11 +00:00
|
|
|
R2_INCLUDEPATH = "$$system("pkg-config --variable=includedir r_core")/libr"
|
2017-08-31 17:51:45 +00:00
|
|
|
} else {
|
|
|
|
LIBS += \
|
|
|
|
-lr_core \
|
|
|
|
-lr_config \
|
|
|
|
-lr_cons \
|
|
|
|
-lr_io \
|
|
|
|
-lr_flag \
|
|
|
|
-lr_asm \
|
|
|
|
-lr_debug \
|
|
|
|
-lr_hash \
|
|
|
|
-lr_bin \
|
|
|
|
-lr_lang \
|
|
|
|
-lr_parse \
|
|
|
|
-lr_bp \
|
|
|
|
-lr_egg \
|
|
|
|
-lr_reg \
|
|
|
|
-lr_search \
|
|
|
|
-lr_syscall \
|
|
|
|
-lr_socket \
|
|
|
|
-lr_fs \
|
|
|
|
-lr_anal \
|
|
|
|
-lr_magic \
|
|
|
|
-lr_util \
|
|
|
|
-lr_crypto
|
|
|
|
}
|
2019-03-24 09:39:54 +00:00
|
|
|
}
|