d923625d89
...which contains only the URE include files, rather than against the SRCDIR one
which contains many more. This would have prevented
148536afc9
"Drop config_global.h from
osl/module.h", where an URE include file had accidentally started to include a
non-URE file.
(The way $(INCLUDE) is now set up in odk/CppunitTest_odk_checkapi.mk is a bit
hacky, and this change required teaching compilerplugins about SDKDIR to avoid
false warnings. Another approach would be to make the test compile in the SDK
build environment, similarly to CustomTarget_odk/build-examples, but setting up
the SDK build environment from within gbuild is not supported at least on
Windows for now. A smaller improvement would be to drop the need to include any
CppUnit include directories, by turning the test into some kind of compile-only
test similar to a gb_CompilerTest.)
Change-Id: If79761909c67c3162d01f847dfb5d4f538f91ca1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/128591
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
41 lines
1.4 KiB
Makefile
41 lines
1.4 KiB
Makefile
# -*- 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_CppunitTest_CppunitTest,odk_checkapi))
|
|
|
|
$(eval $(call gb_CppunitTest_add_exception_objects,odk_checkapi,\
|
|
odk/qa/checkapi/checkapi \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_add_cxxflags,odk_checkapi,\
|
|
$(gb_CXX03FLAGS) \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_set_external_code,odk_checkapi))
|
|
|
|
# The remaining lines must be in the given order, to set up a set of include paths that only
|
|
# contains the instdir SDK include directory, plus SOLARINC as needed for platform-specific
|
|
# includes, plus the workdir sub-directory containing the generated allheaders.hxx and the workdir
|
|
# sub-directory containing the generated UNOIDL include files (which are not bundled in the SDK but
|
|
# would rather get created on demand by the SDK's makefiles), plus whatever is needed for CppUnit:
|
|
|
|
$(eval $(call gb_CppunitTest_set_include,odk_checkapi, \
|
|
-I$(INSTDIR)/$(SDKDIRNAME)/include $(SOLARINC)))
|
|
|
|
$(eval $(call gb_CppunitTest_use_custom_headers,odk_checkapi,\
|
|
odk/allheaders \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_internal_comprehensive_api,odk_checkapi,\
|
|
udkapi \
|
|
))
|
|
|
|
$(eval $(call gb_CppunitTest_use_external,odk_checkapi,cppunit))
|
|
|
|
# vim: set noet sw=4 ts=4:
|