makefiles: Automatically update the IDL_H_SRCS variable.

This commit is contained in:
Alexandre Julliard 2013-12-14 11:35:40 +01:00
parent 4f3d71cef3
commit ca41acc1f9
11 changed files with 3 additions and 17 deletions

View File

@ -5,7 +5,6 @@ C_SRCS = \
infosoft_main.c \
wordbreaker.c
IDL_H_SRCS = infosoft.idl
IDL_R_SRCS = infosoft.idl
@MAKE_DLL_RULES@

View File

@ -30,7 +30,6 @@ RC_SRCS = jscript.rc
IDL_TLB_SRCS = jsglobal.idl
IDL_R_SRCS = jscript_classes.idl
IDL_H_SRCS = jscript_classes.idl
BISON_SRCS = \
parser.y

View File

@ -12,7 +12,6 @@ C_SRCS = \
style.c
IDL_TLB_SRCS = test_tlb.idl
IDL_H_SRCS = test_tlb.idl
RC_SRCS = rsrc.rc

View File

@ -44,7 +44,6 @@ C_SRCS = \
upgrade.c \
where.c
IDL_H_SRCS = msiserver.idl
IDL_I_SRCS = msiserver.idl
IDL_R_SRCS = msiserver.idl
IDL_TLB_SRCS = msiserver.idl

View File

@ -47,8 +47,6 @@ RC_SRCS = \
IDL_R_SRCS = xmlparser.idl
IDL_H_SRCS = xmlparser.idl
IDL_TLB_SRCS = msxml3_v1.idl
@MAKE_DLL_RULES@

View File

@ -10,6 +10,4 @@ RC_SRCS = scrrun.rc
IDL_TLB_SRCS = scrrun.idl
IDL_H_SRCS = scrrun.idl
@MAKE_DLL_RULES@

View File

@ -18,11 +18,6 @@ BISON_SRCS = \
RC_SRCS = vbscript.rc
IDL_H_SRCS = \
vbscript_classes.idl \
vbsglobal.idl \
vbsregexp55.idl
IDL_TLB_SRCS = \
vbsglobal.idl \
vbsregexp10.idl \

View File

@ -6,7 +6,6 @@ C_SRCS = \
main.c
IDL_R_SRCS = wbemdisp_classes.idl
IDL_H_SRCS = wbemdisp_classes.idl
IDL_TLB_SRCS = wbemdisp_tlb.idl

View File

@ -7,7 +7,6 @@ C_SRCS = \
RC_SRCS = wshom.rc
IDL_H_SRCS = wshom.idl
IDL_TLB_SRCS = wshom.idl
@MAKE_DLL_RULES@

View File

@ -10,7 +10,6 @@ C_SRCS = \
host.c \
main.c
IDL_H_SRCS = ihost.idl
IDL_TLB_SRCS = ihost.idl
@MAKE_PROG_RULES@

View File

@ -485,7 +485,7 @@ sub assign_sources_to_makefiles(@)
{
my %flags = get_makedep_flags( $file );
push @{${$make}{"=IDL_C_SRCS"}}, $name if defined $flags{"client"};
push @{${$make}{"=IDL_H_SRCS"}}, $name if defined $flags{"header"};
push @{${$make}{"=IDL_H_SRCS"}}, $name if defined $flags{"header"} || !(keys %flags);
push @{${$make}{"=IDL_I_SRCS"}}, $name if defined $flags{"ident"};
push @{${$make}{"=IDL_P_SRCS"}}, $name if defined $flags{"proxy"};
push @{${$make}{"=IDL_R_SRCS"}}, $name if defined $flags{"register"};
@ -510,6 +510,7 @@ sub assign_sources_to_makefiles(@)
unshift @{${$make}{"=SRCDIR_INCLUDES"}}, "\$(XTEMPLATE_SRCS)";
unshift @{${$make}{"=SRCDIR_INCLUDES"}}, "\$(PUBLIC_IDL_H_SRCS)";
unshift @{${$make}{"=SRCDIR_INCLUDES"}}, "\$(IDL_TLB_SRCS)";
unshift @{${$make}{"=IDL_H_SRCS"}}, "\$(PUBLIC_IDL_H_SRCS) \$(PRIVATE_IDL_H_SRCS)";
# preserve shared source files from the parent makefile
foreach my $file (@makefiles)
@ -619,6 +620,7 @@ sub update_makefiles(@)
replace_makefile_variable( $file, "PRIVATE_IDL_H_SRCS" );
replace_makefile_variable( $file, "PUBLIC_IDL_H_SRCS" );
replace_makefile_variable( $file, "IDL_C_SRCS" );
replace_makefile_variable( $file, "IDL_H_SRCS" );
replace_makefile_variable( $file, "IDL_I_SRCS" );
replace_makefile_variable( $file, "IDL_P_SRCS" );
replace_makefile_variable( $file, "IDL_R_SRCS" );