mirror of
https://github.com/yuzu-emu/mbedtls.git
synced 2024-12-23 18:35:44 +00:00
Add psa headers to generate_visualc_files.pl
This commit is contained in:
parent
b5c740707f
commit
588e8cb940
|
@ -19,7 +19,8 @@ my $vsx_sln_tpl_file = "scripts/data_files/vs2010-sln-template.sln";
|
||||||
my $vsx_sln_file = "$vsx_dir/mbedTLS.sln";
|
my $vsx_sln_file = "$vsx_dir/mbedTLS.sln";
|
||||||
|
|
||||||
my $programs_dir = 'programs';
|
my $programs_dir = 'programs';
|
||||||
my $header_dir = 'include/mbedtls';
|
my $mbedtls_header_dir = 'include/mbedtls';
|
||||||
|
my $psa_header_dir = 'include/psa';
|
||||||
my $source_dir = 'library';
|
my $source_dir = 'library';
|
||||||
|
|
||||||
# Need windows line endings!
|
# Need windows line endings!
|
||||||
|
@ -53,7 +54,8 @@ exit( main() );
|
||||||
|
|
||||||
sub check_dirs {
|
sub check_dirs {
|
||||||
return -d $vsx_dir
|
return -d $vsx_dir
|
||||||
&& -d $header_dir
|
&& -d $mbedtls_header_dir
|
||||||
|
&& -d $psa_header_dir
|
||||||
&& -d $source_dir
|
&& -d $source_dir
|
||||||
&& -d $programs_dir;
|
&& -d $programs_dir;
|
||||||
}
|
}
|
||||||
|
@ -131,9 +133,10 @@ sub gen_entry_list {
|
||||||
}
|
}
|
||||||
|
|
||||||
sub gen_main_file {
|
sub gen_main_file {
|
||||||
my ($headers, $sources, $hdr_tpl, $src_tpl, $main_tpl, $main_out) = @_;
|
my ($mbedtls_headers, $psa_headers, $sources, $hdr_tpl, $src_tpl, $main_tpl, $main_out) = @_;
|
||||||
|
|
||||||
my $header_entries = gen_entry_list( $hdr_tpl, @$headers );
|
my $header_entries = gen_entry_list( $hdr_tpl, @$mbedtls_headers );
|
||||||
|
$header_entries .= gen_entry_list( $hdr_tpl, @$psa_headers );
|
||||||
my $source_entries = gen_entry_list( $src_tpl, @$sources );
|
my $source_entries = gen_entry_list( $src_tpl, @$sources );
|
||||||
|
|
||||||
my $out = slurp_file( $main_tpl );
|
my $out = slurp_file( $main_tpl );
|
||||||
|
@ -187,14 +190,16 @@ sub main {
|
||||||
del_vsx_files();
|
del_vsx_files();
|
||||||
|
|
||||||
my @app_list = get_app_list();
|
my @app_list = get_app_list();
|
||||||
my @headers = <$header_dir/*.h>;
|
my @mbedtls_headers = <$mbedtls_header_dir/*.h>;
|
||||||
|
my @psa_headers = <$psa_header_dir/*.h>;
|
||||||
my @sources = <$source_dir/*.c>;
|
my @sources = <$source_dir/*.c>;
|
||||||
map { s!/!\\!g } @headers;
|
map { s!/!\\!g } @mbedtls_headers;
|
||||||
|
map { s!/!\\!g } @psa_headers;
|
||||||
map { s!/!\\!g } @sources;
|
map { s!/!\\!g } @sources;
|
||||||
|
|
||||||
gen_app_files( @app_list );
|
gen_app_files( @app_list );
|
||||||
|
|
||||||
gen_main_file( \@headers, \@sources,
|
gen_main_file( \@mbedtls_headers, \@psa_headers, \@sources,
|
||||||
$vsx_hdr_tpl, $vsx_src_tpl,
|
$vsx_hdr_tpl, $vsx_src_tpl,
|
||||||
$vsx_main_tpl_file, $vsx_main_file );
|
$vsx_main_tpl_file, $vsx_main_file );
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue