mirror of
https://github.com/yuzu-emu/mbedtls
synced 2024-11-24 11:38:09 +00:00
genereate_visualc_files.pl deletes old files
Add a function that deletes all the old Visual Studio prokect files before generating the new ones. This ensure that project files for delete example applications are removed from the repository.
This commit is contained in:
parent
80aa3b8d65
commit
3c5f9498e5
1 changed files with 10 additions and 0 deletions
|
@ -171,12 +171,22 @@ sub gen_vsx_solution {
|
||||||
content_to_file( $out, $vsx_sln_file );
|
content_to_file( $out, $vsx_sln_file );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
sub del_vsx_files {
|
||||||
|
unlink glob "'$vsx_dir/*.$vsx_ext'";
|
||||||
|
unlink $vsx_main_file;
|
||||||
|
unlink $vsx_sln_file;
|
||||||
|
}
|
||||||
|
|
||||||
sub main {
|
sub main {
|
||||||
if( ! check_dirs() ) {
|
if( ! check_dirs() ) {
|
||||||
chdir '..' or die;
|
chdir '..' or die;
|
||||||
check_dirs or die "Must but run from mbedTLS root or scripts dir\n";
|
check_dirs or die "Must but run from mbedTLS root or scripts dir\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# Remove old files to ensure that, for example, project files from deleted
|
||||||
|
# apps are not kept
|
||||||
|
del_vsx_files();
|
||||||
|
|
||||||
my @app_list = get_app_list();
|
my @app_list = get_app_list();
|
||||||
my @headers = <$header_dir/*.h>;
|
my @headers = <$header_dir/*.h>;
|
||||||
my @sources = <$source_dir/*.c>;
|
my @sources = <$source_dir/*.c>;
|
||||||
|
|
Loading…
Reference in a new issue