mirror of
https://git.suyu.dev/suyu/mbedtls.git
synced 2026-03-25 01:22:57 +00:00
Use a full config.h with doxygen
Otherwise we get warnings that some documentation items don't have corresponding #define, and more importantly the corresponding snippets are not included in the output. For that we need a modified version of the "full" argument for config.pl. Also, the new CMakeLists.txt target only works on Unix (which was already the case of the Makefile target). Hopefully this is not an issue as people are unlikely to need that target on Windows.
This commit is contained in:
@@ -10,7 +10,7 @@ $0 [-f <file>] unset <name>
|
||||
$0 [-f <file>] set <name> [<value>]
|
||||
EOU
|
||||
# for our eyes only:
|
||||
# $0 [-f <file>] full
|
||||
# $0 [-f <file>] full|realfull
|
||||
|
||||
# Things that shouldn't be enabled with "full".
|
||||
# Notes:
|
||||
@@ -61,7 +61,7 @@ die $usage unless @ARGV;
|
||||
my $action = shift;
|
||||
|
||||
my ($name, $value);
|
||||
if ($action eq "full") {
|
||||
if ($action eq "full" || $action eq "realfull") {
|
||||
# nothing to do
|
||||
} elsif ($action eq "unset") {
|
||||
die $usage unless @ARGV;
|
||||
@@ -79,14 +79,20 @@ open my $config_read, '<', $config_file or die "read $config_file: $!\n";
|
||||
my @config_lines = <$config_read>;
|
||||
close $config_read;
|
||||
|
||||
my $exclude_re = join '|', @excluded;
|
||||
my $no_exclude_re = join '|', @non_excluded;
|
||||
my ($exclude_re, $no_exclude_re);
|
||||
if ($action eq "realfull") {
|
||||
$exclude_re = qr/^$/;
|
||||
$no_exclude_re = qr/./;
|
||||
} else {
|
||||
$exclude_re = join '|', @excluded;
|
||||
$no_exclude_re = join '|', @non_excluded;
|
||||
}
|
||||
|
||||
open my $config_write, '>', $config_file or die "write $config_file: $!\n";
|
||||
|
||||
my $done;
|
||||
for my $line (@config_lines) {
|
||||
if ($action eq "full") {
|
||||
if ($action eq "full" || $action eq "realfull") {
|
||||
if ($line =~ /name SECTION: Module configuration options/) {
|
||||
$done = 1;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user