Cyndy Ishida c6f29dbb59
[readtapi] Setup simple stubify support (#76075)
Stubify broadly takes either tbd files or binary dylibs and turns them
into tbd files. In future patches, stubify will also allow additional
information to be embedded into the final TBD output too.

Add Util APIs to TextAPI for common operations used by readtapi for now.
2023-12-20 14:56:53 -08:00

25 lines
440 B
CMake

set(LLVM_LINK_COMPONENTS
BinaryFormat
Object
Support
Option
TextAPI
TextAPIBinaryReader
)
set(LLVM_TARGET_DEFINITIONS TapiOpts.td)
tablegen(LLVM TapiOpts.inc -gen-opt-parser-defs)
add_public_tablegen_target(ReadTAPIOptsTableGen)
add_llvm_tool(llvm-readtapi
llvm-readtapi.cpp
DiffEngine.cpp
DEPENDS
ReadTAPIOptsTableGen
)
if(LLVM_INSTALL_BINUTILS_SYMLINKS)
add_llvm_tool_symlink(readtapi llvm-readtapi)
endif()