Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
wine
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johnny Cai
wine
Commits
959562bd
Commit
959562bd
authored
22 years ago
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
22 years ago
Browse files
Options
Downloads
Patches
Plain Diff
Add the -F option to set a DLL's filename.
parent
c87595c9
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
tools/winebuild/main.c
+10
-0
10 additions, 0 deletions
tools/winebuild/main.c
with
10 additions
and
0 deletions
tools/winebuild/main.c
+
10
−
0
View file @
959562bd
...
...
@@ -93,6 +93,8 @@ static void set_dll_file_name( const char *name )
{
char
*
p
;
if
(
*
DLLFileName
)
return
;
if
((
p
=
strrchr
(
name
,
'\\'
)))
name
=
p
+
1
;
if
((
p
=
strrchr
(
name
,
'/'
)))
name
=
p
+
1
;
strcpy
(
DLLFileName
,
name
);
...
...
@@ -132,6 +134,7 @@ static void do_exe_mode( const char *arg );
static
void
do_module
(
const
char
*
arg
);
static
void
do_heap
(
const
char
*
arg
);
static
void
do_name
(
const
char
*
arg
);
static
void
do_file
(
const
char
*
arg
);
static
void
do_entry
(
const
char
*
arg
);
static
void
do_spec
(
const
char
*
arg
);
static
void
do_def
(
const
char
*
arg
);
...
...
@@ -164,6 +167,7 @@ static const struct option_descr option_table[] =
{
"-d"
,
1
,
do_dimport
,
"-d lib.dll Delay-import the specified library"
},
{
"-H"
,
1
,
do_heap
,
"-H size Set the heap size for a Win16 dll"
},
{
"-N"
,
1
,
do_name
,
"-N dllname Set the DLL name (default: set from input file name)"
},
{
"-F"
,
1
,
do_file
,
"-F dllfile Set the DLL filename (default: set from input file name)"
},
{
"-e"
,
1
,
do_entry
,
"-e function Set the DLL entry point function (default: DllMain)"
},
{
"-r"
,
1
,
do_rsrc
,
"-r rsrc.res Load resources from rsrc.res"
},
{
"-res"
,
1
,
do_rsrc
,
NULL
},
/* for backwards compatibility, will disappear */
...
...
@@ -265,6 +269,12 @@ static void do_name( const char *arg )
DLLName
[
sizeof
(
DLLName
)
-
1
]
=
0
;
}
static
void
do_file
(
const
char
*
arg
)
{
strncpy
(
DLLFileName
,
arg
,
sizeof
(
DLLFileName
)
);
DLLFileName
[
sizeof
(
DLLFileName
)
-
1
]
=
0
;
}
static
void
do_entry
(
const
char
*
arg
)
{
init_func
=
xstrdup
(
arg
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment