Kaydet (Commit) 72400181 authored tarafından Luboš Luňák's avatar Luboš Luňák

build ODK headers check without LIBO_INTERNAL_ONLY

Change-Id: Ia8bca09a877bed6070c10e1c008bdb05ac088485
üst 16fd7841
...@@ -23,6 +23,12 @@ $(eval $(call gb_CppunitTest_use_internal_comprehensive_api,odk_checkapi,\ ...@@ -23,6 +23,12 @@ $(eval $(call gb_CppunitTest_use_internal_comprehensive_api,odk_checkapi,\
udkapi \ udkapi \
)) ))
$(eval $(call gb_CppunitTest_disable_compiler_plugins,odk_checkapi))
$(eval $(call gb_CppunitTest_add_cxxflags,odk_checkapi,\
$(gb_CXXFLAGS_Wundef) \
))
$(eval $(call gb_CppunitTest_use_libraries,odk_checkapi,\ $(eval $(call gb_CppunitTest_use_libraries,odk_checkapi,\
cppu \ cppu \
cppuhelper \ cppuhelper \
......
...@@ -7,6 +7,9 @@ ...@@ -7,6 +7,9 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. * file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/ */
// Acts as if building outside of LO.
#undef LIBO_INTERNAL_ONLY
// The whole purpose of this test is to check that public API headers // The whole purpose of this test is to check that public API headers
// build even without RTL_USING (which enables using e.g. rtl::OUString // build even without RTL_USING (which enables using e.g. rtl::OUString
// without to refer to the rtl namespace, which is not wanted // without to refer to the rtl namespace, which is not wanted
......
...@@ -70,6 +70,8 @@ gb_CXXFLAGS_COMMON := \ ...@@ -70,6 +70,8 @@ gb_CXXFLAGS_COMMON := \
-fno-common \ -fno-common \
-pipe \ -pipe \
gb_CXXFLAGS_Wundef = -Wno-undef
ifneq ($(HAVE_THREADSAFE_STATICS),TRUE) ifneq ($(HAVE_THREADSAFE_STATICS),TRUE)
gb_CXXFLAGS_COMMON += -fno-threadsafe-statics gb_CXXFLAGS_COMMON += -fno-threadsafe-statics
endif endif
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment