1if(NOT LLDB_PYTHON_RELATIVE_PATH) 2 message(FATAL_ERROR "LLDB_PYTHON_RELATIVE_PATH is not set.") 3endif() 4add_definitions(-DLLDB_PYTHON_RELATIVE_LIBDIR="${LLDB_PYTHON_RELATIVE_PATH}") 5 6if (LLDB_ENABLE_LIBEDIT) 7 list(APPEND LLDB_LIBEDIT_LIBS ${LibEdit_LIBRARIES}) 8endif() 9 10add_lldb_library(lldbPluginScriptInterpreterPython PLUGIN 11 PythonDataObjects.cpp 12 PythonReadline.cpp 13 ScriptInterpreterPython.cpp 14 ScriptedPythonInterface.cpp 15 ScriptedProcessPythonInterface.cpp 16 ScriptedThreadPythonInterface.cpp 17 SWIGPythonBridge.cpp 18 19 LINK_LIBS 20 lldbBreakpoint 21 lldbCore 22 lldbDataFormatters 23 lldbHost 24 lldbInterpreter 25 lldbTarget 26 ${Python3_LIBRARIES} 27 ${LLDB_LIBEDIT_LIBS} 28 29 LINK_COMPONENTS 30 Support 31 ) 32 33if (LLDB_ENABLE_LIBEDIT) 34 target_include_directories(lldbPluginScriptInterpreterPython PUBLIC 35 ${LibEdit_INCLUDE_DIRS} 36 ) 37endif() 38