Commit fabc25d8 authored by Alexandre Julliard's avatar Alexandre Julliard

makefiles: Add support in make_makefiles for flags in sfd files.

parent a3fcb8dc
......@@ -11,7 +11,3 @@ FONT_SRCS = \
tahoma.sfd \
tahomabd.sfd \
wingding.sfd
# Make sure that make_makefiles sees the generated rules
install install-lib::
clean::
......@@ -266,6 +266,24 @@ sub get_makedep_flags($)
my %flags;
open FILE, $file or die "cannot open $file";
if ($file =~ /\.sfd$/)
{
while (<FILE>)
{
next unless /^UComments:\s*\"(.*)\"$/;
foreach my $pragma (split /\+AAoA/, $1)
{
next unless $pragma =~ /^#\s*pragma\s+makedep\s+(.*)/;
foreach my $flag (split /\s+/, $1)
{
$flags{$flag} = 1;
last if $flag eq "font";
}
}
}
}
else
{
while (<FILE>)
{
next unless /^#\s*pragma\s+makedep\s+(.*)/;
......@@ -275,6 +293,7 @@ sub get_makedep_flags($)
$flags{$flag} = 1;
}
}
}
close FILE;
return %flags;
}
......@@ -342,7 +361,12 @@ sub assign_sources_to_makefiles(@)
elsif ($name =~ /\.rh$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.inl$/) { push @{${$make}{"=HEADER_SRCS"}}, $name; }
elsif ($name =~ /\.svg$/) { push @{${$make}{"=SVG_SRCS"}}, $name; }
elsif ($name =~ /\.sfd$/) { push @{${$make}{"=FONT_SRCS"}}, $name; }
elsif ($name =~ /\.sfd$/)
{
${${$make}{"=flags"}}{"clean"} = 1 if defined $flags{"font"};
${${$make}{"=flags"}}{"install-lib"} = 1 if defined $flags{"install"};
push @{${$make}{"=FONT_SRCS"}}, $name;
}
elsif ($name =~ /\.c$/)
{
${${$make}{"=flags"}}{"staticimplib"} = 1 if defined $flags{"implib"};
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment