bump product version to 4.1.6.2
[LibreOffice.git] / odk / CustomTarget_doxygen.mk
blobeae8ba1b1c73953a1525c02e2c1a2dcccc30aa16
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/docs/cpp))
12 CPPDOCREFNAME := "$(PRODUCTNAME) $(PRODUCTVERSION) SDK C/C++ API Reference"
14 odk_INCDIRLIST := sal salhelper rtl osl typelib uno cppu cppuhelper \
15 $(if $(filter WNT,$(OS)),systools)
16 odk_INCFILELIST := com/sun/star/uno/Any.h \
17 com/sun/star/uno/Any.hxx \
18 com/sun/star/uno/genfunc.h \
19 com/sun/star/uno/genfunc.hxx \
20 com/sun/star/uno/Reference.h \
21 com/sun/star/uno/Reference.hxx \
22 com/sun/star/uno/Sequence.h \
23 com/sun/star/uno/Sequence.hxx \
24 com/sun/star/uno/Type.h \
25 com/sun/star/uno/Type.hxx
27 # Cygwin Doxygen needs unix paths
28 DOXY_INCLUDEDIR := $(INSTDIR)/$(gb_Package_SDKDIRNAME)/include
29 DOXY_INPUT := $(SRCDIR)/odk/pack/gendocu/main.dox $(SRCDIR)/include/sal/log-areas.dox \
30 $(addprefix $(DOXY_INCLUDEDIR)/,$(odk_INCDIRLIST) $(odk_INCFILELIST))
31 DOXY_INPUT := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(DOXY_INPUT)),$(DOXY_INPUT))
32 DOXY_WORKDIR := $(if $(filter WNT,$(OS)),\
33 $(shell cygpath -u $(call gb_CustomTarget_get_workdir,odk/docs/cpp)/ref),\
34 $(call gb_CustomTarget_get_workdir,odk/docs/cpp)/ref)
35 DOXY_STRIP_PATH := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(DOXY_INCLUDEDIR)),$(DOXY_INCLUDEDIR))
38 $(eval $(call gb_CustomTarget_register_targets,odk/docs/cpp,\
39 Doxyfile \
40 doxygen.log \
43 $(call gb_CustomTarget_get_workdir,odk/docs/cpp)/Doxyfile : $(SRCDIR)/odk/pack/gendocu/Doxyfile
44 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
45 sed -e 's!^INPUT = %$$!INPUT = $(DOXY_INPUT)!' \
46 -e 's!^OUTPUT_DIRECTORY = %$$!OUTPUT_DIRECTORY = $(DOXY_WORKDIR)!' \
47 -e 's!^PROJECT_BRIEF = %$$!PROJECT_BRIEF = $(CPPDOCREFNAME)!' \
48 -e 's!^PROJECT_NAME = %$$!PROJECT_NAME = $(PRODUCTNAME)!' \
49 -e 's!^QUIET = %$$!QUIET = $(if $(VERBOSE),NO,YES)!' \
50 -e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(DOXY_STRIP_PATH)!' \
51 $< > $@
53 $(call gb_CustomTarget_get_workdir,odk/docs/cpp)/doxygen.log : \
54 $(call gb_CustomTarget_get_workdir,odk/docs/cpp)/Doxyfile \
55 $(SRCDIR)/include/sal/log-areas.dox \
56 $(SRCDIR)/odk/pack/gendocu/main.dox \
57 $(call gb_PackageSet_get_target,odk_headers)
58 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GEN,1)
59 $(DOXYGEN) $< > $@
61 # vim: set noet sw=4 ts=4: