File tree 6 files changed +34
-1
lines changed
6 files changed +34
-1
lines changed Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ include_directories(
14
14
)
15
15
endif ()
16
16
17
+ if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
18
+ include_directories (
19
+ Plugins/Process/POSIX
20
+ )
21
+ endif ()
22
+
23
+
17
24
set (lldbBase_SOURCES
18
25
lldb.cpp
19
26
)
@@ -83,4 +90,3 @@ if ( NOT CMAKE_SYSTEM_NAME MATCHES "Windows" )
83
90
endif ()
84
91
# FIXME: implement svn/git revision and repository parsing solution on Windows. There is an SVN-only
85
92
# revision parsing solution in tools/clang/lib/Basic/CMakelists.txt.
86
-
Original file line number Diff line number Diff line change @@ -138,13 +138,22 @@ else()
138
138
linux/ThisThread.cpp
139
139
)
140
140
endif ()
141
+
141
142
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
142
143
add_host_subdirectory(freebsd
143
144
freebsd/Host.cpp
144
145
freebsd/HostInfoFreeBSD.cpp
145
146
freebsd/HostThreadFreeBSD.cpp
146
147
freebsd/ThisThread.cpp
147
148
)
149
+
150
+ elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
151
+ add_host_subdirectory(netbsd
152
+ netbsd/Host.cpp
153
+ netbsd/HostInfoNetBSD.cpp
154
+ netbsd/HostThreadNetBSD.cpp
155
+ netbsd/ThisThread.cpp
156
+ )
148
157
endif ()
149
158
endif ()
150
159
@@ -162,3 +171,7 @@ if (${get_python_libdir})
162
171
endif ()
163
172
164
173
add_lldb_library(lldbHost ${HOST_SOURCES} )
174
+
175
+ if (CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
176
+ target_link_libraries (lldbHost kvm)
177
+ endif ()
Original file line number Diff line number Diff line change 2
2
add_subdirectory (Linux)
3
3
#elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD")
4
4
add_subdirectory (FreeBSD)
5
+ #elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD")
6
+ add_subdirectory (NetBSD)
5
7
#elseif (CMAKE_SYSTEM_NAME MATCHES "Darwin")
6
8
add_subdirectory (MacOSX)
7
9
#elseif (CMAKE_SYSTEM_NAME MATCHES "Windows")
Original file line number Diff line number Diff line change
1
+ add_lldb_library(lldbPluginPlatformNetBSD
2
+ PlatformNetBSD.cpp
3
+ )
Original file line number Diff line number Diff line change @@ -4,6 +4,8 @@ if (CMAKE_SYSTEM_NAME MATCHES "Linux")
4
4
elseif (CMAKE_SYSTEM_NAME MATCHES "FreeBSD" )
5
5
add_subdirectory (FreeBSD)
6
6
add_subdirectory (POSIX)
7
+ elseif (CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
8
+ add_subdirectory (POSIX)
7
9
elseif (CMAKE_SYSTEM_NAME MATCHES "Windows" )
8
10
add_subdirectory (Windows/Live)
9
11
add_subdirectory (Windows/MiniDump)
Original file line number Diff line number Diff line change @@ -14,6 +14,13 @@ include_directories(
14
14
)
15
15
endif ()
16
16
17
+ if ( CMAKE_SYSTEM_NAME MATCHES "NetBSD" )
18
+ include_directories (
19
+ ../../../../llvm/include
20
+ ../../source /Plugins/Process/POSIX
21
+ )
22
+ endif ()
23
+
17
24
include_directories (../../source )
18
25
19
26
include (../../cmake/LLDBDependencies.cmake)
You can’t perform that action at this time.
0 commit comments