зеркало из https://github.com/mozilla/gecko-dev.git
add rules to automatically build .h files from .idl files if they are newer,
and add way of exporting IDL files with IDLSRCS
This commit is contained in:
Родитель
8f9176fb66
Коммит
ace3cdd40e
|
@ -473,6 +473,9 @@ endif #STRICT_CPLUSPLUS_SUFFIX
|
|||
%: %.sh
|
||||
rm -f $@; cp $< $@; chmod +x $@
|
||||
|
||||
%.h: %.idl
|
||||
$(IDL_COMPILE) -h -w -I $(DIST)/idl $<
|
||||
|
||||
ifdef DIRS
|
||||
$(DIRS)::
|
||||
@if test -d $@; then \
|
||||
|
@ -737,6 +740,18 @@ endif
|
|||
################################################################################
|
||||
|
||||
|
||||
ifneq ($(IDLSRCS),)
|
||||
$(XPDIST)/idl$(INCL_SUBDIR)::
|
||||
@if test ! -d $@; then echo Creating $@; rm -rf $@; $(NSINSTALL) -D $@; else true; fi
|
||||
|
||||
export:: $(IDLSRCS) $(XPDIST)/idl$(INCL_SUBDIR)
|
||||
$(INSTALL) -m 444 $^
|
||||
|
||||
endif
|
||||
|
||||
##############################################################################
|
||||
|
||||
|
||||
ifdef USE_AUTOCONF
|
||||
ALL_TRASH := $(filter-out $(OBJDIR), $(ALL_TRASH))
|
||||
endif
|
||||
|
|
Загрузка…
Ссылка в новой задаче