winemaker: Be less picky when detecting the target type

André Hentschel nerv at dawncrow.de
Fri Nov 11 12:13:15 CST 2011


seen some "broken" project files which still worked with msvc but not with winemaker
---
 tools/winemaker |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/tools/winemaker b/tools/winemaker
index 2ee79ea..921f8ef 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -589,16 +589,16 @@ sub source_scan_project_file($$$)
                 #print $prj_name;
                 next;
             } elsif (/^# TARGTYPE/) {
-                if (/[[:space:]]0x0101$/) {
+                if (/0x.*101$/) {
                     # Application
                     $prj_target_type=$TT_GUIEXE;
-                }elsif (/[[:space:]]0x0102$/) {
+                }elsif (/0x.*102$/) {
                     # Dynamic-Link Library
                     $prj_target_type=$TT_DLL;
-                }elsif (/[[:space:]]0x0103$/) {
+                }elsif (/0x.*103$/) {
                     # Console Application
                     $prj_target_type=$TT_CUIEXE;
-                }elsif (/[[:space:]]0x0104$/) {
+                }elsif (/0x.*104$/) {
                     # Static Library
                 }
                 next;
-- 

Best Regards, André Hentschel



More information about the wine-patches mailing list