wine/tools/winemaker/winemaker.man.in

250 lines
8.2 KiB
Groff
Raw Normal View History

.TH WINEMAKER 1 "Jan 2012" "@PACKAGE_STRING@" "Wine Developers Manual"
2000-11-06 05:41:23 +00:00
.SH NAME
winemaker \- generate a build infrastructure for compiling Windows programs on Unix
.SH SYNOPSIS
.B "winemaker "
[
.BR "--nobanner " "] [ " "--backup " "| " "--nobackup " "] [ "--nosource-fix "
2000-11-06 05:41:23 +00:00
]
.br
[
.BR "--lower-none " "| " "--lower-all " "| " "--lower-uppercase "
2000-11-06 05:41:23 +00:00
]
.br
[
.BR "--lower-include " "| " "--nolower-include " ]\ [ " --mfc " "| " "--nomfc "
]
2000-11-06 05:41:23 +00:00
.br
[
.BR "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll " "| " "--lib "
2000-11-06 05:41:23 +00:00
]
.br
[
.BI "-D" macro "\fR[=\fIdefn\fR] ] [" "\ " "-I" "dir\fR ]\ [ " "-P" "dir\fR ] [ " "-i" "dll\fR ] [ " "-L" "dir\fR ] [ " "-l" "library "
2000-11-06 05:41:23 +00:00
]
.br
[
.BR "--nodlls " "] [ " "--nomsvcrt " "] [ " "--interactive " "] [ " "--single-target \fIname\fR "
2000-11-06 05:41:23 +00:00
]
.br
[
.BR "--generated-files " "] [ " "--nogenerated-files " "]
2009-05-01 09:37:06 +00:00
.br
[
.BR "--wine32 " "]
2009-04-02 16:53:28 +00:00
.br
.IR " work_directory" " | " "project_file" " | " "workspace_file"
2000-11-06 05:41:23 +00:00
.SH DESCRIPTION
.PP
.B winemaker
is a perl script designed to help you bootstrap the
process of converting your Windows sources to Winelib programs.
2000-11-06 05:41:23 +00:00
.PP
In order to do this \fBwinemaker\fR can perform the following operations:
2000-11-06 05:41:23 +00:00
.PP
- rename your source files and directories to lowercase in the event they
2000-11-06 05:41:23 +00:00
got all uppercased during the transfer.
.PP
2013-07-17 14:45:18 +00:00
- perform DOS to Unix (CRLF to LF) conversions.
2000-11-06 05:41:23 +00:00
.PP
- scan the include statements and resource file references to replace the
2000-11-06 05:41:23 +00:00
backslashes with forward slashes.
.PP
- during the above step \fBwinemaker\fR will also perform a case insensitive search
of the referenced file in the include path and rewrite the include statement
2000-11-06 05:41:23 +00:00
with the right case if necessary.
.PP
- \fBwinemaker\fR will also check other more exotic issues like \fI#pragma pack\fR
usage, use of \fIafxres.h\fR in non MFC projects, and more. Whenever it
encounters something out of the ordinary, it will warn you about it.
2000-11-06 05:41:23 +00:00
.PP
- \fBwinemaker\fR can also scan a complete directory tree at once, guess what are
the executables and libraries you are trying to build, match them with
source files, and generate the corresponding \fIMakefile\fR.
2000-11-06 05:41:23 +00:00
.PP
- finally \fBwinemaker\fR will generate a global \fIMakefile\fR for normal use.
2000-11-06 05:41:23 +00:00
.PP
- \fBwinemaker\fR knows about MFC-based project and will generate customized files.
2000-11-06 05:41:23 +00:00
.PP
- \fBwinemaker\fR can read existing project files. It supports dsp, dsw, vcproj and sln files.
2009-04-02 16:53:28 +00:00
.PP
2000-11-06 05:41:23 +00:00
.SH OPTIONS
.TP
.B --nobanner
Disable the printing of the banner.
2000-11-06 05:41:23 +00:00
.TP
.B --backup
Perform a backup of all the modified source files. This is the default.
2000-11-06 05:41:23 +00:00
.TP
.B --nobackup
Do not backup modified source files.
2000-11-06 05:41:23 +00:00
.TP
.B --nosource-fix
Do no try to fix the source files (e.g. DOS to Unix
conversion). This prevents complaints if the files are readonly.
.TP
.B --lower-all
Rename all files and directories to lowercase.
2000-11-06 05:41:23 +00:00
.TP
.B --lower-uppercase
Only rename files and directories that have an all uppercase name.
So \fIHELLO.C\fR would be renamed but not \fIWorld.c\fR.
2000-11-06 05:41:23 +00:00
.TP
.B --lower-none
Do not rename files and directories to lower case. Note
that this does not prevent the renaming of a file if its extension cannot
2000-11-06 05:41:23 +00:00
be handled as is, e.g. ".Cxx". This is the default.
.TP
.B --lower-include
When the file corresponding to an include statement (or other form of file reference
for resource files) cannot be found, convert that filename to lowercase. This is the default.
.TP
.B --nolower-include
Do not modify the include statement if the referenced file cannot be found.
.TP
.BR "--guiexe " "| " "--windows"
Assume a graphical application when an executable target or a target of
unknown type is found. This is the default.
2000-11-06 05:41:23 +00:00
.TP
.BR "--cuiexe " "| " "--console"
Assume a console application when an executable target or a target of
unknown type is found.
2000-11-06 05:41:23 +00:00
.TP
.B --dll
Assume a dll when a target of unknown type is found, i.e. when \fBwinemaker\fR is unable to
determine whether it is an executable, a dll, or a static library,
.TP
.B --lib
Assume a static library when a target of unknown type is found, i.e. when \fBwinemaker\fR is
unable to determine whether it is an executable, a dll, or a static library,
2000-11-06 05:41:23 +00:00
.TP
.B --mfc
Specify that the targets are MFC based. In such a case \fBwinemaker\fR adapts
2010-05-13 20:10:02 +00:00
the include and library paths accordingly, and links the target with the
MFC library.
2000-11-06 05:41:23 +00:00
.TP
.B --nomfc
Specify that targets are not MFC-based. This option disables use of MFC libraries
even if \fBwinemaker\fR encounters files \fIstdafx.cpp\fR or \fIstdafx.h\fR that would cause it
2013-07-17 14:45:18 +00:00
to enable MFC automatically if neither \fB--nomfc\fR nor \fB--mfc\fR was specified.
2000-11-06 05:41:23 +00:00
.TP
.BI -D macro "\fR[\fB=\fIdefn\fR]"
Add the specified macro definition to the global list of macro definitions.
2000-11-06 05:41:23 +00:00
.TP
.BI -I dir
Append the specified directory to the global include path.
2000-11-06 05:41:23 +00:00
.TP
.BI -P dir
Append the specified directory to the global dll path.
2000-11-06 05:41:23 +00:00
.TP
.BI -i dll
Add the Winelib library to the global list of Winelib libraries to import.
.TP
.BI -L dir
Append the specified directory to the global library path.
2009-04-02 16:53:28 +00:00
.TP
.BI -l library
Add the specified library to the global list of libraries to link with.
2000-11-06 05:41:23 +00:00
.TP
.B --nodlls
Do not use the standard set of Winelib libraries for imports.
That is, any DLL your code uses must be explicitly passed with \fB-i\fR options.
The standard set of libraries is: \fIodbc32.dll\fR, \fIodbccp32.dll\fR, \fIole32.dll\fR,
\fIoleaut32.dll\fR and \fIwinspool.drv\fR.
2009-09-12 12:37:40 +00:00
.TP
.B --nomsvcrt
Set some options to tell \fBwinegcc\fR not to compile against msvcrt.
Use this option if you have cpp-files that include \fI<string>\fR.
2009-09-12 12:37:40 +00:00
.TP
.B --interactive
Use interactive mode. In this mode \fBwinemaker\fR will ask you to
confirm the list of targets for each directory, and then to provide directory and
2000-11-06 05:41:23 +00:00
target specific options.
.TP
2013-07-17 14:45:18 +00:00
.BI --single-target " name"
Specify that there is only one target, called \fIname\fR.
.TP
.B --generated-files
Generate the \fIMakefile\fR. This is the default.
.TP
.B --nogenerated-files
Do not generate the \fIMakefile\fR.
2009-05-01 09:37:06 +00:00
.TP
.B --wine32
Generate a 32-bit target. This is useful on wow64 systems.
Without that option the default architecture is used.
2000-11-06 05:41:23 +00:00
.SH EXAMPLES
.PP
Here is a typical \fBwinemaker\fR use:
2000-11-06 05:41:23 +00:00
.PP
2009-04-02 16:53:28 +00:00
$ winemaker --lower-uppercase -DSTRICT .
2000-11-06 05:41:23 +00:00
.PP
The above tells \fBwinemaker\fR to scan the current directory and its
subdirectories for source files. Whenever if finds a file or directory which
name is all uppercase, it should rename it to lowercase. It should then fix
all these source files for compilation with Winelib and generate \fIMakefile\fRs.
The \fB-DSTRICT\fR specifies that the \fBSTRICT\fR macro must be set when compiling
these sources. Finally a \fIMakefile\fR will be created.
2000-11-06 05:41:23 +00:00
.PP
The next step would be:
.PP
$ make
.PP
If at this point you get compilation errors (which is quite likely for a
reasonably sized project) then you should consult the Winelib User Guide to
find tips on how to resolve them.
2000-11-06 05:41:23 +00:00
.PP
2009-04-02 16:53:28 +00:00
For an MFC-based project you would have to run the following commands instead:
2000-11-06 05:41:23 +00:00
.PP
2009-04-02 16:53:28 +00:00
$ winemaker --lower-uppercase --mfc .
2000-11-06 05:41:23 +00:00
.br
2009-04-02 16:53:28 +00:00
$ make
.PP
For an existing project-file you would have to run the following commands:
.PP
2009-09-12 12:37:40 +00:00
$ winemaker myproject.dsp
2000-11-06 05:41:23 +00:00
.br
$ make
.PP
.SH TODO / BUGS
In some cases you will have to edit the \fIMakefile\fR or source files manually.
2000-11-06 05:41:23 +00:00
.PP
Assuming that the windows executable/library is available, we could
use \fBwinedump\fR to determine what kind of executable it is (graphical
or console), which libraries it is linked with, and which functions it
exports (for libraries). We could then restore all these settings for the
2009-08-16 13:33:11 +00:00
corresponding Winelib target.
2000-11-06 05:41:23 +00:00
.PP
Furthermore \fBwinemaker\fR is not very good at finding the library containing the
executable: it must either be in the current directory or in the
.BR LD_LIBRARY_PATH .
2000-11-06 05:41:23 +00:00
.PP
\fBwinemaker\fR does not support message files and the message compiler yet.
2000-11-06 05:41:23 +00:00
.PP
Bugs can be reported on the
.UR https://bugs.winehq.org
.B Wine bug tracker
.UE .
2009-09-12 12:37:40 +00:00
.SH AUTHORS
François Gouget for CodeWeavers
.br
2009-09-12 12:37:40 +00:00
Dimitrie O. Paun
.br
2009-09-12 12:37:40 +00:00
André Hentschel
.SH AVAILABILITY
.B winemaker
is part of the Wine distribution, which is available through WineHQ,
the
.UR https://www.winehq.org/
.B Wine development headquarters
.UE .
.SH SEE ALSO
.BR wine (1),
.br
.UR https://www.winehq.org/help
.B Wine documentation and support
.UE .