Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
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-winehq
Commits
959562bd
Commit
959562bd
authored
Jan 02, 2003
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Jan 02, 2003
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add the -F option to set a DLL's filename.
parent
c87595c9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
main.c
tools/winebuild/main.c
+10
-0
No files found.
tools/winebuild/main.c
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
);
...
...
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