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
dd1a83c2
Commit
dd1a83c2
authored
Aug 25, 2019
by
Jacek Caban
Committed by
Alexandre Julliard
Aug 26, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winebuild: Don't include aliases in importlib .def files.
Signed-off-by:
Jacek Caban
<
jacek@codeweavers.com
>
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
4d10575d
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
7 additions
and
6 deletions
+7
-6
build.h
tools/winebuild/build.h
+1
-1
import.c
tools/winebuild/import.c
+1
-1
main.c
tools/winebuild/main.c
+1
-1
spec32.c
tools/winebuild/spec32.c
+4
-3
No files found.
tools/winebuild/build.h
View file @
dd1a83c2
...
...
@@ -310,7 +310,7 @@ extern void output_resources( DLLSPEC *spec );
extern
void
output_bin_resources
(
DLLSPEC
*
spec
,
unsigned
int
start_rva
);
extern
void
output_spec32_file
(
DLLSPEC
*
spec
);
extern
void
output_fake_module
(
DLLSPEC
*
spec
);
extern
void
output_def_file
(
DLLSPEC
*
spec
,
int
i
nclude_stubs
);
extern
void
output_def_file
(
DLLSPEC
*
spec
,
int
i
mport_only
);
extern
void
load_res16_file
(
const
char
*
name
,
DLLSPEC
*
spec
);
extern
void
output_res16_data
(
DLLSPEC
*
spec
);
extern
void
output_bin_res16_data
(
DLLSPEC
*
spec
);
...
...
tools/winebuild/import.c
View file @
dd1a83c2
...
...
@@ -1452,7 +1452,7 @@ static void build_windows_import_lib( DLLSPEC *spec )
const
char
*
as_flags
,
*
m_flag
;
def_file
=
open_temp_output_file
(
".def"
);
output_def_file
(
spec
,
0
);
output_def_file
(
spec
,
1
);
fclose
(
output_file
);
args
=
find_tool
(
"dlltool"
,
NULL
);
...
...
tools/winebuild/main.c
View file @
dd1a83c2
...
...
@@ -664,7 +664,7 @@ int main(int argc, char **argv)
if
(
!
spec_file_name
)
fatal_error
(
"missing .spec file
\n
"
);
if
(
!
parse_input_file
(
spec
))
break
;
open_output_file
();
output_def_file
(
spec
,
1
);
output_def_file
(
spec
,
0
);
close_output_file
();
break
;
case
MODE_IMPLIB
:
...
...
tools/winebuild/spec32.c
View file @
dd1a83c2
...
...
@@ -983,7 +983,7 @@ void output_fake_module( DLLSPEC *spec )
*
* Build a Win32 def file from a spec file.
*/
void
output_def_file
(
DLLSPEC
*
spec
,
int
i
nclude_stubs
)
void
output_def_file
(
DLLSPEC
*
spec
,
int
i
mport_only
)
{
DLLSPEC
*
spec32
=
NULL
;
const
char
*
name
;
...
...
@@ -1017,7 +1017,7 @@ void output_def_file( DLLSPEC *spec, int include_stubs )
else
continue
;
if
(
!
is_private
)
total
++
;
if
(
!
include_stubs
&&
odp
->
type
==
TYPE_STUB
)
continue
;
if
(
import_only
&&
odp
->
type
==
TYPE_STUB
)
continue
;
if
((
odp
->
flags
&
FLAG_FASTCALL
)
&&
target_platform
==
PLATFORM_WINDOWS
)
name
=
strmake
(
"@%s"
,
name
);
...
...
@@ -1032,13 +1032,14 @@ void output_def_file( DLLSPEC *spec, int include_stubs )
case
TYPE_VARARGS
:
case
TYPE_CDECL
:
/* try to reduce output */
if
(
strcmp
(
name
,
odp
->
link_name
)
||
(
odp
->
flags
&
FLAG_FORWARD
))
if
(
!
import_only
&&
(
strcmp
(
name
,
odp
->
link_name
)
||
(
odp
->
flags
&
FLAG_FORWARD
)
))
output
(
"=%s"
,
odp
->
link_name
);
break
;
case
TYPE_STDCALL
:
{
int
at_param
=
get_args_size
(
odp
);
if
(
!
kill_at
&&
target_cpu
==
CPU_x86
)
output
(
"@%d"
,
at_param
);
if
(
import_only
)
break
;
if
(
odp
->
flags
&
FLAG_FORWARD
)
output
(
"=%s"
,
odp
->
link_name
);
else
if
(
strcmp
(
name
,
odp
->
link_name
))
/* try to reduce output */
...
...
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