2012-05-21 04:12:37 -07:00
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
IA2DIR = $(topsrcdir)/other-licenses/ia2
|
|
|
|
|
|
|
|
GARBAGE += $(MIDL_GENERATED_FILES)
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
# Please keep this list in sync with the moz.build file until the rest of this
|
|
|
|
# Makefile is ported over.
|
2007-03-22 10:30:00 -07:00
|
|
|
MIDL_INTERFACES = \
|
|
|
|
Accessible2.idl \
|
2013-05-18 18:21:42 -07:00
|
|
|
Accessible2_2.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
AccessibleAction.idl \
|
|
|
|
AccessibleApplication.idl \
|
|
|
|
AccessibleComponent.idl \
|
2013-05-18 18:21:42 -07:00
|
|
|
AccessibleDocument.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
AccessibleEditableText.idl \
|
|
|
|
AccessibleHyperlink.idl \
|
|
|
|
AccessibleHypertext.idl \
|
2013-05-18 18:21:42 -07:00
|
|
|
AccessibleHypertext2.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
AccessibleImage.idl \
|
|
|
|
AccessibleRelation.idl \
|
|
|
|
AccessibleTable.idl \
|
2009-09-10 18:07:56 -07:00
|
|
|
AccessibleTable2.idl \
|
|
|
|
AccessibleTableCell.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
AccessibleText.idl \
|
2013-05-18 18:21:42 -07:00
|
|
|
AccessibleText2.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
AccessibleValue.idl \
|
|
|
|
$(NULL)
|
|
|
|
|
2013-04-16 12:24:43 -07:00
|
|
|
# Please keep this list in sync with the moz.build file until the rest of this
|
|
|
|
# Makefile is ported over.
|
2007-03-22 10:30:00 -07:00
|
|
|
MIDL_ENUMS = \
|
|
|
|
AccessibleEventId.idl \
|
|
|
|
AccessibleRole.idl \
|
|
|
|
AccessibleStates.idl \
|
2007-04-07 20:58:08 -07:00
|
|
|
IA2CommonTypes.idl \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
CSRCS = \
|
|
|
|
dlldata.c \
|
|
|
|
$(MIDL_INTERFACES:%.idl=%_p.c) \
|
|
|
|
$(MIDL_INTERFACES:%.idl=%_i.c) \
|
|
|
|
$(NULL)
|
|
|
|
|
|
|
|
MIDL_GENERATED_FILES = \
|
|
|
|
dlldata.c \
|
|
|
|
$(MIDL_INTERFACES:%.idl=%_p.c) \
|
|
|
|
$(MIDL_INTERFACES:%.idl=%_i.c) \
|
|
|
|
$(MIDL_INTERFACES:%.idl=%.h) \
|
|
|
|
$(MIDL_ENUMS:%.idl=%.h) \
|
|
|
|
$(NULL)
|
|
|
|
|
2007-09-26 03:38:29 -07:00
|
|
|
EMBED_MANIFEST_AT = 2
|
|
|
|
|
2013-09-03 20:28:05 -07:00
|
|
|
INSTALL_TARGETS += midl
|
|
|
|
midl_FILES := $(filter %.h %_i.c,$(MIDL_GENERATED_FILES))
|
|
|
|
midl_DEST = $(DIST)/include
|
|
|
|
midl_TARGET := export
|
|
|
|
|
2007-03-22 10:30:00 -07:00
|
|
|
include $(topsrcdir)/config/rules.mk
|
|
|
|
|
2012-11-30 06:20:00 -08:00
|
|
|
OS_LIBS = $(call EXPAND_LIBNAME,uuid kernel32 rpcns4 rpcrt4 ole32 oleaut32)
|
2007-03-22 10:30:00 -07:00
|
|
|
|
2008-02-29 08:54:17 -08:00
|
|
|
# generate list of to-be-generated files that are missing
|
|
|
|
# but ignore special file dlldata.c
|
|
|
|
missing:=$(strip $(foreach onefile,$(strip $(subst dlldata.c,,$(MIDL_GENERATED_FILES))),$(if $(wildcard $(onefile)),,$(onefile))))
|
|
|
|
|
|
|
|
missing_base:=$(sort $(basename $(subst _p.c,,$(subst _i.c,,$(missing)))))
|
|
|
|
|
|
|
|
$(MIDL_GENERATED_FILES) : midl_done
|
|
|
|
|
|
|
|
ifneq ("$(missing)","")
|
|
|
|
midl_done : FORCE
|
|
|
|
endif
|
|
|
|
|
|
|
|
midl_done : $(addprefix $(IA2DIR)/,$(MIDL_INTERFACES) $(MIDL_ENUMS))
|
|
|
|
for idl in $(sort $(subst FORCE,,$?) $(addsuffix .idl,$(addprefix $(IA2DIR)/,$(missing_base)))); do \
|
2007-03-22 10:30:00 -07:00
|
|
|
$(MIDL) $(MIDL_FLAGS) -app_config -I $(IA2DIR) -Oicf $$idl; \
|
|
|
|
done
|
2008-02-29 08:54:17 -08:00
|
|
|
touch $@
|
2007-03-22 10:30:00 -07:00
|
|
|
|
|
|
|
# This marshall dll is also registered in the installer
|
|
|
|
register::
|
|
|
|
regsvr32 -s $(DIST)/bin/$(SHARED_LIBRARY)
|