brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.3 KiB · 50569cd Raw
47 lines · plain
1if (APPLE AND LLVM_ENABLE_LOCAL_SUBMODULE_VISIBILITY)2  # Work around an issue with the Python headers, which have a modular include3  # inside an extern "C" block.4  remove_module_flags()5endif()6 7if(NOT LLDB_PYTHON_RELATIVE_PATH)8  message(FATAL_ERROR "LLDB_PYTHON_RELATIVE_PATH is not set.")9endif()10add_definitions(-DLLDB_PYTHON_RELATIVE_LIBDIR="${LLDB_PYTHON_RELATIVE_PATH}")11 12if(NOT LLDB_PYTHON_EXE_RELATIVE_PATH)13  message(FATAL_ERROR "LLDB_PYTHON_EXE_RELATIVE_PATH is not set.")14endif()15add_definitions(-DLLDB_PYTHON_EXE_RELATIVE_PATH="${LLDB_PYTHON_EXE_RELATIVE_PATH}")16 17 18if (LLDB_ENABLE_LIBEDIT)19  list(APPEND LLDB_LIBEDIT_LIBS LibEdit::LibEdit)20endif()21 22add_lldb_library(lldbPluginScriptInterpreterPythonInterfaces PLUGIN23  OperatingSystemPythonInterface.cpp24  ScriptInterpreterPythonInterfaces.cpp25  ScriptedFramePythonInterface.cpp26  ScriptedFrameProviderPythonInterface.cpp27  ScriptedPlatformPythonInterface.cpp28  ScriptedProcessPythonInterface.cpp29  ScriptedPythonInterface.cpp30  ScriptedStopHookPythonInterface.cpp31  ScriptedBreakpointPythonInterface.cpp32  ScriptedThreadPlanPythonInterface.cpp33  ScriptedThreadPythonInterface.cpp34 35  LINK_COMPONENTS36    Support37  LINK_LIBS38    lldbCore39    lldbHost40    lldbInterpreter41    lldbTarget42    ${Python3_LIBRARIES}43    ${LLDB_LIBEDIT_LIBS}44  )45 46 47