Commit a37d8897 authored by Alexandre Julliard's avatar Alexandre Julliard

make_makefiles: Automatically disable 16-bit modules if enable_win16 isn't set.

parent c4c2d980
......@@ -236,7 +236,11 @@ sub update_makefiles(@)
my %make = %{$makefiles{$file}};
my $rules = $make{"=rules"};
my $args = "";
if ($rules eq $makerules{"MAKE_DLL_RULES"}) { $args = ",[dlls],[ALL_DLL_DIRS]"; }
if ($rules eq $makerules{"MAKE_DLL_RULES"})
{
$args = ",[dlls],[ALL_DLL_DIRS]";
$args .= ",[enable_win16]" if $make{"MODULE"} =~ /(16|\.vxd)$/;
}
elsif ($rules eq $makerules{"MAKE_IMPLIB_RULES"}) { $args = ",[dlls],[ALL_IMPLIB_DIRS]"; }
elsif ($rules eq $makerules{"MAKE_TEST_RULES"}) { $args = ",[dlls],[ALL_TEST_DIRS],[enable_tests]"; }
elsif ($rules eq $makerules{"MAKE_PROG_RULES"})
......@@ -246,6 +250,7 @@ sub update_makefiles(@)
$args .= ",ALL_PROGRAM_INSTALL_DIRS" unless $dont_install{$name};
$args .= ",ALL_PROGRAM_BIN_INSTALL_DIRS" if $bin_install{$name};
$args .= "]";
$args .= ",[enable_win16]" if $make{"MODULE"} =~ /16$/;
}
elsif ($file =~ /^[^\/]*\/Makefile$/) { $args = ",[],[ALL_TOP_DIRS]"; }
push @lines, "WINE_CONFIG_MAKEFILE([$file],[$rules]$args)\n";
......
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