extract wine_test_dsp_files from C_SRCS variable

Ilya Basin basinilya at gmail.com
Mon Mar 22 04:49:41 CDT 2010


Looks like after this commit:
http://source.winehq.org/git/wine.git/?a=commit;h=6164ce2d820546ae5b26eb504bc108091c5679ea

the command
./tools/winapi/msvcmaker --no-wine
silently fails: only 'winetest.dsp' created

This patch should fix this
---
 tools/winapi/msvcmaker |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker
index 957e232..d03ce3f 100755
--- a/tools/winapi/msvcmaker
+++ b/tools/winapi/msvcmaker
@@ -202,7 +202,7 @@ MAKEFILE_IN: foreach my $makefile_in_file (@makefile_in_files) {
             push @imports, $;
 	} elsif (/^EXTRALIBS\s*=\s*/) {
             push @imports, map { /^-l(dxerr8|dxerr9|dxguid|strmiids|uuid)$/ ? $1 : () } split /\s+/s, $';
-	} elsif (/^CTESTS\s*=\s*/) {
+	} elsif (/^CTESTS\s*=\s*/ || ( ($makefile_in_file =~ /\/tests\/Makefile\.in$/) && /^C_SRCS\s*=\s*/ ) ) {
 	    my @files = split /\s+/s, $';
 
 	    my $dir = $makefile_in_file;
-- 
1.6.6.1




More information about the wine-patches mailing list