Commit de928a09 authored by Francois Gouget's avatar Francois Gouget Committed by Alexandre Julliard

msvcmaker: We don't use .dbg.c files anymore.

parent 19a85f34
...@@ -768,18 +768,6 @@ sub _generate_dsp($$) { ...@@ -768,18 +768,6 @@ sub _generate_dsp($$) {
$source_file = ".\\$source_file"; $source_file = ".\\$source_file";
} }
if($source_file =~ /^(.*?)\.spec$/) {
my $basename = $1;
$basename = "$basename.dll" if $basename !~ /\..{1,3}$/;
my $dbg_c_file = "$basename.dbg.c";
print OUT "# Begin Source File\r\n";
print OUT "\r\n";
print OUT "SOURCE=$dbg_c_file\r\n";
print OUT "# End Source File\r\n";
}
print OUT "# Begin Source File\r\n"; print OUT "# Begin Source File\r\n";
print OUT "\r\n"; print OUT "\r\n";
...@@ -791,43 +779,16 @@ sub _generate_dsp($$) { ...@@ -791,43 +779,16 @@ sub _generate_dsp($$) {
my $spec_file = $source_file; my $spec_file = $source_file;
my $def_file = "$basename.def"; my $def_file = "$basename.def";
$basename = "$basename.dll" if $basename !~ /\..{1,3}$/;
my $dbg_file = "$basename.dbg";
my $dbg_c_file = "$basename.dbg.c";
my $srcdir = "."; # FIXME: Is this really always correct? my $srcdir = "."; # FIXME: Is this really always correct?
print OUT "# Begin Custom Build\r\n"; print OUT "# Begin Custom Build\r\n";
print OUT "InputPath=$spec_file\r\n"; print OUT "InputPath=$spec_file\r\n";
print OUT "\r\n"; print OUT "\r\n";
print OUT "BuildCmds= \\\r\n"; print OUT "BuildCmds= \\\r\n";
print OUT "\t..\\..\\tools\\winebuild\\$output_dir\\winebuild.exe --def $spec_file > $def_file \\\r\n"; print OUT "\t..\\..\\tools\\winebuild\\$output_dir\\winebuild.exe --def $spec_file > $def_file\r\n";
if($project =~ /^ntdll$/) {
my $n = 0;
foreach my $c_src (@c_srcs) {
if($n++ > 0) {
print OUT "\techo $c_src >> $dbg_file \\\r\n";
} else {
print OUT "\techo $c_src > $dbg_file \\\r\n";
}
}
print OUT "\t..\\..\\tools\\winebuild\\$output_dir\\winebuild.exe";
print OUT " -o $dbg_c_file --debug -C$srcdir $dbg_file \\\r\n";
} else {
my $c_srcs = join(" ", grep(/\.c$/, @c_srcs));
print OUT "\t..\\..\\tools\\winebuild\\$output_dir\\winebuild.exe";
print OUT " -o $dbg_c_file --debug -C$srcdir $c_srcs \\\r\n";
}
print OUT "\t\r\n";
print OUT "\r\n"; print OUT "\r\n";
print OUT "\"$def_file\" : \$(SOURCE) \"\$(INTDIR)\" \"\$(OUTDIR)\"\r\n"; print OUT "\"$def_file\" : \$(SOURCE) \"\$(INTDIR)\" \"\$(OUTDIR)\"\r\n";
print OUT " \$(BuildCmds)\r\n"; print OUT " \$(BuildCmds)\r\n";
print OUT "\r\n";
print OUT "\"$dbg_c_file\" : \$(SOURCE) \"\$(INTDIR)\" \"\$(OUTDIR)\"\r\n";
print OUT " \$(BuildCmds)\r\n";
print OUT "# End Custom Build\r\n"; print OUT "# End Custom Build\r\n";
} elsif($source_file =~ /([^\\]*?\.h)$/) { } elsif($source_file =~ /([^\\]*?\.h)$/) {
my $h_file = $1; my $h_file = $1;
......
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