LIEF: Library to Instrument Executable Formats Version 0.17.0
Loading...
Searching...
No Matches
config.h
Go to the documentation of this file.
1/* Copyright 2017 - 2021 A. Guinet
2 * Copyright 2017 - 2025 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// Main formats
21#define LIEF_PE_SUPPORT 1
22#define LIEF_ELF_SUPPORT 1
23#define LIEF_MACHO_SUPPORT 1
24#define LIEF_COFF_SUPPORT 1
25
26// Android formats
27#define LIEF_OAT_SUPPORT 1
28#define LIEF_DEX_SUPPORT 1
29#define LIEF_VDEX_SUPPORT 1
30#define LIEF_ART_SUPPORT 1
31
32// Extended features
33/* #undef LIEF_DEBUG_INFO */
34/* #undef LIEF_OBJC */
35/* #undef LIEF_DYLD_SHARED_CACHE */
36/* #undef LIEF_ASM_SUPPORT */
37/* #undef LIEF_EXTENDED */
38
39// LIEF options
40#define LIEF_JSON_SUPPORT 1
41#define LIEF_LOGGING_SUPPORT 1
42#define LIEF_LOGGING_DEBUG 1
43#define LIEF_FROZEN_ENABLED 1
44/* #undef LIEF_EXTERNAL_EXPECTED */
45/* #undef LIEF_EXTERNAL_UTF8CPP */
46/* #undef LIEF_EXTERNAL_MBEDTLS */
47/* #undef LIEF_EXTERNAL_FROZEN */
48/* #undef LIEF_EXTERNAL_SPAN */
49
50/* #undef LIEF_NLOHMANN_JSON_EXTERNAL */
51
52
53#ifdef __cplusplus
54
55static constexpr bool lief_pe_support = 1;
56static constexpr bool lief_elf_support = 1;
57static constexpr bool lief_macho_support = 1;
58static constexpr bool lief_coff_support = 1;
59
60static constexpr bool lief_oat_support = 1;
61static constexpr bool lief_dex_support = 1;
62static constexpr bool lief_vdex_support = 1;
63static constexpr bool lief_art_support = 1;
64
65static constexpr bool lief_debug_info = 0;
66static constexpr bool lief_objc = 0;
67static constexpr bool lief_extended = 0;
68
69static constexpr bool lief_json_support = 1;
70static constexpr bool lief_logging_support = 1;
71static constexpr bool lief_logging_debug = 1;
72static constexpr bool lief_frozen_enabled = 1;
73
74
75#endif // __cplusplus
76
77#endif