winemaker: Only generate spec files for dlls
Francois Gouget
fgouget at codeweavers.com
Thu Sep 26 20:15:07 CDT 2002
That's another of the recent changes in the way Winelib applications are
built: a lot of stuff has been moved from spec files to the winebuild
command line. The result is that executables don't need spec files
anymore (except in special cases?).
Changelog:
Francois Gouget <fgouget at codeweavers.com>
* tools/winemaker
Executables don't need spec files
--
Francois Gouget
fgouget at codeweavers.com
-------------- next part --------------
Index: tools/winemaker
===================================================================
RCS file: /home/wine/wine/tools/winemaker,v
retrieving revision 1.54
diff -u -r1.54 winemaker
--- tools/winemaker 26 Sep 2002 03:20:59 -0000 1.54
+++ tools/winemaker 26 Sep 2002 21:26:32 -0000
@@ -1793,7 +1793,7 @@
generate_list("${canon}_C_SRCS",1,@$target[$T_SOURCES_C]);
generate_list("${canon}_CXX_SRCS",1,@$target[$T_SOURCES_CXX]);
generate_list("${canon}_RC_SRCS",1,@$target[$T_SOURCES_RC]);
- generate_list("${canon}_SPEC_SRCS",1,[ "@$target[$T_NAME].spec" ]);
+ generate_list("${canon}_SPEC_SRCS",1,[ (@$target[$T_TYPE] == $TT_DLL?"@$target[$T_NAME].spec":"") ]);
generate_list("${canon}_DLL_PATH",1,@$target[$T_DLL_PATH]);
generate_list("${canon}_DLLS",1,@$target[$T_DLLS]);
generate_list("${canon}_LIBRARY_PATH",1,@$target[$T_LIBRARY_PATH]);
@@ -1881,11 +1881,11 @@
$canon =~ s/_so$//;
if (@$target[$T_TYPE] == $TT_GUIEXE) {
- $mode = '-m gui';
+ $mode = "-m gui -exe @$target[$T_NAME]";
} elsif (@$target[$T_TYPE] == $TT_CUIEXE) {
- $mode = '-m cui';
+ $mode = "-m cui -exe @$target[$T_NAME]";
} else {
- $mode = '';
+ $mode = "";
}
if (@$target[$T_FLAGS] & $TF_WRAPPER) {
@@ -1939,7 +1939,9 @@
close(FILEO);
foreach my $target (@{@$project[$P_TARGETS]}) {
- generate_spec_file(@$project[$P_PATH],$target,$project_settings);
+ if (@$target[$T_TYPE] eq $TT_DLL) {
+ generate_spec_file(@$project[$P_PATH],$target,$project_settings);
+ }
if (@$target[$T_FLAGS] & $TF_WRAPPER) {
generate_wrapper_file(@$project[$P_PATH],$target);
}
More information about the wine-patches
mailing list