Rob Shearman : msvcmaker: Add support for building wine.lib.
Alexandre Julliard
julliard at winehq.org
Tue Sep 30 11:15:30 CDT 2008
Module: wine
Branch: master
Commit: 5376d37f55881e34d7a49f565e0f5d0ca37afe4e
URL: http://source.winehq.org/git/wine.git/?a=commit;h=5376d37f55881e34d7a49f565e0f5d0ca37afe4e
Author: Rob Shearman <robertshearman at gmail.com>
Date: Thu Sep 25 16:43:55 2008 +0100
msvcmaker: Add support for building wine.lib.
---
tools/winapi/msvcmaker | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
diff --git a/tools/winapi/msvcmaker b/tools/winapi/msvcmaker
index afc2281..1ab4aaf 100755
--- a/tools/winapi/msvcmaker
+++ b/tools/winapi/msvcmaker
@@ -215,6 +215,10 @@ MAKEFILE_IN: foreach my $makefile_in_file (@makefile_in_files) {
close(IN);
+ if (!$module && $makefile_in_file eq "libs/wine/Makefile.in") {
+ $module = "wine.lib";
+ }
+
next if !$module;
my $c_srcs = [];
@@ -640,6 +644,10 @@ sub _generate_dsp($$) {
push @defines2, "__WINETEST_OUTPUT_DIR=\\\"$output_dir2\\\"";
push @defines2, qw(__i386__ _X86_);
+ if ($project eq "wine") {
+ push @defines2, "WINE_UNICODE_API=";
+ }
+
if ($project =~ /_test$/) {
push @includes, "$msvc_wine_dir\\$output_dir";
}
@@ -779,6 +787,10 @@ sub _generate_dsp($$) {
print OUT "SOURCE=$source_file\r\n";
+ if ($project eq "wine" && $source_file eq ".\\config.c") {
+ print OUT "# ADD CPP /D BINDIR=\\\"\\\" /D DLLDIR=\\\"\\\" /D LIB_TO_BINDIR=\\\"\\\" /D LIB_TO_DLLDIR=\\\"\\\" /D BIN_TO_DLLDIR=\\\"\\\" /D LIB_TO_DATADIR=\\\"\\\" /D BIN_TO_DATADIR=\\\"\\\"\r\n";
+ }
+
if($source_file =~ /^(.*?)\.spec$/) {
my $basename = $1;
More information about the wine-cvs
mailing list