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
acd9c551
Commit
acd9c551
authored
Nov 11, 2015
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Store the include paths without the -I prefix.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
54c37238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
7 deletions
+8
-7
makedep.c
tools/makedep.c
+8
-7
No files found.
tools/makedep.c
View file @
acd9c551
...
...
@@ -149,7 +149,7 @@ static const char *icotool;
struct
makefile
{
struct
strarray
vars
;
struct
strarray
include_
arg
s
;
struct
strarray
include_
path
s
;
struct
strarray
define_args
;
struct
strarray
programs
;
struct
strarray
scripts
;
...
...
@@ -1397,9 +1397,9 @@ static struct file *open_include_file( const struct makefile *make, struct incl_
return
file
;
/* now search in include paths */
for
(
i
=
0
;
i
<
make
->
include_
arg
s
.
count
;
i
++
)
for
(
i
=
0
;
i
<
make
->
include_
path
s
.
count
;
i
++
)
{
const
char
*
dir
=
make
->
include_
args
.
str
[
i
]
+
2
;
/* skip -I */
const
char
*
dir
=
make
->
include_
paths
.
str
[
i
];
const
char
*
prefix
=
make
->
top_src_dir
?
make
->
top_src_dir
:
make
->
top_obj_dir
;
if
(
prefix
)
...
...
@@ -2002,10 +2002,11 @@ static struct strarray output_sources( const struct makefile *make, struct strar
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
obj_dir_path
(
make
,
""
)));
if
(
make
->
src_dir
)
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
make
->
src_dir
));
if
(
make
->
parent_dir
)
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
src_dir_path
(
make
,
make
->
parent_dir
)));
if
(
make
->
top_obj_dir
)
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
top_obj_dir_path
(
make
,
"include"
)));
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
top_obj_dir_path
(
make
,
"include"
)));
if
(
make
->
top_src_dir
)
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
top_dir_path
(
make
,
"include"
)));
if
(
make
->
use_msvcrt
)
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
top_dir_path
(
make
,
"include/msvcrt"
)));
strarray_addall
(
&
includes
,
make
->
include_args
);
for
(
i
=
0
;
i
<
make
->
include_paths
.
count
;
i
++
)
strarray_add
(
&
includes
,
strmake
(
"-I%s"
,
obj_dir_path
(
make
,
make
->
include_paths
.
str
[
i
]
)));
LIST_FOR_EACH_ENTRY
(
source
,
&
make
->
sources
,
struct
incl_file
,
entry
)
{
...
...
@@ -3004,14 +3005,14 @@ static void update_makefile( const char *path )
if
(
make
->
module
&&
!
make
->
install_lib
.
count
)
strarray_add
(
&
make
->
install_lib
,
make
->
module
);
make
->
include_
arg
s
=
empty_strarray
;
make
->
include_
path
s
=
empty_strarray
;
make
->
define_args
=
empty_strarray
;
strarray_add
(
&
make
->
define_args
,
"-D__WINESRC__"
);
value
=
get_expanded_make_var_array
(
make
,
"EXTRAINCL"
);
for
(
i
=
0
;
i
<
value
.
count
;
i
++
)
if
(
!
strncmp
(
value
.
str
[
i
],
"-I"
,
2
))
strarray_add_uniq
(
&
make
->
include_
args
,
value
.
str
[
i
]
);
strarray_add_uniq
(
&
make
->
include_
paths
,
value
.
str
[
i
]
+
2
);
else
strarray_add_uniq
(
&
make
->
define_args
,
value
.
str
[
i
]
);
strarray_addall
(
&
make
->
define_args
,
get_expanded_make_var_array
(
make
,
"EXTRADEFS"
));
...
...
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