office-gobmx/winaccessibility/CustomTarget_ia2_idl.mk
Christian Lohmaier 875a1bf2e1 makefile simplification: replace $(call gb_UnpackedTarball_get_dir,foo)
…by a simple/static $(gb_UnpackedTarball_workdir)/foo
see also 0c4c84a14b

Change-Id: I8e6aa55c85534c4446556548910c950ddbe7c6fc
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/167163
Reviewed-by: Christian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
2024-05-06 11:40:45 +02:00

60 lines
2.2 KiB
Makefile

# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
#
# This file is part of the LibreOffice project.
#
# 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/.
#
$(eval $(call gb_CustomTarget_CustomTarget,winaccessibility/ia2/idl))
iaccessible2_DIR := $(gb_UnpackedTarball_workdir)/IAccessible2
wina11y_COMIDLDIR := $(gb_CustomTarget_workdir)/winaccessibility/ia2/idl
wina11y_SOURCE := $(SRCDIR)/winaccessibility/source/UAccCOMIDL
# We cannot depend on *.tlb because they only produced by IDL compiler
# if idl contains 'library' statement.
$(call gb_CustomTarget_get_target,winaccessibility/ia2/idl) : \
$(wina11y_COMIDLDIR)/UAccCOM.h \
$(wina11y_COMIDLDIR)/defines.h \
$(wina11y_COMIDLDIR)/ia2_api_all.h
$(wina11y_COMIDLDIR)/ia2_api_all.h: $(call gb_ExternalProject_get_target,IAccessible2) \
| $(wina11y_COMIDLDIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IDL,1)
$(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),IDL)
$(call gb_Helper_abbreviate_dirs, \
midl.exe \
-tlb $(wina11y_COMIDLDIR)/ia2_api_all.tlb \
-h $(wina11y_COMIDLDIR)/ia2_api_all.h \
-iid $(wina11y_COMIDLDIR)/ia2_api_all_i.c \
-dlldata $(wina11y_COMIDLDIR)/dlldata.c \
-proxy $(wina11y_COMIDLDIR)/ia2_api_all_p.c \
-Oicf \
$(SOLARINC) \
-I $(wina11y_SOURCE) \
-I $(iaccessible2_DIR) \
$(iaccessible2_DIR)/ia2_api_all.idl)
$(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),IDL)
$(wina11y_COMIDLDIR)/%.h : $(wina11y_SOURCE)/%.idl \
$(call gb_ExternalProject_get_target,IAccessible2) \
| $(wina11y_COMIDLDIR)/.dir
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IDL,1)
$(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),IDL)
$(call gb_Helper_abbreviate_dirs, \
midl.exe \
-tlb $(wina11y_COMIDLDIR)/$*.tlb \
-h $(wina11y_COMIDLDIR)/$*.h \
-iid $(wina11y_COMIDLDIR)/$*_i.c \
-dlldata $(wina11y_COMIDLDIR)/dlldata.c \
-proxy $(wina11y_COMIDLDIR)/$*_p.c \
-Oicf \
$(SOLARINC) \
-I $(wina11y_SOURCE) \
-I $(iaccessible2_DIR) \
$<)
$(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),IDL)
# vim:set shiftwidth=4 tabstop=4 noexpandtab: