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
b9966054
Commit
b9966054
authored
Dec 10, 2007
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Added support for dlldata.c dependencies.
parent
b0585bf1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
28 additions
and
20 deletions
+28
-20
makedep.c
tools/makedep.c
+28
-20
No files found.
tools/makedep.c
View file @
b9966054
...
@@ -242,24 +242,6 @@ static INCL_FILE *find_src_file( const char *name )
...
@@ -242,24 +242,6 @@ static INCL_FILE *find_src_file( const char *name )
}
}
/*******************************************************************
/*******************************************************************
* add_src_file
*
* Add a source file to the list.
*/
static
INCL_FILE
*
add_src_file
(
const
char
*
name
)
{
INCL_FILE
*
file
;
if
(
find_src_file
(
name
))
return
NULL
;
/* we already have it */
file
=
xmalloc
(
sizeof
(
*
file
)
);
memset
(
file
,
0
,
sizeof
(
*
file
)
);
file
->
name
=
xstrdup
(
name
);
list_add_tail
(
&
sources
,
&
file
->
entry
);
return
file
;
}
/*******************************************************************
* add_include
* add_include
*
*
* Add an include file if it doesn't already exists.
* Add an include file if it doesn't already exists.
...
@@ -717,6 +699,11 @@ static void parse_generated_idl( INCL_FILE *source )
...
@@ -717,6 +699,11 @@ static void parse_generated_idl( INCL_FILE *source )
{
{
add_include
(
source
,
header
,
0
,
0
);
add_include
(
source
,
header
,
0
,
0
);
}
}
else
if
(
!
strcmp
(
source
->
name
,
"dlldata.c"
))
{
add_include
(
source
,
"objbase.h"
,
0
,
1
);
add_include
(
source
,
"rpcproxy.h"
,
0
,
1
);
}
free
(
header
);
free
(
header
);
free
(
basename
);
free
(
basename
);
...
@@ -733,7 +720,8 @@ static void parse_file( INCL_FILE *pFile, int src )
...
@@ -733,7 +720,8 @@ static void parse_file( INCL_FILE *pFile, int src )
if
(
strendswith
(
pFile
->
name
,
"_c.c"
)
||
if
(
strendswith
(
pFile
->
name
,
"_c.c"
)
||
strendswith
(
pFile
->
name
,
"_i.c"
)
||
strendswith
(
pFile
->
name
,
"_i.c"
)
||
strendswith
(
pFile
->
name
,
"_p.c"
)
||
strendswith
(
pFile
->
name
,
"_p.c"
)
||
strendswith
(
pFile
->
name
,
"_s.c"
))
strendswith
(
pFile
->
name
,
"_s.c"
)
||
!
strcmp
(
pFile
->
name
,
"dlldata.c"
))
{
{
parse_generated_idl
(
pFile
);
parse_generated_idl
(
pFile
);
return
;
return
;
...
@@ -758,6 +746,25 @@ static void parse_file( INCL_FILE *pFile, int src )
...
@@ -758,6 +746,25 @@ static void parse_file( INCL_FILE *pFile, int src )
/*******************************************************************
/*******************************************************************
* add_src_file
*
* Add a source file to the list.
*/
static
INCL_FILE
*
add_src_file
(
const
char
*
name
)
{
INCL_FILE
*
file
;
if
(
find_src_file
(
name
))
return
NULL
;
/* we already have it */
file
=
xmalloc
(
sizeof
(
*
file
)
);
memset
(
file
,
0
,
sizeof
(
*
file
)
);
file
->
name
=
xstrdup
(
name
);
list_add_tail
(
&
sources
,
&
file
->
entry
);
parse_file
(
file
,
1
);
return
file
;
}
/*******************************************************************
* output_include
* output_include
*/
*/
static
void
output_include
(
FILE
*
file
,
INCL_FILE
*
pFile
,
static
void
output_include
(
FILE
*
file
,
INCL_FILE
*
pFile
,
...
@@ -954,7 +961,8 @@ int main( int argc, char *argv[] )
...
@@ -954,7 +961,8 @@ int main( int argc, char *argv[] )
for
(
i
=
1
;
i
<
argc
;
i
++
)
for
(
i
=
1
;
i
<
argc
;
i
++
)
{
{
if
((
pFile
=
add_src_file
(
argv
[
i
]
)))
parse_file
(
pFile
,
1
);
add_src_file
(
argv
[
i
]
);
if
(
strendswith
(
argv
[
i
],
"_p.c"
))
add_src_file
(
"dlldata.c"
);
}
}
LIST_FOR_EACH_ENTRY
(
pFile
,
&
includes
,
INCL_FILE
,
entry
)
parse_file
(
pFile
,
0
);
LIST_FOR_EACH_ENTRY
(
pFile
,
&
includes
,
INCL_FILE
,
entry
)
parse_file
(
pFile
,
0
);
output_dependencies
();
output_dependencies
();
...
...
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