cutter/src/lib_radare2.pri

83 lines
2.0 KiB
Plaintext
Raw Normal View History

win32 {
DEFINES += _CRT_NONSTDC_NO_DEPRECATE
DEFINES += _CRT_SECURE_NO_WARNINGS
2018-04-05 08:05:00 +00:00
INCLUDEPATH += "$$PWD/../radare2/libr/include/msvc"
!contains(QT_ARCH, x86_64) {
2018-04-05 08:05:00 +00:00
LIBS += -L"$$PWD/../r2_dist_x86/lib"
INCLUDEPATH += "$$PWD/../r2_dist_x86/include/libr"
} else {
2018-04-05 08:05:00 +00:00
LIBS += -L"$$PWD/../r2_dist_x64/lib"
INCLUDEPATH += "$$PWD/../r2_dist_x64/include/libr"
}
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 \
-lr_crypto \
2018-04-05 08:05:00 +00:00
-lr_shlr
} else {
USE_PKGCONFIG = 1
R2_USER_PKGCONFIG = $$(HOME)/bin/prefix/radare2/lib/pkgconfig
exists($$R2_USER_PKGCONFIG) {
# caution: may not work for cross compilations
QMAKE_PKG_CONFIG = PKG_CONFIG_PATH=$$R2_USER_PKGCONFIG pkg-config
} else {
exists(/usr/local/lib/pkgconfig/r_core.pc) {
QMAKE_PKG_CONFIG = PKG_CONFIG_PATH=/usr/local/lib/pkgconfig pkg-config
LIBS += -L/usr/local/lib
INCLUDEPATH += /usr/local/include/libr
USE_PKGCONFIG = 0
}
}
DEFINES += _CRT_NONSTDC_NO_DEPRECATE
DEFINES += _CRT_SECURE_NO_WARNINGS
2017-09-01 08:45:09 +00:00
equals(USE_PKGCONFIG, 1) {
CONFIG += link_pkgconfig
PKGCONFIG += r_core
} 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
}
}