[Libreoffice-commits] core.git: odk/CustomTarget_check.mk odk/CustomTarget_doxygen.mk odk/CustomTarget_odkcommon.mk odk/Module_odk.mk odk/Zip_cppdocs.mk scp2/InstallModule_sdkoo.mk scp2/source

David Tardon dtardon at redhat.com
Tue Apr 23 22:22:35 PDT 2013


 odk/CustomTarget_check.mk          |    1 +
 odk/CustomTarget_doxygen.mk        |    5 +----
 odk/CustomTarget_odkcommon.mk      |    1 -
 odk/Module_odk.mk                  |    5 ++++-
 odk/Zip_cppdocs.mk                 |   20 ++++++++++++++++++++
 scp2/InstallModule_sdkoo.mk        |    6 ++++++
 scp2/source/sdkoo/module_sdkoo.scp |    1 +
 scp2/source/sdkoo/sdkoo.scp        |    9 +++++++++
 8 files changed, 42 insertions(+), 6 deletions(-)

New commits:
commit 498091c772e60660419345512fa1b49252bffe33
Author: David Tardon <dtardon at redhat.com>
Date:   Tue Apr 23 19:05:59 2013 +0200

    clean up install. of C++ docs
    
    Change-Id: I51841a8c92cb73912757fcc0766b11d8f9be4b77
    Reviewed-on: https://gerrit.libreoffice.org/3587
    Reviewed-by: David Tardon <dtardon at redhat.com>
    Tested-by: David Tardon <dtardon at redhat.com>

