mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-21 13:53:55 -07:00
Add linenoise-ng as alternative to readline
This commit is contained in:
parent
6eee32bb5b
commit
3ada10be72
11 changed files with 220 additions and 2 deletions
|
@ -141,6 +141,12 @@ if (NOT SKIPREADLINE EQUAL 1)
|
|||
if (READLINE_INCLUDE_DIRS AND READLINE_LIBRARIES)
|
||||
set(READLINE_FOUND ON)
|
||||
endif (READLINE_INCLUDE_DIRS AND READLINE_LIBRARIES)
|
||||
else (NOT SKIPREADLINE EQUAL 1)
|
||||
if (NOT SKIPLINENOISE EQUAL 1)
|
||||
if (EXISTS ${PM3_ROOT}/client/deps/linenoise/)
|
||||
set(LINENOISE_LOCAL_FOUND ON)
|
||||
endif (EXISTS ${PM3_ROOT}/client/deps/linenoise/)
|
||||
endif (NOT SKIPLINENOISE EQUAL 1)
|
||||
endif (NOT SKIPREADLINE EQUAL 1)
|
||||
|
||||
if (NOT SKIPJANSSONSYSTEM EQUAL 1)
|
||||
|
@ -501,6 +507,18 @@ else (SKIPREADLINE EQUAL 1)
|
|||
endif (READLINE_FOUND)
|
||||
endif(SKIPREADLINE EQUAL 1)
|
||||
|
||||
if (NOT READLINE_FOUND)
|
||||
if (SKIPLINENOISE EQUAL 1)
|
||||
message(STATUS "Linenoise library: skipped")
|
||||
else (SKIPLINENOISE EQUAL 1)
|
||||
if (LINENOISE_LOCAL_FOUND)
|
||||
message(STATUS "Linenoise library: enabled")
|
||||
else (LINENOISE_LOCAL_FOUND)
|
||||
message(STATUS "Linenoise library: Linenoise not found, disabled")
|
||||
endif (LINENOISE_LOCAL_FOUND)
|
||||
endif (SKIPLINENOISE EQUAL 1)
|
||||
endif (NOT READLINE_FOUND)
|
||||
|
||||
if (SKIPWHEREAMISYSTEM EQUAL 1)
|
||||
message(STATUS "Whereami library: local library forced")
|
||||
else (SKIPWHEREAMISYSTEM EQUAL 1)
|
||||
|
@ -581,6 +599,13 @@ if (NOT JANSSON_FOUND)
|
|||
set(ADDITIONAL_LNK pm3rrg_rdv4_jansson ${ADDITIONAL_LNK})
|
||||
endif (NOT JANSSON_FOUND)
|
||||
|
||||
if (NOT READLINE_FOUND)
|
||||
if (LINENOISE_LOCAL_FOUND)
|
||||
add_definitions("-DHAVE_LINENOISE")
|
||||
set(ADDITIONAL_LNK pm3rrg_rdv4_linenoise ${ADDITIONAL_LNK})
|
||||
endif (LINENOISE_LOCAL_FOUND)
|
||||
endif (NOT READLINE_FOUND)
|
||||
|
||||
if (NOT WHEREAMI_FOUND)
|
||||
set(ADDITIONAL_LNK pm3rrg_rdv4_whereami ${ADDITIONAL_LNK})
|
||||
endif (NOT WHEREAMI_FOUND)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue