diff options
author | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-04 15:01:11 +0900 |
---|---|---|
committer | Martin Schanzenbach <schanzen@gnunet.org> | 2022-12-04 15:01:11 +0900 |
commit | cbe225ddce5627c59902cfdb9524dead675d19d0 (patch) | |
tree | 4587edeca96cc30598d054cf57b1ce2388140a40 /src/include | |
parent | 124480c8af13a9cb82d64f9103c55ae64f36ceda (diff) | |
download | gnunet-cbe225ddce5627c59902cfdb9524dead675d19d0.tar.gz gnunet-cbe225ddce5627c59902cfdb9524dead675d19d0.zip |
BUILD: Move gnunet_config.h to gnunet_private_config.h and add new, partially generated gnunet_config.h
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/.gitignore | 1 | ||||
-rw-r--r-- | src/include/Makefile.am | 1 | ||||
-rw-r--r-- | src/include/gnunet_config.h.in | 51 | ||||
-rw-r--r-- | src/include/platform.h | 2 |
4 files changed, 54 insertions, 1 deletions
diff --git a/src/include/.gitignore b/src/include/.gitignore index 9da6d8eea..9529b45c3 100644 --- a/src/include/.gitignore +++ b/src/include/.gitignore | |||
@@ -2,3 +2,4 @@ gnunet_error_codes.h | |||
2 | gnu_name_system_record_flags.h | 2 | gnu_name_system_record_flags.h |
3 | gnu_name_system_record_types.h | 3 | gnu_name_system_record_types.h |
4 | gnunet_signatures.h | 4 | gnunet_signatures.h |
5 | !gnunet_config.h.in | ||
diff --git a/src/include/Makefile.am b/src/include/Makefile.am index 19450968c..fa964f672 100644 --- a/src/include/Makefile.am +++ b/src/include/Makefile.am | |||
@@ -11,6 +11,7 @@ EXTRA_DIST = \ | |||
11 | 11 | ||
12 | gnunetinclude_HEADERS = \ | 12 | gnunetinclude_HEADERS = \ |
13 | platform.h \ | 13 | platform.h \ |
14 | gnunet_config.h \ | ||
14 | gnunet_platform.h \ | 15 | gnunet_platform.h \ |
15 | gettext.h \ | 16 | gettext.h \ |
16 | compat.h \ | 17 | compat.h \ |
diff --git a/src/include/gnunet_config.h.in b/src/include/gnunet_config.h.in new file mode 100644 index 000000000..4eb00388f --- /dev/null +++ b/src/include/gnunet_config.h.in | |||
@@ -0,0 +1,51 @@ | |||
1 | /* | ||
2 | This file is part of GNUnet | ||
3 | Copyright (C) 2022 GNUnet e.V. | ||
4 | |||
5 | GNUnet is free software: you can redistribute it and/or modify it | ||
6 | under the terms of the GNU Affero General Public License as published | ||
7 | by the Free Software Foundation, either version 3 of the License, | ||
8 | or (at your option) any later version. | ||
9 | |||
10 | GNUnet is distributed in the hope that it will be useful, but | ||
11 | WITHOUT ANY WARRANTY; without even the implied warranty of | ||
12 | MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU | ||
13 | Affero General Public License for more details. | ||
14 | |||
15 | You should have received a copy of the GNU Affero General Public License | ||
16 | along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
17 | |||
18 | SPDX-License-Identifier: AGPL3.0-or-later | ||
19 | */ | ||
20 | |||
21 | #ifndef GNUNET_CONFIG_H | ||
22 | #define GNUNET_CONFIG_H | ||
23 | |||
24 | /** | ||
25 | * @author Martin Schanzenbach | ||
26 | * | ||
27 | * @file | ||
28 | * Convenience header including public (!) information on the | ||
29 | * installed GNUnet configuration. | ||
30 | * | ||
31 | */ | ||
32 | |||
33 | /* The version of GNUnet */ | ||
34 | #define GNUNET_VERSION "@gnunet_version@" | ||
35 | |||
36 | /* Major version */ | ||
37 | #define GNUNET_MAJOR_VERSION 0 | ||
38 | |||
39 | /* Micro version */ | ||
40 | #define GNUNET_MINOR_VERSION 18 | ||
41 | |||
42 | /* Mico version */ | ||
43 | #define GNUNET_MICRO_VERSION 2 | ||
44 | |||
45 | /* Set to 1 is this is an experimental build */ | ||
46 | #define GNUNET_EXPERIMENTAL @enable_experimental@ | ||
47 | |||
48 | /* Define to 1 if GnuTLS has DANE support */ | ||
49 | #define GNUNET_CURL_GNUTLS @curl_gnutls@ | ||
50 | |||
51 | #endif | ||
diff --git a/src/include/platform.h b/src/include/platform.h index e44f9f51a..deca323d1 100644 --- a/src/include/platform.h +++ b/src/include/platform.h | |||
@@ -34,7 +34,7 @@ | |||
34 | #ifndef HAVE_USED_CONFIG_H | 34 | #ifndef HAVE_USED_CONFIG_H |
35 | #define HAVE_USED_CONFIG_H | 35 | #define HAVE_USED_CONFIG_H |
36 | #if HAVE_CONFIG_H | 36 | #if HAVE_CONFIG_H |
37 | #include "gnunet_config.h" | 37 | #include "gnunet_private_config.h" |
38 | #endif | 38 | #endif |
39 | #endif | 39 | #endif |
40 | 40 | ||