This patch uses SWIG to generate the Lua bindings for the SB API. It covers most of the API, but some methods require a type map similar to Python. Discussion on the mailing list: http://lists.llvm.org/pipermail/lldb-dev/2019-December/015812.html Differential revision: https://reviews.llvm.org/D71235
14 lines
337 B
CMake
14 lines
337 B
CMake
find_package(Lua REQUIRED)
|
|
|
|
add_lldb_library(lldbPluginScriptInterpreterLua PLUGIN
|
|
Lua.cpp
|
|
ScriptInterpreterLua.cpp
|
|
|
|
LINK_LIBS
|
|
lldbCore
|
|
lldbInterpreter
|
|
)
|
|
|
|
target_include_directories(lldbPluginScriptInterpreterLua PUBLIC ${LUA_INCLUDE_DIR})
|
|
target_link_libraries(lldbPluginScriptInterpreterLua INTERFACE ${LUA_LIBRARIES})
|