André Hentschel : winemaker: Check for more project files.

Alexandre Julliard julliard at winehq.org
Tue May 11 12:09:37 CDT 2010


Module: wine
Branch: master
Commit: bb8f2c4b17eb10d42106a548708bf54293c4637d
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=bb8f2c4b17eb10d42106a548708bf54293c4637d

Author: André Hentschel <nerv at dawncrow.de>
Date:   Mon May 10 19:58:12 2010 +0200

winemaker: Check for more project files.

---

 tools/winemaker |   15 ++++++++-------
 1 files changed, 8 insertions(+), 7 deletions(-)

diff --git a/tools/winemaker b/tools/winemaker
index 60fe31f..d07c97f 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -1231,7 +1231,7 @@ sub source_scan_directory($$$$)
   # If we don't find any executable/library then we might make up targets
   # from the list of .dsp/.mak files we find since they usually have the
   # same name as their target.
-  my @dsp_files=();
+  my @prj_files=();
   my @mak_files=();
 
   if (defined $opt_single_target or $dirname eq "") {
@@ -1291,8 +1291,8 @@ sub source_scan_directory($$$$)
 	if ($dentry =~ /^stdafx.h$/i && !(@$project_settings[$T_FLAGS] & $TF_NOMFC)) {
 	  @$project_settings[$T_FLAGS]|=$TF_MFC;
 	}
-      } elsif ($dentry =~ /\.dsp$/i) {
-	push @dsp_files,"$dentry";
+      } elsif ($dentry =~ /\.(dsp|vcproj)$/i) {
+	push @prj_files,"$dentry";
 	$has_win_project=1;
       } elsif ($dentry =~ /\.mak$/i) {
 	push @mak_files,"$dentry";
@@ -1353,13 +1353,14 @@ sub source_scan_directory($$$$)
     if ($target_count == 0) {
       # Try to come up with a target list based on .dsp/.mak files
       my $prj_list;
-      if (@dsp_files > 0) {
-	$prj_list=\@dsp_files;
+      if (@prj_files > 0) {
+        print "Projectfile found! You might want to try using it directly.";
+        $prj_list=\@prj_files;
       } else {
-	$prj_list=\@mak_files;
+        $prj_list=\@mak_files;
       }
       foreach my $filename (@$prj_list) {
-	$filename =~ s/\.(dsp|mak)$//i;
+	$filename =~ s/\.(dsp|vcproj|mak)$//i;
 	if ($opt_target_type == $TT_DLL) {
 	  $filename = "$filename.dll";
 	}




More information about the wine-cvs mailing list