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
2d39dcaf
Commit
2d39dcaf
authored
Dec 04, 2022
by
Rémi Bernon
Committed by
Alexandre Julliard
Mar 08, 2023
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Support resource files for embedded TESTDLL.
parent
d2e79b09
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
3 deletions
+13
-3
makedep.c
tools/makedep.c
+13
-3
No files found.
tools/makedep.c
View file @
2d39dcaf
...
...
@@ -2710,8 +2710,13 @@ static void output_source_rc( struct makefile *make, struct incl_file *source, c
if
(
source
->
file
->
flags
&
FLAG_RC_HEADER
)
return
;
if
(
source
->
file
->
flags
&
FLAG_GENERATED
)
strarray_add
(
&
make
->
clean_files
,
source
->
name
);
if
(
linguas
.
count
&&
(
source
->
file
->
flags
&
FLAG_RC_PO
))
po_dir
=
"po"
;
for
(
arch
=
0
;
arch
<
archs
.
count
;
arch
++
)
if
(
!
make
->
disabled
[
arch
])
strarray_add
(
&
make
->
res_files
[
arch
],
res_file
);
if
(
!
make
->
testdll
||
!
find_src_file
(
make
,
strmake
(
"%s.spec"
,
obj
)
))
/* RC is for a TESTDLL */
{
for
(
arch
=
0
;
arch
<
archs
.
count
;
arch
++
)
if
(
!
make
->
disabled
[
arch
])
strarray_add
(
&
make
->
res_files
[
arch
],
res_file
);
}
else
strarray_add
(
&
make
->
clean_files
,
res_file
);
if
(
source
->
file
->
flags
&
FLAG_RC_PO
)
{
strarray_add
(
&
make
->
pot_files
,
strmake
(
"%s.pot"
,
obj
));
...
...
@@ -3040,7 +3045,7 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
struct
strarray
dll_flags
=
empty_strarray
;
struct
strarray
default_imports
=
empty_strarray
;
struct
strarray
all_libs
,
dep_libs
;
const
char
*
dll_name
,
*
obj_name
,
*
output_rsrc
,
*
output_file
,
*
debug_file
;
const
char
*
dll_name
,
*
obj_name
,
*
res_name
,
*
output_rsrc
,
*
output_file
,
*
debug_file
;
unsigned
int
arch
;
if
(
!
imports
.
count
)
imports
=
make
->
imports
;
...
...
@@ -3060,6 +3065,9 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
output_file
=
obj_dir_path
(
make
,
dll_name
);
output_rsrc
=
strmake
(
"%s.res"
,
dll_name
);
if
(
!
find_src_file
(
make
,
strmake
(
"%s.rc"
,
obj
)
))
res_name
=
NULL
;
else
res_name
=
obj_dir_path
(
make
,
strmake
(
"%s.res"
,
obj
)
);
strarray_add
(
&
make
->
clean_files
,
dll_name
);
strarray_add
(
&
make
->
res_files
[
arch
],
output_rsrc
);
output
(
"%s:"
,
obj_dir_path
(
make
,
output_rsrc
));
...
...
@@ -3072,6 +3080,7 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
output
(
"%s:"
,
output_file
);
output_filename
(
source
->
filename
);
output_filename
(
obj_name
);
if
(
res_name
)
output_filename
(
res_name
);
output_filenames
(
dep_libs
);
output_filename
(
tools_path
(
make
,
"winebuild"
));
output_filename
(
tools_path
(
make
,
"winegcc"
));
...
...
@@ -3083,6 +3092,7 @@ static void output_source_spec( struct makefile *make, struct incl_file *source,
output_filename
(
"-shared"
);
output_filename
(
source
->
filename
);
output_filename
(
obj_name
);
if
(
res_name
)
output_filename
(
res_name
);
if
((
debug_file
=
get_debug_file
(
make
,
dll_name
,
arch
)))
output_filename
(
strmake
(
"-Wl,--debug-file,%s"
,
obj_dir_path
(
make
,
debug_file
)));
output_filenames
(
all_libs
);
...
...
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