Rob Shearman : msvcmaker: Fix the generated filename for the spec file for modules with extensions other than .dll.
Alexandre Julliard
julliard at winehq.org
Tue Sep 30 11:15:25 CDT 2008
Module: wine
Branch: master
Commit: 6d11ecfff4d989114eebe0a96051e89f2cba197c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=6d11ecfff4d989114eebe0a96051e89f2cba197c
Author: Rob Shearman <robertshearman at gmail.com>
Date: Thu Sep 25 16:43:03 2008 +0100
msvcmaker: Fix the generated filename for the spec file for modules with extensions other than .dll.
---
tools/winapi/msvcmaker | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker
index b900eab..f32f28a 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);
}
More information about the wine-cvs
mailing list