2014-04-28 23:33:04 +09:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-08-23 15:03:09 +02:00
|
|
|
#
|
|
|
|
#
|
2013-04-24 17:14:03 +01:00
|
|
|
# This file is part of the LibreOffice project.
|
2011-08-23 15:03:09 +02:00
|
|
|
#
|
2013-04-24 17:14:03 +01:00
|
|
|
# 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/.
|
2011-08-23 15:03:09 +02:00
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_Library,cppuhelper))
|
|
|
|
|
2013-09-17 22:24:10 +02:00
|
|
|
$(eval $(call gb_Library_set_soversion_script,cppuhelper,$(SRCDIR)/cppuhelper/source/gcc3.map))
|
2011-08-23 15:03:09 +02:00
|
|
|
|
use MSVC's /Zc:inline option to reduce binary size
If I'm getting it right, MSVC has a non-conforming feature
that allows to declare a function as inline without defining its
body in the header, and it'll work if the function is actually
emitted elsewhere, and the linker will sort it out. This seems
to be implemented by forcing emitting of out-of-line copies
of all inline functions, which is wasteful. /Zc:inline disables
this useless feature, which seems to save quite some space
(optimized build, starmath's .o files 350k->220k, smlo.dll
2.5M->2.2M).
The docs don't say anything about binary compatibility,
but treat it the same way as -Zc:dllexportInlines, just in case.
This change also may help avoid the tdf#144598 problem for our
AVX/etc. code, such as in Calc.
Change-Id: I73cc5d46ba1e4245e8d3b6688804c2b9684d2f9a
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/122334
Tested-by: Jenkins
Reviewed-by: Luboš Luňák <l.lunak@collabora.com>
2021-09-20 01:44:17 +02:00
|
|
|
$(eval $(call gb_Library_set_precompiled_header,cppuhelper,cppuhelper/inc/pch/precompiled_cppuhelper))
|
|
|
|
|
2012-04-07 01:27:55 +02:00
|
|
|
$(eval $(call gb_Library_use_internal_comprehensive_api,cppuhelper,\
|
|
|
|
cppuhelper \
|
|
|
|
udkapi \
|
2019-11-29 16:03:27 +01:00
|
|
|
offapi \
|
2011-08-23 15:03:09 +02:00
|
|
|
))
|
|
|
|
|
2021-11-29 08:32:42 +01:00
|
|
|
$(eval $(call gb_Library_set_is_ure_library_or_dependency,cppuhelper))
|
2021-09-20 10:31:40 +00:00
|
|
|
|
2011-08-23 15:03:09 +02:00
|
|
|
$(eval $(call gb_Library_add_defs,cppuhelper,\
|
|
|
|
-DCPPUHELPER_DLLIMPLEMENTATION \
|
|
|
|
))
|
|
|
|
|
2012-04-07 23:22:08 +02:00
|
|
|
$(eval $(call gb_Library_use_libraries,cppuhelper,\
|
2011-08-23 15:03:09 +02:00
|
|
|
cppu \
|
2012-04-20 22:46:42 +02:00
|
|
|
reg \
|
2011-08-23 15:03:09 +02:00
|
|
|
sal \
|
|
|
|
salhelper \
|
2013-02-25 15:31:05 +01:00
|
|
|
unoidl \
|
2012-04-20 22:46:42 +02:00
|
|
|
xmlreader \
|
2011-08-23 15:03:09 +02:00
|
|
|
))
|
|
|
|
|
2012-10-10 13:50:20 +02:00
|
|
|
$(eval $(call gb_Library_use_static_libraries,cppuhelper,\
|
|
|
|
findsofficepath \
|
2011-08-23 15:03:09 +02:00
|
|
|
))
|
|
|
|
|
2021-09-27 18:47:15 +03:00
|
|
|
ifeq ($(OS),iOS)
|
|
|
|
$(eval $(call gb_Library_add_cxxflags,cppuhelper,\
|
|
|
|
$(gb_OBJCXXFLAGS) \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
2023-05-06 12:45:43 +02:00
|
|
|
$(eval $(call gb_Library_set_include,cppuhelper,\
|
|
|
|
-I$(SRCDIR)/cppuhelper/inc \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
))
|
|
|
|
|
2011-08-23 15:03:09 +02:00
|
|
|
$(eval $(call gb_Library_add_exception_objects,cppuhelper,\
|
|
|
|
cppuhelper/source/access_control \
|
|
|
|
cppuhelper/source/bootstrap \
|
2012-12-06 09:48:07 +00:00
|
|
|
cppuhelper/source/compat \
|
2023-05-06 12:45:43 +02:00
|
|
|
cppuhelper/source/compbase \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/component_context \
|
|
|
|
cppuhelper/source/component \
|
2012-04-20 22:46:42 +02:00
|
|
|
cppuhelper/source/defaultbootstrap \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/exc_thrower \
|
|
|
|
cppuhelper/source/factory \
|
|
|
|
cppuhelper/source/implbase \
|
|
|
|
cppuhelper/source/implbase_ex \
|
|
|
|
cppuhelper/source/implementationentry \
|
|
|
|
cppuhelper/source/interfacecontainer \
|
|
|
|
cppuhelper/source/macro_expander \
|
2012-04-20 22:46:42 +02:00
|
|
|
cppuhelper/source/paths \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/propertysetmixin \
|
|
|
|
cppuhelper/source/propshlp \
|
2013-01-15 16:28:30 +01:00
|
|
|
cppuhelper/source/servicemanager \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/shlib \
|
2012-09-14 19:27:00 +02:00
|
|
|
cppuhelper/source/supportsservice \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/tdmgr \
|
2013-04-17 16:43:13 +02:00
|
|
|
cppuhelper/source/typemanager \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/typeprovider \
|
2023-05-06 12:45:43 +02:00
|
|
|
cppuhelper/source/unoimplbase \
|
2011-08-23 15:03:09 +02:00
|
|
|
cppuhelper/source/unourl \
|
|
|
|
cppuhelper/source/weak \
|
|
|
|
))
|
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|