office-gobmx/external/graphite/StaticLibrary_graphite.mk
Stephan Bergmann 26e7cb5ef4 Remove gb_LinkTarget_add_generated_cxxobjects
...in favor of gb_LinkTarget_add_generated_exception_objects.  The former would
have needed any flags to be passed in explicitly (but no call sites did), so
e.g. StaticLibrary_graphite didn't have any debug information (when building
with --enable-debug).  I guess there is no downside to having C++ exception
support enabled in these places, and using _add_generated_cxxobjects instead was
likely an oversight in the first place (at least in the case of
external/graphite/StaticLibrary_graphite.mk, it was that way ever since
1ceb47d96d "graphite: convert to gbuild", but for
no apparent reason).

Change-Id: I9986a6c5ec30a521095dbe5315e5ca649741a790
2017-06-07 12:32:52 +02:00

73 lines
2.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_StaticLibrary_StaticLibrary,graphite))
$(eval $(call gb_StaticLibrary_use_unpacked,graphite,graphite))
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,graphite))
$(eval $(call gb_StaticLibrary_set_include,graphite,\
-I$(call gb_UnpackedTarball_get_dir,graphite/include) \
$$(INCLUDE) \
))
$(eval $(call gb_StaticLibrary_add_defs,graphite,\
-DGRAPHITE2_NTRACING \
-DGRAPHITE2_STATIC \
))
ifeq ($(COM),GCC)
ifneq ($(COM_IS_CLANG),TRUE)
$(eval $(call gb_StaticLibrary_add_cxxflags,graphite,\
-fpermissive \
))
endif
endif
$(eval $(call gb_StaticLibrary_set_generated_cxx_suffix,graphite,cpp))
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,graphite,\
UnpackedTarball/graphite/src/$(if $(filter GCC,$(COM)),direct,call)_machine \
UnpackedTarball/graphite/src/gr_char_info \
UnpackedTarball/graphite/src/gr_face \
UnpackedTarball/graphite/src/gr_features \
UnpackedTarball/graphite/src/gr_font \
UnpackedTarball/graphite/src/gr_logging \
UnpackedTarball/graphite/src/gr_segment \
UnpackedTarball/graphite/src/gr_slot \
UnpackedTarball/graphite/src/json \
UnpackedTarball/graphite/src/CachedFace \
UnpackedTarball/graphite/src/CmapCache \
UnpackedTarball/graphite/src/Code \
UnpackedTarball/graphite/src/Collider \
UnpackedTarball/graphite/src/Decompressor \
UnpackedTarball/graphite/src/Face \
UnpackedTarball/graphite/src/FeatureMap \
UnpackedTarball/graphite/src/FileFace \
UnpackedTarball/graphite/src/Font \
UnpackedTarball/graphite/src/GlyphCache \
UnpackedTarball/graphite/src/GlyphFace \
UnpackedTarball/graphite/src/Intervals \
UnpackedTarball/graphite/src/Justifier \
UnpackedTarball/graphite/src/NameTable \
UnpackedTarball/graphite/src/Pass \
UnpackedTarball/graphite/src/Position \
UnpackedTarball/graphite/src/SegCache \
UnpackedTarball/graphite/src/SegCacheEntry \
UnpackedTarball/graphite/src/SegCacheStore \
UnpackedTarball/graphite/src/Segment \
UnpackedTarball/graphite/src/Silf \
UnpackedTarball/graphite/src/Slot \
UnpackedTarball/graphite/src/Sparse \
UnpackedTarball/graphite/src/TtfUtil \
UnpackedTarball/graphite/src/UtfCodec \
))
# vim: set noet sw=4 ts=4: