2017-10-31 21:23:19 +08:00
|
|
|
set(LLDB_SYSTEM_LIBS)
|
|
|
|
|
|
|
|
# Windows-only libraries
|
|
|
|
if ( CMAKE_SYSTEM_NAME MATCHES "Windows" )
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS
|
|
|
|
ws2_32
|
|
|
|
rpcrt4
|
|
|
|
)
|
|
|
|
endif ()
|
|
|
|
|
|
|
|
if (NOT LLDB_DISABLE_LIBEDIT)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS edit)
|
|
|
|
endif()
|
|
|
|
if (NOT LLDB_DISABLE_CURSES)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${CURSES_LIBRARIES})
|
|
|
|
if(LLVM_ENABLE_TERMINFO AND HAVE_TERMINFO)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${TERMINFO_LIBS})
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
|
|
|
if (NOT HAVE_CXX_ATOMICS64_WITHOUT_LIB )
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS atomic)
|
|
|
|
endif()
|
|
|
|
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${Backtrace_LIBRARY})
|
|
|
|
|
|
|
|
if (NOT LLDB_DISABLE_PYTHON AND NOT LLVM_BUILD_STATIC)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${PYTHON_LIBRARIES})
|
|
|
|
endif()
|
|
|
|
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS ${system_libs})
|
|
|
|
|
|
|
|
if (LLVM_BUILD_STATIC)
|
|
|
|
if (NOT LLDB_DISABLE_PYTHON)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS python2.7 util)
|
|
|
|
endif()
|
|
|
|
if (NOT LLDB_DISABLE_CURSES)
|
|
|
|
list(APPEND LLDB_SYSTEM_LIBS gpm)
|
|
|
|
endif()
|
|
|
|
endif()
|
|
|
|
|
2013-09-25 18:37:32 +08:00
|
|
|
add_lldb_library(lldbUtility
|
2017-11-14 00:16:33 +08:00
|
|
|
ArchSpec.cpp
|
2017-03-07 02:34:25 +08:00
|
|
|
Baton.cpp
|
2017-06-27 18:33:14 +08:00
|
|
|
Connection.cpp
|
2017-02-03 05:39:50 +08:00
|
|
|
ConstString.cpp
|
2017-03-04 09:30:05 +08:00
|
|
|
DataBufferHeap.cpp
|
|
|
|
DataBufferLLVM.cpp
|
|
|
|
DataEncoder.cpp
|
|
|
|
DataExtractor.cpp
|
2017-03-07 02:34:25 +08:00
|
|
|
FastDemangle.cpp
|
2017-03-23 02:40:07 +08:00
|
|
|
FileSpec.cpp
|
2017-03-07 02:34:25 +08:00
|
|
|
History.cpp
|
2017-06-27 18:33:14 +08:00
|
|
|
IOObject.cpp
|
2015-02-10 08:47:43 +08:00
|
|
|
JSON.cpp
|
2015-03-05 07:19:36 +08:00
|
|
|
LLDBAssert.cpp
|
2017-03-04 04:56:28 +08:00
|
|
|
Log.cpp
|
|
|
|
Logging.cpp
|
2015-03-19 05:31:45 +08:00
|
|
|
NameMatches.cpp
|
2013-09-25 18:37:32 +08:00
|
|
|
Range.cpp
|
2017-02-03 05:39:50 +08:00
|
|
|
RegularExpression.cpp
|
2016-08-11 06:43:48 +08:00
|
|
|
SelectHelper.cpp
|
2013-09-25 18:37:32 +08:00
|
|
|
SharingPtr.cpp
|
2017-05-12 12:51:55 +08:00
|
|
|
Status.cpp
|
2017-02-03 05:39:50 +08:00
|
|
|
Stream.cpp
|
2017-03-07 02:34:25 +08:00
|
|
|
StreamCallback.cpp
|
|
|
|
StreamGDBRemote.cpp
|
2017-02-03 05:39:50 +08:00
|
|
|
StreamString.cpp
|
2013-09-25 18:37:32 +08:00
|
|
|
StringExtractor.cpp
|
|
|
|
StringExtractorGDBRemote.cpp
|
2014-08-08 04:48:39 +08:00
|
|
|
StringLexer.cpp
|
2017-03-22 02:25:04 +08:00
|
|
|
StringList.cpp
|
2017-06-27 18:45:31 +08:00
|
|
|
StructuredData.cpp
|
2017-03-13 08:41:01 +08:00
|
|
|
TildeExpressionResolver.cpp
|
2017-06-29 22:32:17 +08:00
|
|
|
Timer.cpp
|
2017-03-07 02:34:25 +08:00
|
|
|
UserID.cpp
|
2015-01-07 07:38:24 +08:00
|
|
|
UriParser.cpp
|
2017-03-04 09:28:55 +08:00
|
|
|
UUID.cpp
|
2017-02-17 03:38:21 +08:00
|
|
|
VASprintf.cpp
|
2017-03-07 02:34:25 +08:00
|
|
|
VMRange.cpp
|
2017-02-01 04:43:05 +08:00
|
|
|
|
|
|
|
LINK_LIBS
|
2017-10-31 21:23:19 +08:00
|
|
|
${LLDB_SYSTEM_LIBS}
|
|
|
|
# lldbUtility does not depend on other LLDB libraries
|
2017-02-01 04:43:05 +08:00
|
|
|
|
|
|
|
LINK_COMPONENTS
|
2017-06-07 11:48:56 +08:00
|
|
|
BinaryFormat
|
2017-02-01 04:43:05 +08:00
|
|
|
Support
|
2013-09-25 18:37:32 +08:00
|
|
|
)
|