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
,odk
/allheaders
))
12 odk_allheaders_DIR
:= $(call gb_CustomTarget_get_workdir
,odk
/allheaders
)
14 $(call gb_CustomTarget_get_target
,odk
/allheaders
) : \
15 $(odk_allheaders_DIR
)/allheaders.hxx
17 $(odk_allheaders_DIR
)/allheaders.hxx
: \
18 $(call gb_PackageSet_get_target
,odk_headers
) \
19 |
$(odk_allheaders_DIR
)/.
dir
20 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),ECH
,1)
21 printf
'// Generated list of sal includes\n' > $@
&& \
22 printf
'#ifdef WNT\n' >> $@
&& \
23 printf
'#include <windows.h>\n' >> $@
&& \
24 printf
'#endif\n' >> $@ \
25 $(foreach file
,$(shell cat
$^
),\
26 $(if
$(findstring /win32
/,$(file
)),&& printf
'#ifdef WNT\n' >> $@
) \
27 && printf
'#include <%s>\n' $(subst $(INSTDIR
)/$(SDKDIRNAME
)/include/,,$(file
)) >> $@ \
28 $(if
$(findstring /win32
/,$(file
)),&& printf
'#endif // WNT\n' >> $@
) \
31 # vim: set noet sw=4 ts=4: