Re: [3/3] winemaker: Generate def file from spec file with winebuild
André Hentschel <nerv(a)dawncrow.de> writes:
@@ -2576,7 +2577,9 @@ sub generate_project_files($) if (@$target[$T_TYPE] == $TT_DLL && (@$project_settings[$T_FLAGS] & $TF_HASDEF)) { 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 "lib\$(${canon}_MODULE:.dll=.def): \$(${canon}_MODULE:.dll=.spec)\n"; + print FILEO "\t\$(WINEBUILD) --def -E \$(${canon}_MODULE:.dll=.spec) -o lib\$(${canon}_MODULE:.dll=.def)\n\n"; + print FILEO "\$(${canon}_MODULE).so: \$(${canon}_OBJS) \$(${canon}_MODULE:.dll=.spec) lib\$(${canon}_MODULE:.dll=.def)\n";
The .so doesn't depend on the .def. -- Alexandre Julliard julliard(a)winehq.org
participants (1)
-
Alexandre Julliard