X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/f676c7ffd55882af0a8bbe5961b2100ed2c33267..659ade8c5b948b775ba278837659f10bf66b4844:/distrib/msw/tmake/filelist.t?ds=sidebyside diff --git a/distrib/msw/tmake/filelist.t b/distrib/msw/tmake/filelist.t index d8a99c1f35..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 @@ -47,10 +71,9 @@ $fileflags =~ s/OLE/O/; $fileflags =~ s/Socket/S/; $fileflags =~ s/NotMSW/U/; - $fileflags =~ s/NotGTK/R/; - $fileflags =~ s/NotX/X/; $fileflags =~ s/NotOS2/P/; $fileflags =~ s/LowLevel/L/; + $fileflags =~ s/Theme/T/; if ( $filetype eq "Common" ) { $wxCommon{$filename} = $fileflags; @@ -60,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" ) { @@ -68,8 +93,12 @@ $wxUNIV{$filename} = $fileflags; } elsif ( $filetype eq "MGL" ) { $wxMGL{$filename} = $fileflags; + } elsif ( $filetype eq "Micro" ) { + $wxMICRO{$filename} = $fileflags; } elsif ( $filetype eq "OS2" ) { $wxOS2PM{$filename} = $fileflags; + } elsif ( $filetype eq "X11" ) { + $wxX11{$filename} = $fileflags; } elsif ( $filetype eq "HTML" ) { $wxHTML{$filename} = $fileflags; } elsif ( $filetype eq "Unix" ) { @@ -84,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/ ) { @@ -94,6 +125,10 @@ $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" ) { $wxUNIVINCLUDE{$filename} = $fileflags; } elsif ( $filetype eq "UnixH" ) { @@ -102,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; @@ -110,4 +147,4 @@ close(FILELIST); #$} -#! vim:sw=4:ts=4:list:et +#! vim:sw=4:ts=4:list:et:ft=perl