look for java, javac and javadoc with the .exe suffix on windows
[LibreOffice.git] / winaccessibility / CustomTarget_ia2_idl.mk
blob364e6b6257193b51e100d4264e489b74aa5121fd
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
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/.
10 $(eval $(call gb_CustomTarget_CustomTarget,winaccessibility/ia2/idl))
12 iaccessible2_DIR := $(call gb_UnpackedTarball_get_dir,IAccessible2)
13 wina11y_COMIDLDIR := $(call gb_CustomTarget_get_workdir,winaccessibility/ia2/idl)
14 wina11y_SOURCE := $(SRCDIR)/winaccessibility/source/UAccCOMIDL
16 # We cannot depend on *.tlb because they only produced by IDL compiler
17 # if idl contains 'library' statement.
18 $(call gb_CustomTarget_get_target,winaccessibility/ia2/idl) : \
19 $(wina11y_COMIDLDIR)/UAccCOM.h \
20 $(wina11y_COMIDLDIR)/defines.h \
21 $(wina11y_COMIDLDIR)/ia2_api_all.h
23 $(wina11y_COMIDLDIR)/ia2_api_all.h: $(call gb_ExternalProject_get_target,IAccessible2) \
24 | $(wina11y_COMIDLDIR)/.dir
25 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IDL,1)
26 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),IDL)
27 $(call gb_Helper_abbreviate_dirs, \
28 midl.exe \
29 -tlb $(wina11y_COMIDLDIR)/ia2_api_all.tlb \
30 -h $(wina11y_COMIDLDIR)/ia2_api_all.h \
31 -iid $(wina11y_COMIDLDIR)/ia2_api_all_i.c \
32 -dlldata $(wina11y_COMIDLDIR)/dlldata.c \
33 -proxy $(wina11y_COMIDLDIR)/ia2_api_all_p.c \
34 -Oicf \
35 $(SOLARINC) \
36 -I $(wina11y_SOURCE) \
37 -I $(iaccessible2_DIR) \
38 $(iaccessible2_DIR)/ia2_api_all.idl)
39 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),IDL)
41 $(wina11y_COMIDLDIR)/%.h : $(wina11y_SOURCE)/%.idl \
42 $(call gb_ExternalProject_get_target,IAccessible2) \
43 | $(wina11y_COMIDLDIR)/.dir
44 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),IDL,1)
45 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),IDL)
46 $(call gb_Helper_abbreviate_dirs, \
47 midl.exe \
48 -tlb $(wina11y_COMIDLDIR)/$*.tlb \
49 -h $(wina11y_COMIDLDIR)/$*.h \
50 -iid $(wina11y_COMIDLDIR)/$*_i.c \
51 -dlldata $(wina11y_COMIDLDIR)/dlldata.c \
52 -proxy $(wina11y_COMIDLDIR)/$*_p.c \
53 -Oicf \
54 $(SOLARINC) \
55 -I $(wina11y_SOURCE) \
56 -I $(iaccessible2_DIR) \
57 $<)
58 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),IDL)
60 # vim:set shiftwidth=4 tabstop=4 noexpandtab: