From 6d11ecfff4d989114eebe0a96051e89f2cba197c Mon Sep 17 00:00:00 2001 From: Rob Shearman Date: Thu, 25 Sep 2008 16:43:03 +0100 Subject: [PATCH] msvcmaker: Fix the generated filename for the spec file for modules with extensions other than .dll. --- tools/winapi/msvcmaker | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker index b900eab1d48..f32f28af55b 100755 --- a/tools/winapi/msvcmaker +++ b/tools/winapi/msvcmaker @@ -420,6 +420,9 @@ sub _generate_dsp($$) { $progress_current++; $output->progress("$dsp_file (file $progress_current of $progress_max)"); + my $base_module = $module; + $base_module =~ s/\.(?:dll)$//; + my @c_srcs = @{$modules{$module}{c_srcs}}; my @source_files = @{$modules{$module}{source_files}}; my @header_files = @{$modules{$module}{header_files}}; @@ -429,7 +432,7 @@ sub _generate_dsp($$) { $project !~ /^(?:gdi32)_.+?$/ && $project !~ /_test$/) { - push @source_files, "$project.spec"; + push @source_files, "$base_module.spec"; @source_files = sort(@source_files); } -- 2.11.4.GIT