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
a9b5bb32
Commit
a9b5bb32
authored
Nov 16, 2021
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Use static importlibs on all platforms.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
32cfdb54
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
53 deletions
+25
-53
makedep.c
tools/makedep.c
+25
-53
No files found.
tools/makedep.c
View file @
a9b5bb32
...
@@ -2189,19 +2189,10 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
...
@@ -2189,19 +2189,10 @@ static struct strarray add_import_libs( const struct makefile *make, struct stra
for
(
j
=
0
;
j
<
subdirs
.
count
;
j
++
)
for
(
j
=
0
;
j
<
subdirs
.
count
;
j
++
)
{
{
if
(
submakes
[
j
]
->
importlib
&&
!
strcmp
(
submakes
[
j
]
->
importlib
,
name
))
if
(
submakes
[
j
]
->
importlib
&&
!
strcmp
(
submakes
[
j
]
->
importlib
,
name
))
{
lib
=
obj_dir_path
(
submakes
[
j
],
strmake
(
"lib%s.a"
,
name
));
if
(
is_cross
||
!*
dll_ext
||
submakes
[
j
]
->
staticimplib
)
else
lib
=
obj_dir_path
(
submakes
[
j
],
strmake
(
"lib%s.a"
,
name
));
lib
=
get_static_lib
(
submakes
[
j
],
name
);
else
if
(
lib
)
break
;
{
strarray_add_uniq
(
deps
,
strmake
(
"%s/lib%s.def"
,
submakes
[
j
]
->
obj_dir
,
name
));
if
(
needs_implib_symlink
(
submakes
[
j
]
))
strarray_add_uniq
(
deps
,
strmake
(
"dlls/lib%s.def"
,
name
));
}
break
;
}
if
((
lib
=
get_static_lib
(
submakes
[
j
],
name
)))
break
;
}
}
if
(
lib
)
if
(
lib
)
...
@@ -2588,12 +2579,8 @@ static void output_uninstall_rules( struct makefile *make )
...
@@ -2588,12 +2579,8 @@ static void output_uninstall_rules( struct makefile *make )
static
struct
strarray
output_importlib_symlinks
(
const
struct
makefile
*
make
)
static
struct
strarray
output_importlib_symlinks
(
const
struct
makefile
*
make
)
{
{
struct
strarray
ret
=
empty_strarray
;
struct
strarray
ret
=
empty_strarray
;
const
char
*
lib
,
*
dst
,
*
ext
[
4
];
const
char
*
lib
,
*
dst
,
*
ext
[
2
]
=
{
"a"
,
"cross.a"
};
int
i
,
count
=
0
;
int
i
,
count
=
1
+
!!
crosstarget
;
ext
[
count
++
]
=
(
*
dll_ext
&&
!
make
->
implib_objs
.
count
)
?
"def"
:
"a"
;
if
(
crosstarget
)
ext
[
count
++
]
=
"cross.a"
;
if
(
needs_delay_lib
(
make
))
ext
[
count
++
]
=
"delay.a"
;
for
(
i
=
0
;
i
<
count
;
i
++
)
for
(
i
=
0
;
i
<
count
;
i
++
)
{
{
...
@@ -3320,42 +3307,27 @@ static void output_module( struct makefile *make )
...
@@ -3320,42 +3307,27 @@ static void output_module( struct makefile *make )
if
(
spec_file
&&
make
->
importlib
)
if
(
spec_file
&&
make
->
importlib
)
{
{
char
*
importlib_path
=
obj_dir_path
(
make
,
strmake
(
"lib%s"
,
make
->
importlib
));
char
*
importlib_path
=
obj_dir_path
(
make
,
strmake
(
"lib%s"
,
make
->
importlib
));
if
(
*
dll_ext
&&
!
make
->
implib_objs
.
count
)
{
strarray_add
(
&
make
->
clean_files
,
strmake
(
"lib%s.a"
,
make
->
importlib
));
strarray_add
(
&
make
->
clean_files
,
strmake
(
"lib%s.def"
,
make
->
importlib
));
if
(
!*
dll_ext
&&
needs_delay_lib
(
make
))
output
(
"%s.def: %s %s
\n
"
,
importlib_path
,
tools_path
(
make
,
"winebuild"
),
spec_file
);
output
(
"
\t
%s%s -w --def -o $@"
,
cmd_prefix
(
"BUILD"
),
tools_path
(
make
,
"winebuild"
)
);
output_filenames
(
target_flags
);
if
(
make
->
is_win16
)
output_filename
(
"-m16"
);
output_filename
(
"--export"
);
output_filename
(
spec_file
);
output
(
"
\n
"
);
add_install_rule
(
make
,
make
->
importlib
,
strmake
(
"lib%s.def"
,
make
->
importlib
),
strmake
(
"d%s/lib%s.def"
,
so_dir
,
make
->
importlib
));
}
else
{
{
strarray_add
(
&
make
->
clean_files
,
strmake
(
"lib%s.a"
,
make
->
importlib
));
strarray_add
(
&
make
->
clean_files
,
strmake
(
"lib%s.delay.a"
,
make
->
importlib
));
if
(
!*
dll_ext
&&
needs_delay_lib
(
make
))
output
(
"%s.delay.a "
,
importlib_path
);
{
strarray_add
(
&
make
->
clean_files
,
strmake
(
"lib%s.delay.a"
,
make
->
importlib
));
output
(
"%s.delay.a "
,
importlib_path
);
}
output
(
"%s.a: %s %s"
,
importlib_path
,
tools_path
(
make
,
"winebuild"
),
spec_file
);
output_filenames_obj_dir
(
make
,
make
->
implib_objs
);
output
(
"
\n
"
);
output
(
"
\t
%s%s -w --implib -o $@"
,
cmd_prefix
(
"BUILD"
),
tools_path
(
make
,
"winebuild"
)
);
output_filenames
(
target_flags
);
if
(
make
->
is_win16
)
output_filename
(
"-m16"
);
output_filename
(
"--export"
);
output_filename
(
spec_file
);
output_filenames_obj_dir
(
make
,
make
->
implib_objs
);
output
(
"
\n
"
);
add_install_rule
(
make
,
make
->
importlib
,
strmake
(
"lib%s.a"
,
make
->
importlib
),
strmake
(
"d%s/lib%s.a"
,
so_dir
,
make
->
importlib
));
}
}
output
(
"%s.a: %s %s"
,
importlib_path
,
tools_path
(
make
,
"winebuild"
),
spec_file
);
output_filenames_obj_dir
(
make
,
make
->
implib_objs
);
output
(
"
\n
"
);
output
(
"
\t
%s%s -w --implib -o $@"
,
cmd_prefix
(
"BUILD"
),
tools_path
(
make
,
"winebuild"
)
);
output_filenames
(
target_flags
);
if
(
make
->
is_win16
)
output_filename
(
"-m16"
);
output_filename
(
"--export"
);
output_filename
(
spec_file
);
output_filenames_obj_dir
(
make
,
make
->
implib_objs
);
output
(
"
\n
"
);
add_install_rule
(
make
,
make
->
importlib
,
strmake
(
"lib%s.a"
,
make
->
importlib
),
strmake
(
"d%s/lib%s.a"
,
so_dir
,
make
->
importlib
));
if
(
crosstarget
)
if
(
crosstarget
)
{
{
struct
strarray
cross_files
=
strarray_replace_extension
(
&
make
->
implib_objs
,
".o"
,
".cross.o"
);
struct
strarray
cross_files
=
strarray_replace_extension
(
&
make
->
implib_objs
,
".o"
,
".cross.o"
);
...
...
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