Skip to content

Commit

Permalink
Build fix for "Avoid File::Find during IDL generation"
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=261364
rdar://99146531

Unreviewed.

DumpRenderTree's DerivedSource Makefile now has multiple targets, so we
need to be careful to actually declare the "all" target first, since the
default target needs to generate everything.

* Tools/DumpRenderTree/DerivedSources.make:

Canonical link: https://commits.webkit.org/268606@main
  • Loading branch information
emw-apple committed Sep 28, 2023
1 parent 538c879 commit aa8545f
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Tools/DumpRenderTree/DerivedSources.make
Original file line number Diff line number Diff line change
Expand Up @@ -59,20 +59,20 @@ SCRIPTS = \
#

IDL_ATTRIBUTES_FILE = $(WebCoreScripts)/IDLAttributes.json

IDL_FILE_NAMES_LIST = IDLFileNamesList.txt
$(IDL_FILE_NAMES_LIST) : $(UICONTEXT_INTERFACES:%=%.idl)
echo $^ | tr " " "\n" > $@

.PHONY : all

JS%.h JS%.cpp : %.idl $(SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(IDL_FILE_NAMES_LIST) $(FEATURE_AND_PLATFORM_DEFINE_DEPENDENCIES)
@echo Generating bindings for $*...
$(PERL) -I $(WebCoreScripts) -I $(UISCRIPTCONTEXT_DIR) -I $(DumpRenderTree)/Bindings $(WebCoreScripts)/generate-bindings.pl --defines "$(FEATURE_AND_PLATFORM_DEFINES)" --idlFileNamesList $(IDL_FILE_NAMES_LIST)--outputDir . --generator DumpRenderTree --idlAttributesFile $(IDL_ATTRIBUTES_FILE) $<

all : \
$(UICONTEXT_INTERFACES:%=JS%.h) \
$(UICONTEXT_INTERFACES:%=JS%.cpp) \

$(IDL_FILE_NAMES_LIST) : $(UICONTEXT_INTERFACES:%=%.idl)
echo $^ | tr " " "\n" > $@

JS%.h JS%.cpp : %.idl $(SCRIPTS) $(IDL_ATTRIBUTES_FILE) $(IDL_FILE_NAMES_LIST) $(FEATURE_AND_PLATFORM_DEFINE_DEPENDENCIES)
@echo Generating bindings for $*...
$(PERL) -I $(WebCoreScripts) -I $(UISCRIPTCONTEXT_DIR) -I $(DumpRenderTree)/Bindings $(WebCoreScripts)/generate-bindings.pl --defines "$(FEATURE_AND_PLATFORM_DEFINES)" --idlFileNamesList $(IDL_FILE_NAMES_LIST) --outputDir . --generator DumpRenderTree --idlAttributesFile $(IDL_ATTRIBUTES_FILE) $<
#


Expand Down

0 comments on commit aa8545f

Please sign in to comment.