forked from hteso/iaito
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* cleanup: get the include and lib path from r2 * clean up of the main project file * check if r2 is available * corrected r2 binary name m( * qmake error if libr not found Because the project won't build if r2 or the paths are not found emit an error * removed comments and unused variable * Add 'make install' for AppImage * Use 'make install' in travis build
- Loading branch information
Showing
3 changed files
with
107 additions
and
55 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
win32 { | ||
DEFINES += _CRT_NONSTDC_NO_DEPRECATE | ||
DEFINES += _CRT_SECURE_NO_WARNINGS | ||
INCLUDEPATH += "$$PWD/../iaito_win32/include" | ||
INCLUDEPATH += "$$PWD/../iaito_win32/radare2/include/libr" | ||
!contains(QMAKE_HOST.arch, x86_64) { | ||
LIBS += -L"$$PWD/../iaito_win32/radare2/lib32" | ||
} else { | ||
LIBS += -L"$$PWD/../iaito_win32/radare2/lib64" | ||
} | ||
} else { | ||
# check if r2 is available | ||
system(r2 > /dev/null 2>&1) { | ||
|
||
# see https://github.com/hteso/iaito/pull/5#issuecomment-290433796 | ||
RADARE2_INCLUDE_PATH = $$system(r2 -H | grep INCDIR | sed 's/[^=]*=//') | ||
RADARE2_LIB_PATH = $$system(r2 -H | grep LIBDIR | sed 's/[^=]*=//') | ||
|
||
!isEmpty(RADARE2_INCLUDE_PATH) { | ||
INCLUDEPATH *= $$RADARE2_INCLUDE_PATH | ||
LIBS *= -L$$RADARE2_LIB_PATH | ||
} else { | ||
error("sorry could not find radare2 lib") | ||
} | ||
} else { | ||
error("r2 not found/in path") | ||
} | ||
} | ||
|
||
|
||
LIBS += \ | ||
-lr_core \ | ||
-lr_config \ | ||
-lr_cons \ | ||
-lr_io \ | ||
-lr_util \ | ||
-lr_flag \ | ||
-lr_asm \ | ||
-lr_debug \ | ||
-lr_hash \ | ||
-lr_bin \ | ||
-lr_lang \ | ||
-lr_io \ | ||
-lr_anal \ | ||
-lr_parse \ | ||
-lr_bp \ | ||
-lr_egg \ | ||
-lr_reg \ | ||
-lr_search \ | ||
-lr_syscall \ | ||
-lr_socket \ | ||
-lr_fs \ | ||
-lr_magic \ | ||
-lr_crypto | ||
|