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
7cd2edbb
Commit
7cd2edbb
authored
Sep 12, 2002
by
Dimitrie O. Paun
Committed by
Alexandre Julliard
Sep 12, 2002
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add support for naming the DLL from the command line.
parent
228a2b3a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
main.c
tools/winebuild/main.c
+8
-0
No files found.
tools/winebuild/main.c
View file @
7cd2edbb
...
@@ -122,6 +122,7 @@ static void do_include( const char *arg );
...
@@ -122,6 +122,7 @@ static void do_include( const char *arg );
static
void
do_k_flags
(
const
char
*
arg
);
static
void
do_k_flags
(
const
char
*
arg
);
static
void
do_exe_mode
(
const
char
*
arg
);
static
void
do_exe_mode
(
const
char
*
arg
);
static
void
do_module
(
const
char
*
arg
);
static
void
do_module
(
const
char
*
arg
);
static
void
do_name
(
const
char
*
arg
);
static
void
do_spec
(
const
char
*
arg
);
static
void
do_spec
(
const
char
*
arg
);
static
void
do_def
(
const
char
*
arg
);
static
void
do_def
(
const
char
*
arg
);
static
void
do_exe
(
const
char
*
arg
);
static
void
do_exe
(
const
char
*
arg
);
...
@@ -150,6 +151,7 @@ static const struct option_descr option_table[] =
...
@@ -150,6 +151,7 @@ static const struct option_descr option_table[] =
{
"-L"
,
1
,
do_lib
,
"-L directory Look for imports libraries in 'directory'"
},
{
"-L"
,
1
,
do_lib
,
"-L directory Look for imports libraries in 'directory'"
},
{
"-l"
,
1
,
do_import
,
"-l lib.dll Import the specified library"
},
{
"-l"
,
1
,
do_import
,
"-l lib.dll Import the specified library"
},
{
"-dl"
,
1
,
do_dimport
,
"-dl lib.dll Delay-import the specified library"
},
{
"-dl"
,
1
,
do_dimport
,
"-dl lib.dll Delay-import the specified library"
},
{
"-N"
,
1
,
do_name
,
"-N dllname Set the DLL name (default: set from input file name)"
},
{
"-res"
,
1
,
do_rsrc
,
"-res rsrc.res Load resources from rsrc.res"
},
{
"-res"
,
1
,
do_rsrc
,
"-res rsrc.res Load resources from rsrc.res"
},
{
"-o"
,
1
,
do_output
,
"-o name Set the output file name (default: stdout)
\n
"
},
{
"-o"
,
1
,
do_output
,
"-o name Set the output file name (default: stdout)
\n
"
},
{
"-sym"
,
0
,
do_sym
,
NULL
},
/* ignored for backwards compatibility */
{
"-sym"
,
0
,
do_sym
,
NULL
},
/* ignored for backwards compatibility */
...
@@ -219,6 +221,12 @@ static void do_k_flags( const char *arg )
...
@@ -219,6 +221,12 @@ static void do_k_flags( const char *arg )
/* ignore all other flags */
/* ignore all other flags */
}
}
static
void
do_name
(
const
char
*
arg
)
{
strncpy
(
DLLName
,
arg
,
sizeof
(
DLLName
)
);
DLLName
[
sizeof
(
DLLName
)
-
1
]
=
0
;
}
static
void
do_spec
(
const
char
*
arg
)
static
void
do_spec
(
const
char
*
arg
)
{
{
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
...
...
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