accessible/interfaces/ia2/Makefile.in
author Nick Fitzgerald <fitzgen@gmail.com>
Thu, 29 Oct 2015 17:28:32 -0700
changeset 304421 b7e22cd2ec02c00065bbd5c2f35e923f7abc3a22
parent 219696 98614c9969ce8ba59350f978514f60706e18e03b
child 315937 c34410da6b0130bc5430d18a20ad0357114ab0ed
permissions -rw-r--r--
Bug 1219820 - Do not try and select the hidden root when navigating the heap view tree with keyboard shortcuts; r=jsantell

# 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/.

IA2DIR        = $(topsrcdir)/other-licenses/ia2

GARBAGE       += $(MIDL_GENERATED_FILES)

# Please keep this list in sync with the moz.build file until the rest of this
# Makefile is ported over.
MIDL_INTERFACES = \
  Accessible2.idl \
  Accessible2_2.idl \
  AccessibleAction.idl \
  AccessibleApplication.idl \
  AccessibleComponent.idl \
  AccessibleDocument.idl \
  AccessibleEditableText.idl \
  AccessibleHyperlink.idl \
  AccessibleHypertext.idl \
  AccessibleHypertext2.idl \
  AccessibleImage.idl \
  AccessibleRelation.idl \
  AccessibleTable.idl \
  AccessibleTable2.idl \
  AccessibleTableCell.idl \
  AccessibleText.idl \
  AccessibleText2.idl \
  AccessibleValue.idl \
  $(NULL)

# Please keep this list in sync with the moz.build file until the rest of this
# Makefile is ported over.
MIDL_ENUMS = \
  AccessibleEventId.idl \
  AccessibleRole.idl \
  AccessibleStates.idl \
  IA2CommonTypes.idl \
  $(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)

EMBED_MANIFEST_AT = 2

INSTALL_TARGETS += midl
midl_FILES := $(filter %.h %_i.c,$(MIDL_GENERATED_FILES))
midl_DEST = $(DIST)/include
midl_TARGET := export

include $(topsrcdir)/config/rules.mk

# 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 \
	  $(MIDL) $(MIDL_FLAGS) -app_config -I $(IA2DIR) -Oicf $$idl; \
	done
	touch $@

# This marshall dll is also registered in the installer
register::
	regsvr32 -s $(DIST)/bin/$(SHARED_LIBRARY)