mirror of
https://github.com/revng/revng
synced 2026-06-21 14:07:57 +00:00
7a045d0c0d
This commit does the following: * It drops `revamb-dump` and transforms all the passes it featured in passes that can be used directly from `opt`. * It rename `revamb` to `revng-lift`. * It introduces a script called `revng` which acts as a driver for the whole rev.ng project. It replaces `translate`, `revcc`, `csv-to-ld-options` and `revamb-dump`, since it offers an `opt` subcommand which allows to easily invoke all the analysis passes. * It makes the project a CMake package that can be easily used externally. * It allows to easily create libraries of analysis to use through `revng-opt`.
9 lines
428 B
CMake
9 lines
428 B
CMake
# Helper macro to create a new library containing analyses to be employed in
|
|
# revng-opt
|
|
macro(revng_add_analyses_library NAME)
|
|
add_library("${NAME}" SHARED ${ARGN})
|
|
target_include_directories("${NAME}" INTERFACE $<INSTALL_INTERFACE:include/>)
|
|
set_target_properties("${NAME}" PROPERTIES INSTALL_RPATH "\$ORIGIN/../../:\$ORIGIN/")
|
|
install(TARGETS "${NAME}" EXPORT revng LIBRARY DESTINATION lib/revng/analyses)
|
|
endmacro()
|