Skip to content

Commit

Permalink
deps/libdwarf+src/dwarfparser: remove, not needed anymore.
Browse files Browse the repository at this point in the history
  • Loading branch information
PeterMatula committed Jan 17, 2020
1 parent def84a6 commit 65b8503
Show file tree
Hide file tree
Showing 32 changed files with 18 additions and 8,615 deletions.
1,089 changes: 14 additions & 1,075 deletions LICENSE-THIRD-PARTY

Large diffs are not rendered by default.

3 changes: 1 addition & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ You can pass the following additional parameters to `cmake`:
* `-DRETDEC_COMPILE_YARA=OFF` to disable YARA rules compilation at installation step (enabled by default).
* `-DCMAKE_BUILD_TYPE=Debug` to build with debugging information, which is useful during development. By default, the project is built in the `Release` mode. This has no effect on Windows, but the same thing can be achieved by running `cmake --build .` with the `--config Debug` parameter.
* `-DCMAKE_PROGRAM_PATH=<path>` to use Perl at `<path>` (probably useful only on Windows).
* `-D<dep>_LOCAL_DIR=<path>` where `<dep>` is from `{CAPSTONE, GOOGLETEST, KEYSTONE, LIBDWARF, LLVM, YARA, YARAMOD}` (e.g. `-DCAPSTONE_LOCAL_DIR=<path>`), to use the local repository clone at `<path>` for RetDec dependency instead of downloading a fresh copy at build time. Multiple such options may be used at the same time.
* `-D<dep>_LOCAL_DIR=<path>` where `<dep>` is from `{CAPSTONE, GOOGLETEST, KEYSTONE, LLVM, YARA, YARAMOD}` (e.g. `-DCAPSTONE_LOCAL_DIR=<path>`), to use the local repository clone at `<path>` for RetDec dependency instead of downloading a fresh copy at build time. Multiple such options may be used at the same time.
* `-DRETDEC_ENABLE_<component>=ON` to build only the specified component(s) (multiple such options can be used at once), and its (theirs) dependencies. By default, all the components are built. If at least one component is enabled via this mechanism, all the other components that were not explicitly enabled (and are not needed as dependencies of enabled components) are not built. See [cmake/options.cmake](https://github.com/avast/retdec/blob/master/cmake/options.cmake) for all the available component options.
* `-DRETDEC_ENABLE_ALL=ON` can be used to (re-)enable all the components.
* Alternatively, `-DRETDEC_ENABLE=<comma-separated component list>` can be used instead of `-DRETDEC_ENABLE_<component>=ON` (e.g. `-DRETDEC_ENABLE=fileformat,loader,ctypesparser` is equivalent to `-DRETDEC_ENABLE_FILEFORMAT=ON -DRETDEC_ENABLE_LOADER=ON -DRETDEC_ENABLE_CTYPESPARSER=ON`).
Expand Down Expand Up @@ -301,7 +301,6 @@ This repository contains the following libraries:
* `ctypes` - C++ library for representing C function data types.
* `debugformat` - library for uniform representation of DWARF and PDB debugging information.
* `demangler` - demangling library capable to handle names generated by the GCC/Clang, Microsoft Visual C++, and Borland C++ compilers.
* `dwarfparser` - library for high-level representation of DWARF debugging information.
* `fileformat` - library for parsing and uniform representation of various object file formats. Currently supporting the following formats: COFF, ELF, Intel HEX, Mach-O, PE, raw data.
* `llvm-support` - set of LLVM related utility functions.
* `llvmir-emul` - LLVM IR emulation library used for unit testing.
Expand Down
17 changes: 3 additions & 14 deletions cmake/options.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ option(RETDEC_ENABLE_CTYPESPARSER "" OFF)
option(RETDEC_ENABLE_DEBUGFORMAT "" OFF)
option(RETDEC_ENABLE_DEMANGLER "" OFF)
option(RETDEC_ENABLE_DEMANGLERTOOL "" OFF)
option(RETDEC_ENABLE_DWARFPARSER "" OFF)
option(RETDEC_ENABLE_FILEFORMAT "" OFF)
option(RETDEC_ENABLE_FILEINFO "" OFF)
option(RETDEC_ENABLE_GETSIG "" OFF)
Expand Down Expand Up @@ -83,7 +82,6 @@ foreach(t ${RETDEC_ENABLE})
set_if_equal(${t} "debugformat" RETDEC_ENABLE_DEBUGFORMAT)
set_if_equal(${t} "demangler" RETDEC_ENABLE_DEMANGLER)
set_if_equal(${t} "demanglertool" RETDEC_ENABLE_DEMANGLERTOOL)
set_if_equal(${t} "dwarfparser" RETDEC_ENABLE_DWARFPARSER)
set_if_equal(${t} "fileformat" RETDEC_ENABLE_FILEFORMAT)
set_if_equal(${t} "fileinfo" RETDEC_ENABLE_FILEINFO)
set_if_equal(${t} "getsig" RETDEC_ENABLE_GETSIG)
Expand Down Expand Up @@ -130,7 +128,6 @@ if (RETDEC_ENABLE_AR_EXTRACTOR
OR RETDEC_ENABLE_DEBUGFORMAT
OR RETDEC_ENABLE_DEMANGLER
OR RETDEC_ENABLE_DEMANGLERTOOL
OR RETDEC_ENABLE_DWARFPARSER
OR RETDEC_ENABLE_FILEFORMAT
OR RETDEC_ENABLE_FILEINFO
OR RETDEC_ENABLE_GETSIG
Expand Down Expand Up @@ -319,10 +316,6 @@ set_if_at_least_one_set(RETDEC_ENABLE_CTYPES
RETDEC_ENABLE_ALL
RETDEC_ENABLE_CTYPESPARSER)

set_if_at_least_one_set(RETDEC_ENABLE_DWARFPARSER
RETDEC_ENABLE_ALL
RETDEC_ENABLE_DEBUGFORMAT)

set_if_at_least_one_set(RETDEC_ENABLE_PDBPARSER
RETDEC_ENABLE_CPDETECT
RETDEC_ENABLE_DEBUGFORMAT)
Expand All @@ -341,7 +334,6 @@ set_if_at_least_one_set(RETDEC_ENABLE_FILEFORMAT
RETDEC_ENABLE_ALL
RETDEC_ENABLE_BIN2LLVMIR
RETDEC_ENABLE_CPDETECT
RETDEC_ENABLE_DWARFPARSER
RETDEC_ENABLE_FILEINFO
RETDEC_ENABLE_GETSIG
RETDEC_ENABLE_LOADER
Expand Down Expand Up @@ -397,7 +389,6 @@ set_if_at_least_one_set(RETDEC_ENABLE_UTILS
RETDEC_ENABLE_CRYPTO
RETDEC_ENABLE_CTYPES
RETDEC_ENABLE_CTYPESPARSER
RETDEC_ENABLE_DWARFPARSER
RETDEC_ENABLE_FILEFORMAT
RETDEC_ENABLE_FILEINFO
RETDEC_ENABLE_IDR2PAT
Expand Down Expand Up @@ -494,10 +485,6 @@ set_if_at_least_one_set(RETDEC_ENABLE_KEYSTONE
RETDEC_ENABLE_CAPSTONE2LLVMIRTOOL
RETDEC_ENABLE_CAPSTONE2LLVMIR_TESTS)

set_if_at_least_one_set(RETDEC_ENABLE_LIBDWARF
RETDEC_ENABLE_CPDETECT
RETDEC_ENABLE_DWARFPARSER)

set_if_at_least_one_set(RETDEC_ENABLE_LLVM
RETDEC_ENABLE_AR_EXTRACTOR
RETDEC_ENABLE_BIN2LLVMIR
Expand All @@ -507,7 +494,9 @@ set_if_at_least_one_set(RETDEC_ENABLE_LLVM
RETDEC_ENABLE_LLVM_SUPPORT
RETDEC_ENABLE_LLVMIR_EMUL
RETDEC_ENABLE_LLVMIR2HLL
RETDEC_ENABLE_MACHO_EXTRACTOR)
RETDEC_ENABLE_MACHO_EXTRACTOR
RETDEC_ENABLE_CPDETECT
RETDEC_ENABLE_DEBUGFORMAT)

set_if_at_least_one_set(RETDEC_ENABLE_OPENSLL
RETDEC_ENABLE_CRYPTO)
Expand Down
1 change: 0 additions & 1 deletion deps/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ cond_add_subdirectory(capstone RETDEC_ENABLE_CAPSTONE)
cond_add_subdirectory(elfio RETDEC_ENABLE_ELFIO)
cond_add_subdirectory(googletest RETDEC_ENABLE_GOOGLETEST)
cond_add_subdirectory(keystone RETDEC_ENABLE_KEYSTONE)
cond_add_subdirectory(libdwarf RETDEC_ENABLE_LIBDWARF)
cond_add_subdirectory(llvm RETDEC_ENABLE_LLVM)
cond_add_subdirectory(openssl RETDEC_ENABLE_OPENSLL)
cond_add_subdirectory(rapidjson RETDEC_ENABLE_RAPIDJSON)
Expand Down
88 changes: 0 additions & 88 deletions deps/libdwarf/CMakeLists.txt

This file was deleted.

177 changes: 0 additions & 177 deletions include/retdec/dwarfparser/dwarf_base.h

This file was deleted.

Loading

0 comments on commit 65b8503

Please sign in to comment.