[2/4] winemaker: Generate def file from spec file with winebuild (try 2)

André Hentschel nerv at dawncrow.de
Tue Oct 9 16:21:46 CDT 2012


---
 tools/winemaker |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/tools/winemaker b/tools/winemaker
index ef18513..26a9782 100755
--- a/tools/winemaker
+++ b/tools/winemaker
@@ -2503,6 +2503,7 @@ sub generate_project_files($)
   }
   print FILEO "\n\n";
   print FILEO "### Tools\n\n";
+  print FILEO "WINEBUILD = winebuild\n";
   print FILEO "CC = winegcc\n";
   print FILEO "CXX = wineg++\n";
   print FILEO "RC = wrc\n";
@@ -2569,6 +2570,7 @@ sub generate_project_files($)
         print FILEO "\$(${canon}_MODULE).so: \$(${canon}_OBJS) \$(${canon}_MODULE:.dll=.def)\n";
       } elsif (@$target[$T_TYPE] == $TT_DLL) {
         print FILEO "\$(${canon}_MODULE).so: \$(${canon}_OBJS) \$(${canon}_MODULE:.dll=.spec)\n";
+        print FILEO "\t\$(WINEBUILD) --def -E \$(${canon}_MODULE:.dll=.spec) -o lib\$(${canon}_MODULE:.dll=.def)\n";
       } else {
         print FILEO "\$(${canon}_MODULE): \$(${canon}_OBJS)\n";
       }
-- 
1.7.4.1



-- 

Best Regards, André Hentschel


More information about the wine-patches mailing list