X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/49f7215796908beae869ad674e1c80d78ec54c02..861eef72aa270e2d34f7b7d081fffa2b4f7055dc:/distrib/msw/tmake/filelist.t?ds=sidebyside diff --git a/distrib/msw/tmake/filelist.t b/distrib/msw/tmake/filelist.t index 4c1b83f364..63abfc7ee9 100644 --- a/distrib/msw/tmake/filelist.t +++ b/distrib/msw/tmake/filelist.t @@ -7,8 +7,28 @@ #! Version: $Id$ #!############################################################################# #${ + use lib './lib'; + use wxFileInfo; + open(FILELIST, "filelist.txt") or die "Can't open filelist file: $!\n"; + #! maps file types to array names, for example an entry of the form + #! FooH => 'wxXYZ' means that all files with type "FooH" will be + #! added to an array named @wxXYZ + my %type_2_array = ( + Common => "wxCommon", + Generic => "wxGeneric", + GenericH => "wxGenericInclude", + HTML => "wxHtml", + HtmlH => "wxHtmlInclude", + Motif => "wxMotif", + MotifH => "wxMotifInclude", + ProtoH => "wxProtocolInclude", + Unix => "wxUnix", + UnixH => "wxUnixInclude", + WXH => "wxWxInclude", + ); + line: while ( defined($_ = ) ) { chomp; @@ -16,7 +36,7 @@ next line if ( $_ eq "" or /^#/ ); #! if ( $verbose ) { - #! print STDERR "Processing line: '$_'\n"; + #! print STDERR "Processing line: '$_'\n"; #! } my @fields = split /\t/; @@ -36,6 +56,10 @@ print STDERR "File $filename: type '$filetype', flags '$fileflags'\n"; } + #! save all information in @wxALL + my $fileinfo = new wxFileInfo( $filename, $filetype, $fileflags ); + push @wxALL, $fileinfo; + #! this is a bit stupid but all templates are written using the old #! single letter flags which became so unreadable that I decided to #! replace them with more readable strings, but it was easier to do @@ -49,6 +73,7 @@ $fileflags =~ s/NotMSW/U/; $fileflags =~ s/NotOS2/P/; $fileflags =~ s/LowLevel/L/; + $fileflags =~ s/Theme/T/; if ( $filetype eq "Common" ) { $wxCommon{$filename} = $fileflags; @@ -58,6 +83,8 @@ $wxMSW{$filename} = $fileflags; } elsif ( $filetype eq "Mac" ) { $wxMAC{$filename} = $fileflags; + } elsif ( $filetype eq "Cocoa" ) { + $wxCOCOA{$filename} = $fileflags; } elsif ( $filetype eq "Motif" ) { $wxMOTIF{$filename} = $fileflags; } elsif ( $filetype eq "GTK" ) { @@ -86,6 +113,8 @@ $wxHTMLINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "MacH" ) { $wxMACINCLUDE{$filename} = $fileflags; + } elsif ( $filetype eq "CocoaH" ) { + $wxCOCOAINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "MotifH" ) { $wxMOTIFINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "MSWH" && $fileflags =~ m/O/ ) { @@ -96,6 +125,8 @@ $wxGTKINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "OS2H" ) { $wxOS2PMINCLUDE{$filename} = $fileflags; + } elsif ( $filetype eq "MGLH" ) { + $wxMGLINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "X11H" ) { $wxX11INCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "UnivH" ) { @@ -106,6 +137,8 @@ $wxGENERICINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "MacR" ) { $wxMACRESOURCE{$filename} = $fileflags; + } elsif ( $filetype eq "CocoaR" ) { + $wxCOCOARESOURCE{$filename} = $fileflags; } else { warn "Unknown file type $filetype for $filename, ignoring.\n"; next line; @@ -114,4 +147,4 @@ close(FILELIST); #$} -#! vim:sw=4:ts=4:list:et +#! vim:sw=4:ts=4:list:et:ft=perl