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
f92ef1c5
Commit
f92ef1c5
authored
Dec 26, 2006
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makedep: Add support for magic comments in .rc files so we can generate proper…
makedep: Add support for magic comments in .rc files so we can generate proper dependencies for them.
parent
c290f623
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
68 additions
and
9 deletions
+68
-9
Makefile.in
dlls/atl/Makefile.in
+0
-2
rsrc.rc
dlls/atl/rsrc.rc
+1
-0
Makefile.in
dlls/itss/Makefile.in
+0
-2
rsrc.rc
dlls/itss/rsrc.rc
+1
-0
Makefile.in
dlls/mshtml/Makefile.in
+0
-2
rsrc.rc
dlls/mshtml/rsrc.rc
+2
-0
Makefile.in
dlls/urlmon/Makefile.in
+0
-2
rsrc.rc
dlls/urlmon/rsrc.rc
+1
-0
makedep.c
tools/makedep.c
+63
-1
No files found.
dlls/atl/Makefile.in
View file @
f92ef1c5
...
...
@@ -19,6 +19,4 @@ IDL_H_SRCS = \
@MAKE_DLL_RULES@
rsrc.res
:
atl.rgs
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/atl/rsrc.rc
View file @
f92ef1c5
...
...
@@ -16,4 +16,5 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* @makedep: atl.rgs */
101 REGISTRY atl.rgs
dlls/itss/Makefile.in
View file @
f92ef1c5
...
...
@@ -19,6 +19,4 @@ RC_SRCS = rsrc.rc
@MAKE_DLL_RULES@
rsrc.res
:
itss.inf
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/itss/rsrc.rc
View file @
f92ef1c5
...
...
@@ -16,4 +16,5 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* @makedep: itss.inf */
REGINST REGINST itss.inf
dlls/mshtml/Makefile.in
View file @
f92ef1c5
...
...
@@ -49,6 +49,4 @@ IDL_H_SRCS = nsiface.idl
@MAKE_DLL_RULES@
rsrc.res
:
mshtml.inf blank.htm
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/mshtml/rsrc.rc
View file @
f92ef1c5
...
...
@@ -48,6 +48,8 @@
LANGUAGE LANG_NEUTRAL, SUBLANG_NEUTRAL
/* @makedep: mshtml.inf */
REGINST REGINST mshtml.inf
/* @makedep: blank.htm */
blank.htm HTML "blank.htm"
dlls/urlmon/Makefile.in
View file @
f92ef1c5
...
...
@@ -25,6 +25,4 @@ RC_SRCS = rsrc.rc
@MAKE_DLL_RULES@
rsrc.res
:
urlmon.inf
@DEPENDENCIES@
# everything below this line is overwritten by make depend
dlls/urlmon/rsrc.rc
View file @
f92ef1c5
...
...
@@ -16,6 +16,7 @@
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
*/
/* @makedep: urlmon.inf */
REGINST REGINST urlmon.inf
#include "version.rc"
tools/makedep.c
View file @
f92ef1c5
...
...
@@ -629,6 +629,63 @@ static void parse_c_file( INCL_FILE *pFile, FILE *file )
/*******************************************************************
* parse_rc_file
*/
static
void
parse_rc_file
(
INCL_FILE
*
pFile
,
FILE
*
file
)
{
char
*
buffer
,
*
include
;
input_line
=
0
;
while
((
buffer
=
get_line
(
file
)))
{
char
quote
;
char
*
p
=
buffer
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
p
[
0
]
==
'/'
&&
p
[
1
]
==
'*'
)
/* check for magic makedep comment */
{
p
+=
2
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
strncmp
(
p
,
"@makedep:"
,
9
))
continue
;
p
+=
9
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
quote
=
'"'
;
if
(
*
p
==
quote
)
{
include
=
++
p
;
while
(
*
p
&&
*
p
!=
quote
)
p
++
;
}
else
{
include
=
p
;
while
(
*
p
&&
!
isspace
(
*
p
)
&&
*
p
!=
'*'
)
p
++
;
}
if
(
!*
p
)
fatal_error
(
"%s:%d: Malformed makedep comment
\n
"
,
pFile
->
filename
,
input_line
);
*
p
=
0
;
}
else
/* check for #include */
{
if
(
*
p
++
!=
'#'
)
continue
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
strncmp
(
p
,
"include"
,
7
))
continue
;
p
+=
7
;
while
(
*
p
&&
isspace
(
*
p
))
p
++
;
if
(
*
p
!=
'\"'
&&
*
p
!=
'<'
)
continue
;
quote
=
*
p
++
;
if
(
quote
==
'<'
)
quote
=
'>'
;
include
=
p
;
while
(
*
p
&&
(
*
p
!=
quote
))
p
++
;
if
(
!*
p
)
fatal_error
(
"%s:%d: Malformed #include directive
\n
"
,
pFile
->
filename
,
input_line
);
*
p
=
0
;
}
add_include
(
pFile
,
include
,
input_line
,
(
quote
==
'>'
)
);
}
}
/*******************************************************************
* parse_generated_idl
*/
static
void
parse_generated_idl
(
INCL_FILE
*
source
)
...
...
@@ -688,8 +745,13 @@ static void parse_file( INCL_FILE *pFile, int src )
parse_idl_file
(
pFile
,
file
,
1
);
else
if
(
strendswith
(
pFile
->
filename
,
".idl"
))
parse_idl_file
(
pFile
,
file
,
0
);
else
else
if
(
strendswith
(
pFile
->
filename
,
".c"
)
||
strendswith
(
pFile
->
filename
,
".h"
)
||
strendswith
(
pFile
->
filename
,
".l"
)
||
strendswith
(
pFile
->
filename
,
".y"
))
parse_c_file
(
pFile
,
file
);
else
if
(
strendswith
(
pFile
->
filename
,
".rc"
))
parse_rc_file
(
pFile
,
file
);
fclose
(
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