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
0435b582
Commit
0435b582
authored
May 05, 2011
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
makefiles: Add support for .x template files.
parent
e8859699
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
33 additions
and
5 deletions
+33
-5
Make.rules.in
Make.rules.in
+1
-1
Makefile.in
include/Makefile.in
+3
-2
make_makefiles
tools/make_makefiles
+4
-0
makedep.c
tools/makedep.c
+25
-2
No files found.
Make.rules.in
View file @
0435b582
...
@@ -27,7 +27,7 @@ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=
...
@@ -27,7 +27,7 @@ IDL_GEN_HEADERS = $(IDL_H_SRCS:.idl=.h) $(IDL_C_SRCS:.idl=.h) $(IDL_I_SRCS:.idl=
CLEAN_FILES = *.o *.a *.so *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core
CLEAN_FILES = *.o *.a *.so *.ln *.res *.fake *.$(LIBEXT) \\\#*\\\# *~ *% .\\\#* *.bak *.orig *.rej *.flc core
CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \
CLEAN_TARGETS = $(IDL_GEN_C_SRCS) $(IDL_GEN_HEADERS) $(IDL_TLB_SRCS:.idl=.tlb) $(IDL_P_SRCS:%=dlldata.c) \
$(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \
$(BISON_SRCS:.y=.tab.c) $(BISON_SRCS:.y=.tab.h) $(LEX_SRCS:.l=.yy.c) \
$(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot)
$(PO_SRCS:%=rsrc.pot) $(MC_SRCS:%=msg.pot)
$(XTEMPLATE_SRCS:.x=.h)
OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \
OBJS = $(C_SRCS:.c=.o) $(BISON_SRCS:.y=.tab.o) $(LEX_SRCS:.l=.yy.o) $(IDL_GEN_C_SRCS:.c=.o) \
$(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
$(IDL_R_SRCS:.idl=_r.res) $(RC_SRCS:.rc=.res) $(MC_SRCS:.mc=.res) $(EXTRA_OBJS)
...
...
include/Makefile.in
View file @
0435b582
...
@@ -110,6 +110,7 @@ IDL_TLB_SRCS = \
...
@@ -110,6 +110,7 @@ IDL_TLB_SRCS = \
SRCDIR_INCLUDES
=
\
SRCDIR_INCLUDES
=
\
$(IDL_TLB_SRCS)
\
$(IDL_TLB_SRCS)
\
$(PUBLIC_IDL_H_SRCS)
\
$(PUBLIC_IDL_H_SRCS)
\
$(XTEMPLATE_SRCS)
\
accctrl.h
\
accctrl.h
\
access.idl
\
access.idl
\
aclapi.h
\
aclapi.h
\
...
@@ -575,9 +576,9 @@ IDL_H_SRCS = $(PUBLIC_IDL_H_SRCS) $(PRIVATE_IDL_H_SRCS)
...
@@ -575,9 +576,9 @@ IDL_H_SRCS = $(PUBLIC_IDL_H_SRCS) $(PRIVATE_IDL_H_SRCS)
@MAKE_RULES@
@MAKE_RULES@
OBJDIR_INCLUDES
=
$
(
PUBLIC_IDL_H_SRCS:.idl
=
.h
)
OBJDIR_INCLUDES
=
$
(
PUBLIC_IDL_H_SRCS:.idl
=
.h
)
$
(
XTEMPLATE_SRCS:.x
=
.h
)
all
:
$(IDL_H_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb)
all
:
$(IDL_H_SRCS:.idl=.h) $(IDL_TLB_SRCS:.idl=.tlb)
$(XTEMPLATE_SRCS:.x=.h)
install install-dev
::
$(OBJDIR_INCLUDES) $(INSTALLDIRS)
install install-dev
::
$(OBJDIR_INCLUDES) $(INSTALLDIRS)
for
f
in
$(SRCDIR_INCLUDES)
;
do case
$$
f
in
\
for
f
in
$(SRCDIR_INCLUDES)
;
do case
$$
f
in
\
...
...
tools/make_makefiles
View file @
0435b582
...
@@ -122,6 +122,7 @@ my @ignore_srcs = (
...
@@ -122,6 +122,7 @@ my @ignore_srcs = (
[
'IDL_S_SRCS'
,
'\.idl'
,
'_s.c'
],
[
'IDL_S_SRCS'
,
'\.idl'
,
'_s.c'
],
[
'PUBLIC_IDL_H_SRCS'
,
'\.idl'
,
'.h'
],
[
'PUBLIC_IDL_H_SRCS'
,
'\.idl'
,
'.h'
],
[
'PRIVATE_IDL_H_SRCS'
,
'\.idl'
,
'.h'
],
[
'PRIVATE_IDL_H_SRCS'
,
'\.idl'
,
'.h'
],
[
'XTEMPLATE_SRCS'
,
'\.x'
,
'.h'
],
);
);
my
%
exported_wine_headers
=
(
my
%
exported_wine_headers
=
(
...
@@ -362,6 +363,7 @@ sub assign_sources_to_makefiles(@)
...
@@ -362,6 +363,7 @@ sub assign_sources_to_makefiles(@)
if
(
$name
=~
/stdole2\.idl$/
)
{
push
@
{
$
{
$make
}{
"=IDL_TLB_SRCS"
}},
$name
;
}
if
(
$name
=~
/stdole2\.idl$/
)
{
push
@
{
$
{
$make
}{
"=IDL_TLB_SRCS"
}},
$name
;
}
elsif
(
$private_idl_headers
{
$name
})
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$private_idl_headers
{
$name
})
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.h$/
)
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.h$/
)
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.x$/
)
{
push
@
{
$
{
$make
}{
"=XTEMPLATE_SRCS"
}},
$name
;
}
elsif
(
$name
=~
/\.rh$/
)
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.rh$/
)
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.inl$/
)
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.inl$/
)
{
push
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
$name
;
}
elsif
(
$name
=~
/\.idl$/
)
{
push
@
{
$
{
$make
}{
"=PUBLIC_IDL_H_SRCS"
}},
$name
;
}
elsif
(
$name
=~
/\.idl$/
)
{
push
@
{
$
{
$make
}{
"=PUBLIC_IDL_H_SRCS"
}},
$name
;
}
...
@@ -386,6 +388,7 @@ sub assign_sources_to_makefiles(@)
...
@@ -386,6 +388,7 @@ sub assign_sources_to_makefiles(@)
# add extra variables to include source list
# add extra variables to include source list
my
$make
=
$makefiles
{
"include/Makefile"
};
my
$make
=
$makefiles
{
"include/Makefile"
};
unshift
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
"\$(XTEMPLATE_SRCS)"
;
unshift
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
"\$(PUBLIC_IDL_H_SRCS)"
;
unshift
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
"\$(PUBLIC_IDL_H_SRCS)"
;
unshift
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
"\$(IDL_TLB_SRCS)"
;
unshift
@
{
$
{
$make
}{
"=SRCDIR_INCLUDES"
}},
"\$(IDL_TLB_SRCS)"
;
}
}
...
@@ -492,6 +495,7 @@ sub update_makefiles(@)
...
@@ -492,6 +495,7 @@ sub update_makefiles(@)
replace_makefile_variable
(
$file
,
"PRIVATE_IDL_H_SRCS"
);
replace_makefile_variable
(
$file
,
"PRIVATE_IDL_H_SRCS"
);
replace_makefile_variable
(
$file
,
"PUBLIC_IDL_H_SRCS"
);
replace_makefile_variable
(
$file
,
"PUBLIC_IDL_H_SRCS"
);
replace_makefile_variable
(
$file
,
"IDL_TLB_SRCS"
);
replace_makefile_variable
(
$file
,
"IDL_TLB_SRCS"
);
replace_makefile_variable
(
$file
,
"XTEMPLATE_SRCS"
);
replace_makefile_variable
(
$file
,
"SRCDIR_INCLUDES"
);
replace_makefile_variable
(
$file
,
"SRCDIR_INCLUDES"
);
replace_makefile_variable
(
$file
,
"EXTRASUBDIRS"
);
replace_makefile_variable
(
$file
,
"EXTRASUBDIRS"
);
}
}
...
...
tools/makedep.c
View file @
0435b582
...
@@ -471,6 +471,28 @@ static FILE *open_include_file( INCL_FILE *pFile )
...
@@ -471,6 +471,28 @@ static FILE *open_include_file( INCL_FILE *pFile )
free
(
filename
);
free
(
filename
);
}
}
/* check for corresponding .x file in global includes */
if
(
strendswith
(
pFile
->
name
,
"tmpl.h"
))
{
if
(
top_src_dir
)
filename
=
strmake
(
"%s/include/%.*s.x"
,
top_src_dir
,
strlen
(
pFile
->
name
)
-
2
,
pFile
->
name
);
else
if
(
top_obj_dir
)
filename
=
strmake
(
"%s/include/%.*s.x"
,
top_obj_dir
,
strlen
(
pFile
->
name
)
-
2
,
pFile
->
name
);
else
filename
=
NULL
;
if
(
filename
&&
(
file
=
fopen
(
filename
,
"r"
)))
{
pFile
->
sourcename
=
filename
;
pFile
->
filename
=
strmake
(
"%s/include/%s"
,
top_obj_dir
,
pFile
->
name
);
return
file
;
}
free
(
filename
);
}
/* now try in global includes */
/* now try in global includes */
if
(
top_obj_dir
)
if
(
top_obj_dir
)
{
{
...
@@ -761,9 +783,10 @@ static void parse_file( INCL_FILE *pFile, int src )
...
@@ -761,9 +783,10 @@ static void parse_file( INCL_FILE *pFile, int src )
return
;
return
;
}
}
/* don't try to open
.tlb or .res
files */
/* don't try to open
certain types of
files */
if
(
strendswith
(
pFile
->
name
,
".tlb"
)
||
if
(
strendswith
(
pFile
->
name
,
".tlb"
)
||
strendswith
(
pFile
->
name
,
".res"
))
strendswith
(
pFile
->
name
,
".res"
)
||
strendswith
(
pFile
->
name
,
".x"
))
{
{
pFile
->
filename
=
xstrdup
(
pFile
->
name
);
pFile
->
filename
=
xstrdup
(
pFile
->
name
);
return
;
return
;
...
...
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