office-gobmx/bridges/Library_mingw_intel.mk
David Tardon f2668d319c gbuildize bridges
Change-Id: I66e76da71dd5d6ed1b899aba8d41dfb5bc36da1c
2012-09-22 08:15:30 +02:00

76 lines
2.2 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/.
#
ifneq ($(strip $(bridges_SELECTED_BRIDGE)),)
$(eval $(call gb_Output_error,cannot build bridge mingw_intel: bridge $(bridges_SELECTED_BRIDGE) already selected))
endif
bridges_SELECTED_BRIDGE := mingw_intel
$(eval $(call gb_Library_Library,gcc3_uno))
$(eval $(call gb_Library_use_internal_comprehensive_api,gcc3_uno,\
udkapi \
))
$(eval $(call gb_Library_set_include,gcc3_uno,\
-I$(SRCDIR)/bridges/inc \
$$(INCLUDE) \
))
$(eval $(call gb_Library_add_defs,gcc3_uno,\
$(if $(filter sjlj,$(EXCEPTIONS)),\
-DBROKEN_ALLOCA \
) \
$(if $(filter YES,$(HAVE_POSIX_FALLOCATE)),\
-DHAVE_POSIX_FALLOCATE \
) \
))
# In case someone enabled the non-standard -fomit-frame-pointer which does not
# work with the .cxx sources of this library.
# In case the compiler supports AVX this code segfaults so specifically turn
# it off.
$(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
-fno-omit-frame-pointer \
-fno-strict-aliasing \
$(if $(filter TRUE,$(HAVE_GCC_AVX)),\
-mno-avx \
) \
))
$(eval $(call gb_Library_use_libraries,gcc3_uno,\
cppu \
sal \
))
$(eval $(call gb_Library_add_asmobjects,gcc3_uno,\
bridges/source/cpp_uno/mingw_intel/call \
))
$(eval $(call gb_Library_add_exception_objects,gcc3_uno,\
bridges/source/cpp_uno/mingw_intel/callvirtualmethod \
bridges/source/cpp_uno/mingw_intel/cpp2uno \
bridges/source/cpp_uno/mingw_intel/dllinit \
bridges/source/cpp_uno/mingw_intel/except \
bridges/source/cpp_uno/mingw_intel/smallstruct \
bridges/source/cpp_uno/shared/bridge \
bridges/source/cpp_uno/shared/component \
bridges/source/cpp_uno/shared/types \
bridges/source/cpp_uno/shared/unointerfaceproxy \
bridges/source/cpp_uno/shared/vtablefactory \
bridges/source/cpp_uno/shared/vtables \
))
$(eval $(call gb_Library_add_cxxobjects,gcc3_uno,\
bridges/source/cpp_uno/mingw_intel/uno2cpp \
bridges/source/cpp_uno/shared/cppinterfaceproxy \
, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
))
# vim: set noet sw=4 ts=4: