summaryrefslogtreecommitdiff
path: root/odk/CustomTarget_doxygen.mk
diff options
context:
space:
mode:
authorPeter Foley <pefoley2@verizon.net>2013-02-21 00:56:13 -0600
committerPeter Foley <pefoley2@verizon.net>2013-02-23 21:39:52 +0000
commit613221bde1744265c336c2b5f2ade0bfb9b22d16 (patch)
tree9d7efa2dc01fdab24b599f7e40677d019e9ad14b /odk/CustomTarget_doxygen.mk
parent5003ab57eee903d072fc7fac8cb5c69a34fb9d5c (diff)
convert odk to gbuild and add to tail_build
Change-Id: I8e8de7f2bb87cce7916c7c2df24c1b0ddaea55c0 Reviewed-on: https://gerrit.libreoffice.org/2288 Reviewed-by: Peter Foley <pefoley2@verizon.net> Tested-by: Peter Foley <pefoley2@verizon.net>
Diffstat (limited to 'odk/CustomTarget_doxygen.mk')
-rw-r--r--odk/CustomTarget_doxygen.mk43
1 files changed, 43 insertions, 0 deletions
diff --git a/odk/CustomTarget_doxygen.mk b/odk/CustomTarget_doxygen.mk
new file mode 100644
index 000000000000..d31ab03b79e8
--- /dev/null
+++ b/odk/CustomTarget_doxygen.mk
@@ -0,0 +1,43 @@
+# -*- 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,odk/odkcommon/docs/cpp/ref))
+
+odkcommon_ZIPLIST += docs/cpp/ref
+
+CPPDOCREFNAME := "UDK $(UDK_MAJOR).$(UDK_MINOR).$(UDK_MICRO) C/C++ API Reference"
+
+# Cygwin Doxygen needs unix paths
+DOXY_INPUT := $(docu_SRCDIR)/main.dox $(addprefix $(OUTDIR)/inc/,$(odk_INCDIRLIST) $(odk_INCFILELIST))
+DOXY_INPUT := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(DOXY_INPUT)),$(DOXY_INPUT))
+DOXY_WORKDIR := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(odk_WORKDIR)/docs/cpp/ref),$(odk_WORKDIR)/docs/cpp/ref)
+DOXY_STRIP_PATH := $(if $(filter WNT,$(OS)),$(shell cygpath -u $(OUTDIR)/inc),$(OUTDIR)/inc)
+DOXY_DEPS := $(SRCDIR)/odk/pack/gendocu/Doxyfile \
+ $(SRCDIR)/odk/pack/gendocu/main.dox \
+ $(call gb_Package_get_target,sal_inc) \
+ $(call gb_Package_get_target,salhelper_inc) \
+ $(call gb_Package_get_target,cppu_inc) \
+ $(call gb_Package_get_target,cppuhelper_inc) \
+ $(call gb_Package_get_target,store_inc) \
+ $(call gb_Package_get_target,registry_inc)
+
+
+$(eval $(call gb_CustomTarget_register_target,odk/odkcommon/docs/cpp/ref,index.html))
+
+$(odk_WORKDIR)/docs/cpp/ref/index.html: $(DOXY_DEPS)
+ $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),GEN,1)
+ sed -e 's!^INPUT = %$$!INPUT = $(DOXY_INPUT)!' \
+ -e 's!^OUTPUT_DIRECTORY = %$$!OUTPUT_DIRECTORY = $(DOXY_WORKDIR)!' \
+ -e 's!^PROJECT_BRIEF = %$$!PROJECT_BRIEF = $(CPPDOCREFNAME)!' \
+ -e 's!^QUIET = %$$!QUIET = $(if $(VERBOSE),YES,NO)!' \
+ -e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(DOXY_STRIP_PATH)!' \
+ $< > $(odk_WORKDIR)/Doxyfile
+ $(DOXYGEN) $(odk_WORKDIR)/Doxyfile
+
+# vim: set noet sw=4 ts=4: