# '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, \
$(if $(ENABLE_CLI),cli_basetypes_copy) \
extras_wordbook \
instsetoo_native_setup \
SYSTEM_COINMP=@SYSTEM_COINMP@
export COINMP_CFLAGS=@COINMP_CFLAGS@
export COINMP_LIBS=@COINMP_LIBS@
+export ENABLE_CPPUNIT=@ENABLE_CPPUNIT@
export ENABLE_ATSPI_TESTS=@ENABLE_ATSPI_TESTS@
export ENABLE_CPDB=@ENABLE_CPDB@
export ENABLE_CUPS=@ENABLE_CUPS@
$(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 EMSCRIPTEN), \
Library_lo-bootstrap) \
Library_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:
$(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) \
cppu \
drawinglayercore \
drawinglayer \
- unotest \
cppuhelper \
sal \
salhelper \
i18nutil \
))
+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,\
ifeq ($(CROSS_COMPILING),)
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
+ifeq ($(ENABLE_CPPUNIT),TRUE)
$(eval $(call gb_Module_add_targets,smoketest,\
Library_smoketest \
+))
+endif
+$(eval $(call gb_Module_add_targets,smoketest,\
Zip_smoketestdoc \
))
endif
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,\
))
endif
endif
+endif
endif
ifneq (,$(filter DESKTOP,$(BUILD_TYPE)))
+ifeq ($(ENABLE_CPPUNIT),TRUE)
$(eval $(call gb_Module_add_targets,test,\
Library_test \
Library_test_setupvcl \
CppunitTest_test_a11y \
CppunitTest_test_xpath \
))
+endif
endif
ifeq ($(CROSS_COMPILING),)
+ifeq ($(ENABLE_CPPUNIT),TRUE)
+
$(eval $(call gb_Module_add_targets,testtools,\
CustomTarget_bridgetest \
InternalUnoApi_bridgetest \
endif
+endif
+
# vim:set noet sw=4 ts=4:
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,\