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
112c665f
Commit
112c665f
authored
Jul 28, 2002
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Set correct dll file name when building a .def file.
parent
90423aa3
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
7 deletions
+13
-7
main.c
tools/winebuild/main.c
+13
-7
No files found.
tools/winebuild/main.c
View file @
112c665f
...
@@ -93,6 +93,17 @@ static void open_input( const char *name )
...
@@ -93,6 +93,17 @@ static void open_input( const char *name )
}
}
}
}
/* set the dll file name from the input file name */
static
void
set_dll_file_name
(
const
char
*
name
)
{
char
*
p
;
if
((
p
=
strrchr
(
name
,
'/'
)))
name
=
p
+
1
;
strcpy
(
DLLFileName
,
name
);
if
((
p
=
strrchr
(
DLLFileName
,
'.'
))
&&
!
strcmp
(
p
,
".spec"
))
*
p
=
0
;
if
(
!
strchr
(
DLLFileName
,
'.'
))
strcat
(
DLLFileName
,
".dll"
);
}
/* cleanup on program exit */
/* cleanup on program exit */
static
void
cleanup
(
void
)
static
void
cleanup
(
void
)
{
{
...
@@ -218,16 +229,10 @@ static void do_k_flags( const char *arg )
...
@@ -218,16 +229,10 @@ static void do_k_flags( const char *arg )
static
void
do_spec
(
const
char
*
arg
)
static
void
do_spec
(
const
char
*
arg
)
{
{
char
*
p
;
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
exec_mode
=
MODE_SPEC
;
exec_mode
=
MODE_SPEC
;
open_input
(
arg
);
open_input
(
arg
);
set_dll_file_name
(
arg
);
if
((
p
=
strrchr
(
arg
,
'/'
)))
strcpy
(
DLLFileName
,
p
+
1
);
else
strcpy
(
DLLFileName
,
arg
);
if
((
p
=
strrchr
(
DLLFileName
,
'.'
))
&&
!
strcmp
(
p
,
".spec"
))
*
p
=
0
;
if
(
!
strchr
(
DLLFileName
,
'.'
))
strcat
(
DLLFileName
,
".dll"
);
}
}
static
void
do_def
(
const
char
*
arg
)
static
void
do_def
(
const
char
*
arg
)
...
@@ -235,6 +240,7 @@ static void do_def( const char *arg )
...
@@ -235,6 +240,7 @@ static void do_def( const char *arg )
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
if
(
exec_mode
!=
MODE_NONE
||
!
arg
[
0
])
do_usage
();
exec_mode
=
MODE_DEF
;
exec_mode
=
MODE_DEF
;
open_input
(
arg
);
open_input
(
arg
);
set_dll_file_name
(
arg
);
}
}
static
void
do_exe
(
const
char
*
arg
)
static
void
do_exe
(
const
char
*
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