LIEF: Library to Instrument Executable Formats Version 1.0.0
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/* Copyright 2017 - 2021 A. Guinet
2 * Copyright 2017 - 2026 Quarkslab
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License");
5 * you may not use this file except in compliance with the License.
6 * You may obtain a copy of the License at
7 *
8 * http://www.apache.org/licenses/LICENSE-2.0
9 *
10 * Unless required by applicable law or agreed to in writing, software
11 * distributed under the License is distributed on an "AS IS" BASIS,
12 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 * See the License for the specific language governing permissions and
14 * limitations under the License.
15 */
16
17#ifndef LIEF_CONFIG_H
18#define LIEF_CONFIG_H
19
20// clang-format off
21
22// Main formats
23#define LIEF_PE_SUPPORT 1
24#define LIEF_ELF_SUPPORT 1
25#define LIEF_MACHO_SUPPORT 1
26#define LIEF_COFF_SUPPORT 1
27
28// Android formats
29#define LIEF_OAT_SUPPORT 1
30#define LIEF_DEX_SUPPORT 1
31#define LIEF_VDEX_SUPPORT 1
32#define LIEF_ART_SUPPORT 1
33
34// Extended features
35/* #undef LIEF_DEBUG_INFO */
36/* #undef LIEF_OBJC */
37/* #undef LIEF_DYLD_SHARED_CACHE */
38/* #undef LIEF_ASM_SUPPORT */
39/* #undef LIEF_EXTENDED */
40
41// LIEF options
42/* #undef LIEF_RUNTIME_SUPPORT */
43#define LIEF_JSON_SUPPORT 1
44#define LIEF_LOGGING_SUPPORT 1
45#define LIEF_LOGGING_DEBUG 1
46#define LIEF_FROZEN_ENABLED 1
47/* #undef LIEF_EXTERNAL_EXPECTED */
48/* #undef LIEF_EXTERNAL_UTF8CPP */
49/* #undef LIEF_EXTERNAL_MBEDTLS */
50/* #undef LIEF_EXTERNAL_FROZEN */
51/* #undef LIEF_EXTERNAL_SPAN */
52
53/* #undef LIEF_NLOHMANN_JSON_EXTERNAL */
54
55
56#ifdef __cplusplus
57
58static constexpr bool lief_pe_support = 1;
59static constexpr bool lief_elf_support = 1;
60static constexpr bool lief_macho_support = 1;
61static constexpr bool lief_coff_support = 1;
62
63static constexpr bool lief_oat_support = 1;
64static constexpr bool lief_dex_support = 1;
65static constexpr bool lief_vdex_support = 1;
66static constexpr bool lief_art_support = 1;
67
68static constexpr bool lief_debug_info = 0;
69static constexpr bool lief_objc = 0;
70static constexpr bool lief_extended = 0;
71
72static constexpr bool lief_runtime_support = 0;
73static constexpr bool lief_json_support = 1;
74static constexpr bool lief_logging_support = 1;
75static constexpr bool lief_logging_debug = 1;
76static constexpr bool lief_frozen_enabled = 1;
77
78
79#endif // __cplusplus
80
81#endif