1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/accessible/public/ia2/Makefile.in Wed Dec 31 06:09:35 2014 +0100 1.3 @@ -0,0 +1,86 @@ 1.4 +# This Source Code Form is subject to the terms of the Mozilla Public 1.5 +# License, v. 2.0. If a copy of the MPL was not distributed with this 1.6 +# file, You can obtain one at http://mozilla.org/MPL/2.0/. 1.7 + 1.8 +IA2DIR = $(topsrcdir)/other-licenses/ia2 1.9 + 1.10 +GARBAGE += $(MIDL_GENERATED_FILES) 1.11 + 1.12 +# Please keep this list in sync with the moz.build file until the rest of this 1.13 +# Makefile is ported over. 1.14 +MIDL_INTERFACES = \ 1.15 + Accessible2.idl \ 1.16 + Accessible2_2.idl \ 1.17 + AccessibleAction.idl \ 1.18 + AccessibleApplication.idl \ 1.19 + AccessibleComponent.idl \ 1.20 + AccessibleDocument.idl \ 1.21 + AccessibleEditableText.idl \ 1.22 + AccessibleHyperlink.idl \ 1.23 + AccessibleHypertext.idl \ 1.24 + AccessibleHypertext2.idl \ 1.25 + AccessibleImage.idl \ 1.26 + AccessibleRelation.idl \ 1.27 + AccessibleTable.idl \ 1.28 + AccessibleTable2.idl \ 1.29 + AccessibleTableCell.idl \ 1.30 + AccessibleText.idl \ 1.31 + AccessibleText2.idl \ 1.32 + AccessibleValue.idl \ 1.33 + $(NULL) 1.34 + 1.35 +# Please keep this list in sync with the moz.build file until the rest of this 1.36 +# Makefile is ported over. 1.37 +MIDL_ENUMS = \ 1.38 + AccessibleEventId.idl \ 1.39 + AccessibleRole.idl \ 1.40 + AccessibleStates.idl \ 1.41 + IA2CommonTypes.idl \ 1.42 + $(NULL) 1.43 + 1.44 +CSRCS = \ 1.45 + dlldata.c \ 1.46 + $(MIDL_INTERFACES:%.idl=%_p.c) \ 1.47 + $(MIDL_INTERFACES:%.idl=%_i.c) \ 1.48 + $(NULL) 1.49 + 1.50 +MIDL_GENERATED_FILES = \ 1.51 + dlldata.c \ 1.52 + $(MIDL_INTERFACES:%.idl=%_p.c) \ 1.53 + $(MIDL_INTERFACES:%.idl=%_i.c) \ 1.54 + $(MIDL_INTERFACES:%.idl=%.h) \ 1.55 + $(MIDL_ENUMS:%.idl=%.h) \ 1.56 + $(NULL) 1.57 + 1.58 +EMBED_MANIFEST_AT = 2 1.59 + 1.60 +INSTALL_TARGETS += midl 1.61 +midl_FILES := $(filter %.h %_i.c,$(MIDL_GENERATED_FILES)) 1.62 +midl_DEST = $(DIST)/include 1.63 +midl_TARGET := export 1.64 + 1.65 +include $(topsrcdir)/config/rules.mk 1.66 + 1.67 +OS_LIBS = $(call EXPAND_LIBNAME,uuid kernel32 rpcns4 rpcrt4 ole32 oleaut32) 1.68 + 1.69 +# generate list of to-be-generated files that are missing 1.70 +# but ignore special file dlldata.c 1.71 +missing:=$(strip $(foreach onefile,$(strip $(subst dlldata.c,,$(MIDL_GENERATED_FILES))),$(if $(wildcard $(onefile)),,$(onefile)))) 1.72 + 1.73 +missing_base:=$(sort $(basename $(subst _p.c,,$(subst _i.c,,$(missing))))) 1.74 + 1.75 +$(MIDL_GENERATED_FILES) : midl_done 1.76 + 1.77 +ifneq ("$(missing)","") 1.78 +midl_done : FORCE 1.79 +endif 1.80 + 1.81 +midl_done : $(addprefix $(IA2DIR)/,$(MIDL_INTERFACES) $(MIDL_ENUMS)) 1.82 + for idl in $(sort $(subst FORCE,,$?) $(addsuffix .idl,$(addprefix $(IA2DIR)/,$(missing_base)))); do \ 1.83 + $(MIDL) $(MIDL_FLAGS) -app_config -I $(IA2DIR) -Oicf $$idl; \ 1.84 + done 1.85 + touch $@ 1.86 + 1.87 +# This marshall dll is also registered in the installer 1.88 +register:: 1.89 + regsvr32 -s $(DIST)/bin/$(SHARED_LIBRARY)