cppunit-optional
authorDebian LibreOffice Maintainers <debian-openoffice@lists.debian.org>
Wed, 27 Apr 2022 20:17:56 +0000 (21:17 +0100)
committerRene Engelhard <rene@debian.org>
Wed, 27 Apr 2022 20:17:56 +0000 (21:17 +0100)
Gbp-Pq: Name cppunit-optional.diff

Repository.mk
config_host.mk.in
configure.ac
sal/Module_sal.mk
sdext/Executable_pdf2xml.mk
smoketest/Module_smoketest.mk
test/Module_test.mk
testtools/Module_testtools.mk
unotest/Module_unotest.mk

index 009c3bdff2daecd5a65d23bd741eb0be314512c1..a59497936bdaaf7a2de6d6aabd1291343b8624ff 100644 (file)
@@ -803,8 +803,12 @@ endif
 
 # 'test_unittest' is only package delivering to workdir.
 # Other packages could be potentially autoinstalled.
+ifeq ($(ENABLE_CPPUNIT),TRUE)
 $(eval $(call gb_Helper_register_packages, \
        test_unittest \
+))
+endif
+$(eval $(call gb_Helper_register_packages, \
        cli_basetypes_copy \
        extras_wordbook \
        instsetoo_native_setup \
index 54798e0836a93168c866dd9541204952074ee24c..8226e42306915160fed74151594d8db6633f0fdf 100644 (file)
@@ -151,6 +151,7 @@ export ENABLE_COINMP=@ENABLE_COINMP@
 export SYSTEM_COINMP=@SYSTEM_COINMP@
 export COINMP_CFLAGS=@COINMP_CFLAGS@
 export COINMP_LIBS=@COINMP_LIBS@
+export ENABLE_CPPUNIT=@ENABLE_CPPUNIT@
 export ENABLE_CUPS=@ENABLE_CUPS@
 export ENABLE_CURL=@ENABLE_CURL@
 export ENABLE_FUZZERS=@ENABLE_FUZZERS@
index d05447b89cce9eafaa232df6223d56a26e792dee..98ecf3a968d499a8363b54cbf6220b0621a1c459 100644 (file)
Binary files a/configure.ac and b/configure.ac differ
index 1a190037f05bf5322656e0ed3e5ae65f735db556..1a65e9bf7f95fd494c33d16f172288bf6c554bc3 100644 (file)
@@ -10,7 +10,6 @@
 $(eval $(call gb_Module_Module,sal))
 
 $(eval $(call gb_Module_add_targets,sal,\
-       $(if $(CROSS_COMPILING),,$(if $(filter TRUE,$(DISABLE_DYNLOADING)),,Executable_cppunittester)) \
        $(if $(filter $(OS),ANDROID), \
                Library_lo-bootstrap) \
        Library_sal \
@@ -37,4 +36,10 @@ $(eval $(call gb_Module_add_check_targets,sal,\
 
 endif
 
+ifeq ($(ENABLE_CPPUNIT),TRUE)
+$(eval $(call gb_Module_add_check_targets,sal,\
+       $(if $(CROSS_COMPILING),,$(if $(filter TRUE,$(DISABLE_DYNLOADING)),,Executable_cppunittester)) \
+))
+endif
+
 # vim: set noet sw=4 ts=4:
index b2439164a1ed1342e8849dea61fbaa4160783556..2f919d0da27fe8d9dfee29fcad6a3409bfcca7b2 100644 (file)
@@ -13,10 +13,10 @@ $(eval $(call gb_Executable_use_sdk_api,pdf2xml))
 
 $(eval $(call gb_Executable_use_externals,pdf2xml,\
     boost_headers \
-    cppunit \
     zlib \
 ))
 
+
 $(eval $(call gb_Executable_set_include,pdf2xml,\
     -I$(SRCDIR)/sdext/source/pdfimport/inc \
     $$(INCLUDE) \
@@ -27,13 +27,21 @@ $(eval $(call gb_Executable_use_libraries,pdf2xml,\
     vcl \
     comphelper \
     cppu \
-    unotest \
     cppuhelper \
     sal \
     tl \
     xo \
 ))
 
+ifeq ($(ENABLE_CPPUNIT),TRUE)
+$(eval $(call gb_Executable_use_externals,pdf2xml,\
+    cppunit \
+))
+$(eval $(call gb_Executable_use_libraries,pdf2xml,\
+    unotest \
+))
+endif
+
 $(eval $(call gb_Executable_use_library_objects,pdf2xml,pdfimport))
 
 $(eval $(call gb_Executable_add_exception_objects,pdf2xml,\
index 217dbfa6543a12533b44485265a72a74c2ee16cd..fa2d0d489bd72ad9446c983eb76a5b484a522494 100644 (file)
@@ -12,8 +12,12 @@ $(eval $(call gb_Module_Module,smoketest))
 
 ifeq ($(CROSS_COMPILING),)
 
+ifeq ($(ENABLE_CPPUNIT),TRUE)
 $(eval $(call gb_Module_add_targets,smoketest,\
        Library_smoketest \
+))
+endif
+$(eval $(call gb_Module_add_targets,smoketest,\
        Zip_smoketestdoc \
 ))
 
@@ -26,6 +30,7 @@ $(eval $(call gb_Module_add_targets,smoketest,\
 endif
 endif
 
+ifeq ($(ENABLE_CPPUNIT),TRUE)
 ifneq (MACOSX/TRUE,$(OS)/$(ENABLE_MACOSX_SANDBOX))
 ifneq ($(filter EXTENSIONS,$(BUILD_TYPE)),)
 $(eval $(call gb_Module_add_subsequentcheck_targets,smoketest,\
@@ -33,6 +38,7 @@ $(eval $(call gb_Module_add_subsequentcheck_targets,smoketest,\
 ))
 endif
 endif
+endif
 
 endif
 
index 080cc855b28cd74330f2a533669061ad947905f0..8d47bbc64638cbc8f1f0bf0941e6a4b2ec60f609 100644 (file)
@@ -11,6 +11,7 @@ $(eval $(call gb_Module_Module,test))
 
 ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
 
+ifeq ($(ENABLE_CPPUNIT),TRUE)
 $(eval $(call gb_Module_add_targets,test,\
     Library_test \
     Library_test_setupvcl \
@@ -22,6 +23,7 @@ $(eval $(call gb_Module_add_targets,test,\
 $(eval $(call gb_Module_add_check_targets,test,\
     CppunitTest_test_xpath \
 ))
+endif
 
 endif
 
index a1b84e175b30819e6dc993dca324b4bcd9fd3606..08e4aad24c1156947b7744fcc50f0315ea496481 100644 (file)
@@ -11,6 +11,8 @@ $(eval $(call gb_Module_Module,testtools))
 
 ifeq ($(CROSS_COMPILING),)
 
+ifeq ($(ENABLE_CPPUNIT),TRUE)
+
 $(eval $(call gb_Module_add_targets,testtools,\
        CustomTarget_bridgetest \
        InternalUnoApi_bridgetest \
@@ -41,4 +43,6 @@ $(eval $(call gb_Module_add_check_targets,testtools,\
 
 endif
 
+endif
+
 # vim:set noet sw=4 ts=4:
index bdffe8e8ac14ba654f45f5e9bd2676303221ba2e..acdd4da6c539fdb22beb1b33746bbe48e48f6353 100644 (file)
@@ -12,12 +12,14 @@ $(eval $(call gb_Module_Module,unotest))
 
 ifeq ($(gb_Side),host)
 ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
+ifeq ($(ENABLE_CPPUNIT),TRUE)
 $(eval $(call gb_Module_add_targets,unotest,\
        Library_unobootstrapprotector \
        Library_unoexceptionprotector \
        Library_unotest \
 ))
 endif
+endif
 
 ifneq ($(ENABLE_JAVA),)
 $(eval $(call gb_Module_add_targets,unotest,\