summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-vscode/CMakeLists.txt
diff options
context:
space:
mode:
Diffstat (limited to 'lldb/tools/lldb-vscode/CMakeLists.txt')
-rw-r--r--lldb/tools/lldb-vscode/CMakeLists.txt30
1 files changed, 30 insertions, 0 deletions
diff --git a/lldb/tools/lldb-vscode/CMakeLists.txt b/lldb/tools/lldb-vscode/CMakeLists.txt
new file mode 100644
index 00000000000..f1570089a84
--- /dev/null
+++ b/lldb/tools/lldb-vscode/CMakeLists.txt
@@ -0,0 +1,30 @@
+if ( CMAKE_SYSTEM_NAME MATCHES "Windows" OR CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
+ add_definitions( -DIMPORT_LIBLLDB )
+ list(APPEND extra_libs lldbHost)
+endif ()
+
+if (HAVE_LIBPTHREAD)
+ list(APPEND extra_libs pthread)
+endif ()
+
+# We need to include the llvm components we depend on manually, as liblldb does
+# not re-export those.
+set(LLVM_LINK_COMPONENTS Support)
+add_lldb_tool(lldb-vscode
+ lldb-vscode.cpp
+ BreakpointBase.cpp
+ ExceptionBreakpoint.cpp
+ FunctionBreakpoint.cpp
+ JSONUtils.cpp
+ LLDBUtils.cpp
+ SourceBreakpoint.cpp
+ VSCode.cpp
+
+ LINK_LIBS
+ liblldb
+ ${host_lib}
+ ${extra_libs}
+
+ LINK_COMPONENTS
+ Support
+ )
OpenPOWER on IntegriCloud