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 SWIGPythonBridge.cpp 17 18 LINK_LIBS 19 lldbBreakpoint 20 lldbCore 21 lldbDataFormatters 22 lldbHost 23 lldbInterpreter 24 lldbTarget 25 ${Python3_LIBRARIES} 26 ${LLDB_LIBEDIT_LIBS} 27 28 LINK_COMPONENTS 29 Support 30 ) 31 32if (LLDB_ENABLE_LIBEDIT) 33 target_include_directories(lldbPluginScriptInterpreterPython PUBLIC 34 ${LibEdit_INCLUDE_DIRS} 35 ) 36endif() 37