#! 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($_ = <FILELIST>) ) {
chomp;
next line if ( $_ eq "" or /^#/ );
#! if ( $verbose ) {
- #! print STDERR "Processing line: '$_'\n";
+ #! print STDERR "Processing line: '$_'\n";
#! }
my @fields = split /\t/;
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
$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" ) {
$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/ ) {
$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" ) {
$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;
close(FILELIST);
#$}
-#! vim:sw=4:ts=4:list:et
+#! vim:sw=4:ts=4:list:et:ft=perl