Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / bridges / Library_mingw_intel.mk
blob98b95897706a6f2c13c58e3bf647dec304deabf0
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 ifneq ($(strip $(bridges_SELECTED_BRIDGE)),)
11 $(eval $(call gb_Output_error,cannot build bridge mingw_intel: bridge $(bridges_SELECTED_BRIDGE) already selected))
12 endif
13 bridges_SELECTED_BRIDGE := mingw_intel
15 $(eval $(call gb_Library_Library,gcc3_uno))
17 $(eval $(call gb_Library_use_internal_comprehensive_api,gcc3_uno,\
18 udkapi \
21 $(eval $(call gb_Library_set_include,gcc3_uno,\
22 -I$(SRCDIR)/bridges/inc \
23 $$(INCLUDE) \
26 $(eval $(call gb_Library_add_defs,gcc3_uno,\
27 $(if $(filter sjlj,$(EXCEPTIONS)),\
28 -DBROKEN_ALLOCA \
29 ) \
30 $(if $(filter YES,$(HAVE_POSIX_FALLOCATE)),\
31 -DHAVE_POSIX_FALLOCATE \
32 ) \
35 # In case someone enabled the non-standard -fomit-frame-pointer which does not
36 # work with the .cxx sources of this library.
37 # In case the compiler supports AVX this code segfaults so specifically turn
38 # it off.
39 $(eval $(call gb_Library_add_cxxflags,gcc3_uno,\
40 -fno-omit-frame-pointer \
41 -fno-strict-aliasing \
42 $(if $(filter TRUE,$(HAVE_GCC_AVX)),\
43 -mno-avx \
44 ) \
47 $(eval $(call gb_Library_use_libraries,gcc3_uno,\
48 cppu \
49 sal \
52 $(eval $(call gb_Library_add_asmobjects,gcc3_uno,\
53 bridges/source/cpp_uno/mingw_intel/call \
56 $(eval $(call gb_Library_add_exception_objects,gcc3_uno,\
57 bridges/source/cpp_uno/mingw_intel/callvirtualmethod \
58 bridges/source/cpp_uno/mingw_intel/cpp2uno \
59 bridges/source/cpp_uno/mingw_intel/dllinit \
60 bridges/source/cpp_uno/mingw_intel/except \
61 bridges/source/cpp_uno/mingw_intel/smallstruct \
62 bridges/source/cpp_uno/shared/bridge \
63 bridges/source/cpp_uno/shared/component \
64 bridges/source/cpp_uno/shared/types \
65 bridges/source/cpp_uno/shared/unointerfaceproxy \
66 bridges/source/cpp_uno/shared/vtablefactory \
67 bridges/source/cpp_uno/shared/vtables \
70 $(eval $(call gb_Library_add_cxxobjects,gcc3_uno,\
71 bridges/source/cpp_uno/mingw_intel/uno2cpp \
72 bridges/source/cpp_uno/shared/cppinterfaceproxy \
73 , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
76 # vim: set noet sw=4 ts=4: