mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-01 17:23:59 +00:00
A slightly better test for overriding .h files with .idl files.
If foo.h is in the $(EXPORTS) list (rather than just in the same dir) warn that the .h we're generating from the .idl overrides the old .idl.
This commit is contained in:
parent
a7c2b4163f
commit
1fb5b28cce
@ -911,7 +911,7 @@ $(XPIDL_GEN_DIR):
|
||||
|
||||
$(XPIDL_GEN_DIR)/%.h: %.idl $(IDL_COMPILE) $(XPIDL_GEN_DIR)
|
||||
$(XPIDL_COMPILE) -m header -w -I $(XPDIST)/idl -o $(XPIDL_GEN_DIR)/$* $<
|
||||
@if test -e $(srcdir)/$*.h; \
|
||||
@if test -n "$(findstring $*.h, $(EXPORTS))"; \
|
||||
then echo "*** WARNING: file $*.h generated from $*.idl overrides $(srcdir)/$*.h"; fi
|
||||
|
||||
export:: $(patsubst %.idl,$(XPIDL_GEN_DIR)/%.h, $(XPIDLSRCS)) $(XPDIST)/include
|
||||
|
Loading…
Reference in New Issue
Block a user