aboutsummaryrefslogtreecommitdiff
path: root/libbase/include/core/config/libbase-config.h.cmake
blob: 2ea111b18f8385b22c7dd3b5767bc61903cfcc48 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
/*
 RCC-Project

 Copyright (C) 2026 Richard Qin

 This file is part of RCC-Project.

 RCC-Project is free software; you can redistribute it and/or modify it under
 the terms of the GNU General Public License as published by the Free
 Software Foundation; either version 3 of the License, or (at your option) any
 later version.

 RCC-Project is distributed in the hope that it will be useful, but WITHOUT ANY
 WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR
 A PARTICULAR PURPOSE.  See the GNU General Public License for more details.

 You should have received a copy of the GNU General Public License along with
 RCC-Project; see the file COPYING.  If not see
 <http://www.gnu.org/licenses/>.
*/

/* This file enumerates variables from the libbase configuration so that they
   can be used by exported headers without depending on RCC configuration. */

#ifndef LIBBASE_CONFIG_H
#define LIBBASE_CONFIG_H

/* Define if libbase dump support is enabled. */
#cmakedefine LIBBASE_ENABLE_DUMP

/* Define if threads are enabled in libbase. */
#cmakedefine01 LIBBASE_ENABLE_THREADS

/* Has gcc/MSVC atomic intrinsics. */
#cmakedefine01 LIBBASE_HAS_ATOMICS

/* Define if this is a Unixish platform. */
#cmakedefine LIBBASE_ON_UNIX ${LIBBASE_ON_UNIX}

/* Whether libbase records statistics. */
#cmakedefine01 LIBBASE_FORCE_ENABLE_STATS

/* Define if libbase has z3 support. */
#cmakedefine LIBBASE_WITH_Z3 ${LIBBASE_WITH_Z3}

/* Define if libbase has curl support. */
#cmakedefine LIBBASE_ENABLE_CURL ${LIBBASE_ENABLE_CURL}

/* Define if libbase has cpp-httplib support. */
#cmakedefine LIBBASE_ENABLE_HTTPLIB ${LIBBASE_ENABLE_HTTPLIB}

/* Define if zlib compression is available to libbase. */
#cmakedefine01 LIBBASE_ENABLE_ZLIB

/* Define if zstd compression is available to libbase. */
#cmakedefine01 LIBBASE_ENABLE_ZSTD

/* Define if xz (lzma) decompression is available to libbase. */
#cmakedefine01 LIBBASE_ENABLE_LZMA

/* Define to 1 if libbase has the <sysexits.h> header file. */
#cmakedefine LIBBASE_HAVE_SYSEXITS_H ${LIBBASE_HAVE_SYSEXITS_H}

/* Define if libbase is built with BUILD_SHARED_LIBS. */
#cmakedefine LIBBASE_BUILD_SHARED_LIBS

/* Define if libbase is built as a static library. */
#cmakedefine LIBBASE_BUILD_STATIC

/* Define if exporting the libbase public interface for a shared library. */
#cmakedefine LIBBASE_ENABLE_EXPORT_ANNOTATIONS

/* Define if libbase uses the old toolchain behavior. */
#cmakedefine LIBBASE_FORCE_USE_OLD_TOOLCHAIN ${LIBBASE_FORCE_USE_OLD_TOOLCHAIN}

/* Define if libbase_unreachable should be optimized with undefined behavior
 * in non-assert builds. */
#cmakedefine01 LIBBASE_UNREACHABLE_OPTIMIZE

/* Define if libbase provides I/O sandbox support. */
#cmakedefine01 LIBBASE_ENABLE_IO_SANDBOX

/* Define if logf128 is available to libbase. */
#cmakedefine LIBBASE_HAS_LOGF128

/* Define if libbase provides on-disk content-addressable storage. */
#cmakedefine01 LIBBASE_ENABLE_ONDISK_CAS

#endif