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
364f97c2
Commit
364f97c2
authored
Nov 30, 2018
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Output rules for building generated .rc files.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
7176f9b2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
13 deletions
+15
-13
Makefile.in
programs/winetest/Makefile.in
+2
-3
makedep.c
tools/makedep.c
+13
-10
No files found.
programs/winetest/Makefile.in
View file @
364f97c2
...
...
@@ -16,7 +16,7 @@ SVG_SRCS = winetest.svg
EXTRA_OBJS
=
build.res
EXTRA_TARGETS
=
build.
rc build.
nfo
EXTRA_TARGETS
=
build.nfo
INSTALL_LIB
=
none
...
...
@@ -26,8 +26,7 @@ build.rc: dummy
build.nfo
:
-
$(CC)
-v
2>
$@
build.res
:
build.rc build.nfo
$(WRC)
-o
$@
build.rc
build.res
:
build.nfo
dummy
:
.PHONY
:
dummy
tools/makedep.c
View file @
364f97c2
...
...
@@ -1805,7 +1805,9 @@ static struct makefile *parse_makefile( const char *path )
*/
static
void
add_generated_sources
(
struct
makefile
*
make
)
{
unsigned
int
i
;
struct
incl_file
*
source
,
*
next
,
*
file
;
struct
strarray
objs
=
get_expanded_make_var_array
(
make
,
"EXTRA_OBJS"
);
LIST_FOR_EACH_ENTRY_SAFE
(
source
,
next
,
&
make
->
sources
,
struct
incl_file
,
entry
)
{
...
...
@@ -1904,6 +1906,16 @@ static void add_generated_sources( struct makefile *make )
add_dependency
(
file
->
file
,
"wine/test.h"
,
INCL_NORMAL
);
add_all_includes
(
make
,
file
,
file
->
file
);
}
for
(
i
=
0
;
i
<
objs
.
count
;
i
++
)
{
/* default to .c for unknown extra object files */
if
(
strendswith
(
objs
.
str
[
i
],
".o"
))
add_generated_source
(
make
,
objs
.
str
[
i
],
replace_extension
(
objs
.
str
[
i
],
".o"
,
".c"
));
else
if
(
strendswith
(
objs
.
str
[
i
],
".res"
))
add_generated_source
(
make
,
replace_extension
(
objs
.
str
[
i
],
".res"
,
".rc"
),
NULL
);
else
add_generated_source
(
make
,
objs
.
str
[
i
],
NULL
);
}
}
...
...
@@ -2514,6 +2526,7 @@ static void output_source_rc( struct makefile *make, struct incl_file *source, c
struct
strarray
extradefs
=
get_expanded_file_local_var
(
make
,
obj
,
"EXTRADEFS"
);
unsigned
int
i
;
if
(
source
->
file
->
flags
&
FLAG_GENERATED
)
strarray_add
(
&
make
->
clean_files
,
source
->
name
);
strarray_add
(
&
make
->
object_files
,
strmake
(
"%s.res"
,
obj
));
if
(
crosstarget
)
strarray_add
(
&
make
->
crossobj_files
,
strmake
(
"%s.res"
,
obj
));
output
(
"%s.res: %s
\n
"
,
obj_dir_path
(
make
,
obj
),
source
->
filename
);
...
...
@@ -4086,16 +4099,6 @@ static void load_sources( struct makefile *make )
add_generated_sources
(
make
);
value
=
get_expanded_make_var_array
(
make
,
"EXTRA_OBJS"
);
for
(
i
=
0
;
i
<
value
.
count
;
i
++
)
{
/* default to .c for unknown extra object files */
if
(
strendswith
(
value
.
str
[
i
],
".o"
))
add_generated_source
(
make
,
value
.
str
[
i
],
replace_extension
(
value
.
str
[
i
],
".o"
,
".c"
)
);
else
add_generated_source
(
make
,
value
.
str
[
i
],
NULL
);
}
LIST_FOR_EACH_ENTRY
(
file
,
&
make
->
includes
,
struct
incl_file
,
entry
)
parse_file
(
make
,
file
,
0
);
LIST_FOR_EACH_ENTRY
(
file
,
&
make
->
sources
,
struct
incl_file
,
entry
)
get_dependencies
(
file
,
file
);
}
...
...
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