Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
3abe79d7
Commit
3abe79d7
authored
Jan 15, 2012
by
André Hentschel
Committed by
Alexandre Julliard
Jan 16, 2012
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winemaker: Add command line option for compiling static libraries.
parent
a6b209d8
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
8 deletions
+26
-8
winemaker
tools/winemaker
+11
-1
winemaker.de.man.in
tools/winemaker.de.man.in
+6
-3
winemaker.man.in
tools/winemaker.man.in
+9
-4
No files found.
tools/winemaker
View file @
3abe79d7
...
...
@@ -1433,6 +1433,8 @@ sub source_scan_directory($$$$)
$name
=~
s
+
(
/|\.
[
^.
]
*
)
$+
+
;
if
(
$opt_target_type
==
$TT_DLL
)
{
$name
=
canonize
(
$name
)
.
".dll"
;
}
elsif
(
$opt_target_type
==
$TT_LIB
)
{
$name
=
"lib"
.
canonize
(
$name
)
.
".a"
;
}
else
{
$name
=
canonize
(
$name
)
.
".exe"
;
}
...
...
@@ -1551,6 +1553,12 @@ sub source_scan_directory($$$$)
push
@local_depends
,
"$target_name"
;
push
@local_libs
,
$target_name
;
push
@
{
@$target
[
$T_ARFLAGS
]},(
"rc"
);
}
elsif
(
$target_name
=~
/\.a$/
)
{
@$target
[
$T_NAME
]
=
$target_name
;
@$target
[
$T_TYPE
]
=
$TT_LIB
;
push
@local_depends
,
"$target_name"
;
push
@local_libs
,
$target_name
;
push
@
{
@$target
[
$T_ARFLAGS
]},(
"rc"
);
}
else
{
@$target
[
$T_TYPE
]
=
$opt_target_type
;
push
@exe_list
,
$target
;
...
...
@@ -2630,7 +2638,7 @@ sub usage()
print
STDERR
"Usage: winemaker [--nobanner] [--backup|--nobackup] [--nosource-fix]\n"
;
print
STDERR
" [--lower-none|--lower-all|--lower-uppercase]\n"
;
print
STDERR
" [--lower-include|--nolower-include] [--mfc|--nomfc]\n"
;
print
STDERR
" [--guiexe|--windows|--cuiexe|--console|--dll]\n"
;
print
STDERR
" [--guiexe|--windows|--cuiexe|--console|--dll
|--lib
]\n"
;
print
STDERR
" [-Dmacro[=defn]] [-Idir] [-Pdir] [-idll] [-Ldir] [-llibrary]\n"
;
print
STDERR
" [--nodlls] [--nomsvcrt] [--interactive] [--single-target name]\n"
;
print
STDERR
" [--generated-files|--nogenerated-files]\n"
;
...
...
@@ -2690,6 +2698,8 @@ while (@ARGV>0) {
# 'Source'-based method options
}
elsif
(
$arg
eq
"--dll"
)
{
$opt_target_type
=
$TT_DLL
;
}
elsif
(
$arg
eq
"--lib"
)
{
$opt_target_type
=
$TT_LIB
;
}
elsif
(
$arg
eq
"--guiexe"
or
$arg
eq
"--windows"
)
{
$opt_target_type
=
$TT_GUIEXE
;
}
elsif
(
$arg
eq
"--cuiexe"
or
$arg
eq
"--console"
)
{
...
...
tools/winemaker.de.man.in
View file @
3abe79d7
.\" -*- nroff -*-
.TH WINEMAKER 1 "
April 2010
" "@PACKAGE_STRING@" "Wine Developers Manual"
.TH WINEMAKER 1 "
Januar 2012
" "@PACKAGE_STRING@" "Wine Developers Manual"
.SH NAME
winemaker \- Erzeugt eine Buildumgebung um Windows Programme unter Unix zu kompilieren
.SH ÜBERSICHT
...
...
@@ -17,7 +17,7 @@ winemaker \- Erzeugt eine Buildumgebung um Windows Programme unter Unix zu kompi
]
.br
[
.BR "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll "
.BR "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll "
"| " "--lib "
]
.br
[
...
...
@@ -118,7 +118,10 @@ Diese Option ist Standard.
Gibt den Typ(Konsole) der zu erstellenden Anwendung an.
.TP
.B --dll
winemaker wird im Zweifelsfall annehmen, dass es sich um eine Bibliothek handelt.
winemaker wird im Zweifelsfall annehmen, dass es sich um eine DLL handelt.
.TP
.B --lib
winemaker wird im Zweifelsfall annehmen, dass es sich um eine statische Bibliothek handelt.
.TP
.B --mfc
Teilt winemaker mit, dass es sich um MFC-basierten Quellcode handelt.
...
...
tools/winemaker.man.in
View file @
3abe79d7
.\" -*- nroff -*-
.TH WINEMAKER 1 "
Sep 2009
" "@PACKAGE_STRING@" "Wine Developers Manual"
.TH WINEMAKER 1 "
Jan 2012
" "@PACKAGE_STRING@" "Wine Developers Manual"
.SH NAME
winemaker \- generate a build infrastructure for compiling Windows programs on Unix
.SH SYNOPSIS
...
...
@@ -17,7 +17,7 @@ winemaker \- generate a build infrastructure for compiling Windows programs on U
]
.br
[
.BR "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll "
.BR "--guiexe " "| " "--windows " "| " "--cuiexe " "| " "--console " "| " "--dll "
"| " "--lib "
]
.br
[
...
...
@@ -120,8 +120,13 @@ unknown type, it should assume that it is a console application.
.TP
.B --dll
This option tells winemaker that whenever it finds a target of unknown type,
i.e. for which it does not know whether it is an executable or a library,
it should assume it is a library.
i.e. for which it does not know whether it is an executable, a dll, or a static library,
it should assume it is a dll.
.TP
.B --lib
This option tells winemaker that whenever it finds a target of unknown type,
i.e. for which it does not know whether it is an executable, a dll, or a static library,
it should assume it is a static library.
.TP
.B --mfc
Specifies that the targets are MFC based. In such a case winemaker adapts
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment