LIEF: Library to Instrument Executable Formats Version 0.15.0
Loading...
Searching...
No Matches
config.h
1/* Copyright 2017 - 2021 A. Guinet
2 * Copyright 2017 - 2024 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
25// Android formats
26#define LIEF_OAT_SUPPORT 1
27#define LIEF_DEX_SUPPORT 1
28#define LIEF_VDEX_SUPPORT 1
29#define LIEF_ART_SUPPORT 1
30
31// LIEF options
32#define LIEF_JSON_SUPPORT 1
33#define LIEF_LOGGING_SUPPORT 1
34#define LIEF_LOGGING_DEBUG 1
35#define LIEF_FROZEN_ENABLED 1
36/* #undef LIEF_EXTERNAL_EXPECTED */
37/* #undef LIEF_EXTERNAL_UTF8CPP */
38/* #undef LIEF_EXTERNAL_MBEDTLS */
39/* #undef LIEF_EXTERNAL_FROZEN */
40/* #undef LIEF_EXTERNAL_SPAN */
41
42/* #undef LIEF_NLOHMANN_JSON_EXTERNAL */
43
44#ifdef __cplusplus
45
46static constexpr bool lief_pe_support = 1;
47static constexpr bool lief_elf_support = 1;
48static constexpr bool lief_macho_support = 1;
49
50static constexpr bool lief_oat_support = 1;
51static constexpr bool lief_dex_support = 1;
52static constexpr bool lief_vdex_support = 1;
53static constexpr bool lief_art_support = 1;
54
55static constexpr bool lief_json_support = 1;
56static constexpr bool lief_logging_support = 1;
57static constexpr bool lief_logging_debug = 1;
58static constexpr bool lief_frozen_enabled = 1;
59
60
61#endif // __cplusplus
62
63#endif