1# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#
3# This file is part of the LibreOffice project.
4#
5# This Source Code Form is subject to the terms of the Mozilla Public
6# License, v. 2.0. If a copy of the MPL was not distributed with this
7# file, You can obtain one at http://mozilla.org/MPL/2.0/.
8#
9
10$(eval $(call gb_CustomTarget_CustomTarget,extensions/source/activex/idl))
11
12extensions_AXIDLDIR := $(call gb_CustomTarget_get_workdir,extensions/source/activex/idl)
13
14$(call gb_CustomTarget_get_target,extensions/source/activex/idl) : \
15	$(extensions_AXIDLDIR)/so_activex.tlb
16
17# XXX: I presume that the "$(COM)"=="GCC" case in the original
18# extensions/source/activex/msidl/makefile.mk was for the
19# use-mingw-on-windows case and thus is not interesting for us.
20$(extensions_AXIDLDIR)/so_activex.tlb : \
21		$(SRCDIR)/extensions/source/activex/so_activex.idl \
22		| $(extensions_AXIDLDIR)/.dir
23	$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IDL,1)
24	$(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),IDL)
25	$(call gb_Helper_abbreviate_dirs, \
26	midl.exe \
27		-tlb $@ \
28		-h $(extensions_AXIDLDIR)/so_activex.h \
29		-iid $(extensions_AXIDLDIR)/so_activex_i.c \
30		-dlldata $(extensions_AXIDLDIR)/so_activex_dll.c \
31		-proxy $(extensions_AXIDLDIR)/so_activex_p.c \
32		-Oicf \
33		$(INCLUDE) \
34		$<)
35	$(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),IDL)
36
37# vim:set shiftwidth=4 tabstop=4 noexpandtab:
38