diff options
| -rw-r--r-- | lldb/source/CMakeLists.txt | 8 | ||||
| -rw-r--r-- | lldb/source/Host/CMakeLists.txt | 13 | ||||
| -rw-r--r-- | lldb/source/Plugins/Platform/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | lldb/source/Plugins/Platform/NetBSD/CMakeLists.txt | 3 | ||||
| -rw-r--r-- | lldb/source/Plugins/Process/CMakeLists.txt | 2 | ||||
| -rw-r--r-- | lldb/tools/lldb-server/CMakeLists.txt | 7 |
6 files changed, 34 insertions, 1 deletions
diff --git a/lldb/source/CMakeLists.txt b/lldb/source/CMakeLists.txt index 8a2aba24767..f23af477bf8 100644 --- a/lldb/source/CMakeLists.txt +++ b/lldb/source/CMakeLists.txt @@ -14,6 +14,13 @@ include_directories( ) endif () +if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" ) +include_directories( + Plugins/Process/POSIX + ) +endif () + + set(lldbBase_SOURCES lldb.cpp ) @@ -83,4 +90,3 @@ if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" ) endif () # FIXME: implement svn/git revision and repository parsing solution on Windows. There is an SVN-only # revision parsing solution in tools/clang/lib/Basic/CMakelists.txt. - diff --git a/lldb/source/Host/CMakeLists.txt b/lldb/source/Host/CMakeLists.txt index 5ee522af1e1..70dad07bf92 100644 --- a/lldb/source/Host/CMakeLists.txt +++ b/lldb/source/Host/CMakeLists.txt @@ -138,6 +138,7 @@ else() linux/ThisThread.cpp ) endif() + elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") add_host_subdirectory(freebsd freebsd/Host.cpp @@ -145,6 +146,14 @@ else() freebsd/HostThreadFreeBSD.cpp freebsd/ThisThread.cpp ) + + elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD") + add_host_subdirectory(netbsd + netbsd/Host.cpp + netbsd/HostInfoNetBSD.cpp + netbsd/HostThreadNetBSD.cpp + netbsd/ThisThread.cpp + ) endif() endif() @@ -162,3 +171,7 @@ if (${get_python_libdir}) endif() add_lldb_library(lldbHost ${HOST_SOURCES}) + +if (CMAKE_SYSTEM_NAME MATCHES "NetBSD") +target_link_libraries(lldbHost kvm) +endif () diff --git a/lldb/source/Plugins/Platform/CMakeLists.txt b/lldb/source/Plugins/Platform/CMakeLists.txt index 90c715dd173..2e3a3f7c1b2 100644 --- a/lldb/source/Plugins/Platform/CMakeLists.txt +++ b/lldb/source/Plugins/Platform/CMakeLists.txt @@ -2,6 +2,8 @@ add_subdirectory(Linux) #elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") add_subdirectory(FreeBSD) +#elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD") + add_subdirectory(NetBSD) #elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin") add_subdirectory(MacOSX) #elseif (CMAKE_SYSTEM_NAME MATCHES "Windows") diff --git a/lldb/source/Plugins/Platform/NetBSD/CMakeLists.txt b/lldb/source/Plugins/Platform/NetBSD/CMakeLists.txt new file mode 100644 index 00000000000..c70b419b98b --- /dev/null +++ b/lldb/source/Plugins/Platform/NetBSD/CMakeLists.txt @@ -0,0 +1,3 @@ +add_lldb_library(lldbPluginPlatformNetBSD + PlatformNetBSD.cpp + ) diff --git a/lldb/source/Plugins/Process/CMakeLists.txt b/lldb/source/Plugins/Process/CMakeLists.txt index 4144471a42f..30ba5c35f5e 100644 --- a/lldb/source/Plugins/Process/CMakeLists.txt +++ b/lldb/source/Plugins/Process/CMakeLists.txt @@ -4,6 +4,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux") elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD") add_subdirectory(FreeBSD) add_subdirectory(POSIX) +elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD") + add_subdirectory(POSIX) elseif (CMAKE_SYSTEM_NAME MATCHES "Windows") add_subdirectory(Windows/Live) add_subdirectory(Windows/MiniDump) diff --git a/lldb/tools/lldb-server/CMakeLists.txt b/lldb/tools/lldb-server/CMakeLists.txt index 55af04c9c7d..c82be8a2beb 100644 --- a/lldb/tools/lldb-server/CMakeLists.txt +++ b/lldb/tools/lldb-server/CMakeLists.txt @@ -14,6 +14,13 @@ include_directories( ) endif () +if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" ) +include_directories( + ../../../../llvm/include + ../../source/Plugins/Process/POSIX + ) +endif () + include_directories(../../source) include(../../cmake/LLDBDependencies.cmake) |