diff --git a/odk/CustomTarget_check.mk b/odk/CustomTarget_check.mk
index 85113b3..e6754c9 100644
--- a/odk/CustomTarget_check.mk
+++ b/odk/CustomTarget_check.mk
@@ -27,6 +27,7 @@ odk_PLATFORM := $(if $(filter WNT,$(OS)),\
 
 $(call gb_CustomTarget_get_workdir,odk/check)/checkbin : \
 		$(SRCDIR)/odk/util/check.pl \
+		$(if $(DOXYGEN),$(call gb_CustomTarget_get_target,odk/odkcommon/docs/cpp/ref)) \
 		$(call gb_Package_get_target,odk_bin) \
 		$(if $(filter WNT,$(OS)),$(call gb_Package_get_target,odk_cli)) \
 		$(call gb_Package_get_target,odk_config) \
diff --git a/odk/CustomTarget_doxygen.mk b/odk/CustomTarget_doxygen.mk
index fbdefca..e9a33ee 100644
--- a/odk/CustomTarget_doxygen.mk
+++ b/odk/CustomTarget_doxygen.mk
@@ -9,9 +9,6 @@
 
 $(eval $(call gb_CustomTarget_CustomTarget,odk/odkcommon/docs/cpp/ref))
 
-odkcommon_ZIPLIST += docs/cpp/ref
-odkcommon_ZIPDEPS += $(odk_WORKDIR)/docs/cpp/ref/index.html
-
 CPPDOCREFNAME := "$(PRODUCTNAME) $(PRODUCTVERSION) SDK C/C++ API Reference"
 
 odk_INCDIRLIST := sal salhelper rtl osl typelib uno cppu cppuhelper \
@@ -49,7 +46,7 @@ $(odk_WORKDIR)/docs/cpp/ref/index.html: $(DOXY_DEPS)
 		-e 's!^PROJECT_NAME = %$$!PROJECT_NAME = $(PRODUCTNAME)!' \
 		-e 's!^QUIET = %$$!QUIET = $(if $(VERBOSE),NO,YES)!' \
 		-e 's!^STRIP_FROM_PATH = %$$!STRIP_FROM_PATH = $(DOXY_STRIP_PATH)!' \
-		$< > $(odk_WORKDIR)/Doxyfile
+		$< > $(odk_WORKDIR)/Doxyfile && \
 	$(DOXYGEN) $(odk_WORKDIR)/Doxyfile > $(odk_WORKDIR)/doxygen.log
 
 # vim: set noet sw=4 ts=4:
diff --git a/odk/CustomTarget_odkcommon.mk b/odk/CustomTarget_odkcommon.mk
index 6b500e8..1201fdf 100644
--- a/odk/CustomTarget_odkcommon.mk
+++ b/odk/CustomTarget_odkcommon.mk
@@ -14,7 +14,6 @@ odkcommon_ZIPDEPS :=
 $(eval $(call gb_CustomTarget_CustomTarget,odk/odkcommon))
 
 $(call gb_CustomTarget_get_target,odk/odkcommon): \
-	$(if $(DOXYGEN),$(call gb_CustomTarget_get_target,odk/odkcommon/docs/cpp/ref)) \
 	$(if $(SOLAR_JAVA),$(call gb_CustomTarget_get_target,odk/odkcommon/docs/java/ref)) \
 	$(call gb_CustomTarget_get_target,odk/odkcommon/docs/common/ref) \
 	$(call gb_CustomTarget_get_target,odk/odkcommon/classes) \
diff --git a/odk/Module_odk.mk b/odk/Module_odk.mk
index c17c5741..2c25c79 100644
--- a/odk/Module_odk.mk
+++ b/odk/Module_odk.mk
@@ -12,7 +12,10 @@ $(eval $(call gb_Module_Module,odk))
 $(eval $(call gb_Module_add_targets,odk,\
 	CustomTarget_odkcommon \
 	$(if $(filter WNT,$(OS)),Package_cli) \
-	$(if $(DOXYGEN),CustomTarget_doxygen) \
+	$(if $(DOXYGEN),\
+		CustomTarget_doxygen \
+		Zip_cppdocs \
+	) \
 	CustomTarget_html \
 	CustomTarget_settings \
 	CustomTarget_autodoc \
diff --git a/odk/Zip_cppdocs.mk b/odk/Zip_cppdocs.mk
new file mode 100644
index 0000000..1904cdb
--- /dev/null
+++ b/odk/Zip_cppdocs.mk
@@ -0,0 +1,20 @@
+# -*- 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_Zip_Zip,cppdocs,$(call gb_CustomTarget_get_workdir,odk/odkcommon)))
+
+$(eval $(call gb_Zip_add_files,cppdocs,\
+	docs/cpp/ref \
+))
+
+$(eval $(call gb_Zip_add_commandoptions,cppdocs,-r))
+
+$(call gb_Zip_get_target,cppdocs) : $(call gb_CustomTarget_get_target,odk/odkcommon/docs/cpp/ref)
+
+# vim: set noet sw=4 ts=4:
diff --git a/scp2/InstallModule_sdkoo.mk b/scp2/InstallModule_sdkoo.mk
index b98ad85..6bb2c54 100644
--- a/scp2/InstallModule_sdkoo.mk
+++ b/scp2/InstallModule_sdkoo.mk
@@ -9,6 +9,12 @@
 
 $(eval $(call gb_InstallModule_InstallModule,scp2/sdkoo))
 
+ifneq ($(DOXYGEN),)
+$(eval $(call gb_InstallModule_add_defs,scp2/sdkoo,\
+	-DDOXYGEN \
+))
+endif
+
 $(eval $(call gb_InstallModule_add_scpfiles,scp2/sdkoo,\
     scp2/source/sdkoo/sdkoo \
 ))
diff --git a/scp2/source/sdkoo/module_sdkoo.scp b/scp2/source/sdkoo/module_sdkoo.scp
index ed40abd..2d837f9 100644
--- a/scp2/source/sdkoo/module_sdkoo.scp
+++ b/scp2/source/sdkoo/module_sdkoo.scp
@@ -46,6 +46,7 @@ Module gid_Module_Optional_Sdkoo
         gid_File_Package_odk_settings,
         gid_File_Package_odk_settings_generated,
         gid_File_Package_odk_unowinreg,
+        gid_File_Zip_cppdocs,
         gid_File_Zip_Odkexamples,
         gid_File_Zip_Odkcommon,
         gid_File_Zip_OdkIdl_udkapi,
diff --git a/scp2/source/sdkoo/sdkoo.scp b/scp2/source/sdkoo/sdkoo.scp
index a6d4207..10301af 100644
--- a/scp2/source/sdkoo/sdkoo.scp
+++ b/scp2/source/sdkoo/sdkoo.scp
@@ -208,6 +208,15 @@ File gid_File_Package_odk_unowinreg
 End
 #endif
 
+#if defined(DOXYGEN)
+File gid_File_Zip_cppdocs
+    TXT_FILE_BODY;
+    Dir = gid_Dir_Basis_Sdk;
+    Name = "cppdocs.zip";
+    Styles = (ARCHIVE,USE_INTERNAL_RIGHTS);
+End
+#endif
+
 File gid_File_Zip_Odkexamples
     TXT_FILE_BODY;
     Dir = FILELIST_SDK_DIR;


More information about the Libreoffice-commits mailing list