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