-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
22 changed files
with
481 additions
and
468 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# - Try to find LLDB | ||
# Once done this will define | ||
# | ||
# LLDB_FOUND - system has lldb | ||
# LLDB_INCLUDE_DIRS - the lldb include directory | ||
# LLDB_LIBRARIES - Link these to use lldb | ||
# | ||
# Copyright (c) 2008 Bernhard Walle <bernhard.walle@gmx.de> | ||
# | ||
# Redistribution and use is allowed according to the terms of the New | ||
# BSD license. | ||
# For details see the accompanying COPYING-CMAKE-SCRIPTS file. | ||
# | ||
|
||
if (LLDB_LIBRARIES AND LLDB_INCLUDE_DIRS) | ||
set (LLDB_FIND_QUIETLY TRUE) | ||
endif (LLDB_LIBRARIES AND LLDB_INCLUDE_DIRS) | ||
|
||
find_path (LLDB_INCLUDE_DIRS | ||
NAMES | ||
lldb/API/LLDB.h | ||
PATHS | ||
ENV CPATH) | ||
|
||
find_library (LLDB_LIBRARIES | ||
NAMES | ||
lldb | ||
PATHS | ||
ENV LIBRARY_PATH | ||
ENV LD_LIBRARY_PATH) | ||
|
||
|
||
# handle the QUIETLY and REQUIRED arguments and set LLDB_FOUND to TRUE if all listed variables are TRUE | ||
include (FindPackageHandleStandardArgs) | ||
FIND_PACKAGE_HANDLE_STANDARD_ARGS(LLDB "Please install the lldb development package" | ||
LLDB_LIBRARIES | ||
LLDB_INCLUDE_DIRS) | ||
|
||
if (LLDB_FOUND) | ||
add_library(LLDB SHARED IMPORTED) | ||
set_target_properties(LLDB PROPERTIES | ||
INCLUDE_DIRECTORIES "${LLDB_INCLUDE_DIRS}" | ||
IMPORTED_LOCATION "${LLDB_LIBRARIES}") | ||
|
||
if (LLVM_VERSION_MAJOR VERSION_GREATER 10) | ||
set_target_properties(LLDB PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LIBRARIES clang-cpp) | ||
else () | ||
set_target_properties(LLDB PROPERTIES | ||
IMPORTED_LINK_INTERFACE_LIBRARIES libclang) | ||
endif () | ||
endif (LLDB_FOUND) | ||
|
||
mark_as_advanced(LLDB_INCLUDE_DIRS LLDB_LIBRARIES) |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -88,6 +88,7 @@ | |
libopcodes | ||
libpcap | ||
libsystemtap | ||
lldb | ||
llvm | ||
pahole | ||
xxd | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.