dev-install seems to poison the env
[LibreOffice.git] / sc / Library_vbaobj.mk
blob96c57c8080f3ab0373ecb84dd1a67849f736cc80
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 # Version: MPL 1.1 / GPLv3+ / LGPLv3+
4 # The contents of this file are subject to the Mozilla Public License Version
5 # 1.1 (the "License"); you may not use this file except in compliance with
6 # the License. You may obtain a copy of the License at
7 # http://www.mozilla.org/MPL/
9 # Software distributed under the License is distributed on an "AS IS" basis,
10 # WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
11 # for the specific language governing rights and limitations under the
12 # License.
14 # The Initial Developer of the Original Code is
15 # Norbert Thiebaud <nthiebaud@gmail.com> (C) 2010, All Rights Reserved.
17 # Alternatively, the contents of this file may be used under the terms of
18 # either the GNU General Public License Version 3 or later (the "GPLv3+"), or
19 # the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
20 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
21 # instead of those above.
23 $(eval $(call gb_Library_Library,vbaobj))
25 $(eval $(call gb_Library_set_include,vbaobj,\
26 -I$(realpath $(SRCDIR)/sc/source/core/inc) \
27 -I$(realpath $(SRCDIR)/sc/source/filter/inc) \
28 -I$(realpath $(SRCDIR)/sc/source/ui/inc) \
29 -I$(realpath $(SRCDIR)/sc/inc/pch) \
30 -I$(realpath $(SRCDIR)/sc/inc) \
31 -I$(WORKDIR)/Misc/sc/ \
32 $$(INCLUDE) \
33 -I$(OUTDIR)/inc/ \
36 $(eval $(call gb_Library_set_componentfile,vbaobj,sc/util/vbaobj))
38 $(eval $(call gb_Library_add_defs,vbaobj,\
39 -DVBA_OOBUILD_HACK \
42 $(eval $(call gb_Library_add_api,vbaobj,\
43 offapi \
44 oovbaapi \
45 udkapi \
48 $(eval $(call gb_Library_add_linked_libs,vbaobj,\
49 comphelper \
50 cppu \
51 cppuhelper \
52 editeng \
53 for \
54 msfilter \
55 sal \
56 sb \
57 sc \
58 sfx \
59 svl \
60 svt \
61 svx \
62 svxcore \
63 tk \
64 tl \
65 utl \
66 vbahelper \
67 vcl \
68 $(gb_STDLIBS) \
71 $(eval $(call gb_Library_add_exception_objects,vbaobj,\
72 sc/source/ui/vba/excelvbahelper \
73 sc/source/ui/vba/service \
74 sc/source/ui/vba/vbaapplication \
75 sc/source/ui/vba/vbaassistant \
76 sc/source/ui/vba/vbaaxes \
77 sc/source/ui/vba/vbaaxis \
78 sc/source/ui/vba/vbaaxistitle \
79 sc/source/ui/vba/vbaborders \
80 sc/source/ui/vba/vbacharacters \
81 sc/source/ui/vba/vbachart \
82 sc/source/ui/vba/vbachartobject \
83 sc/source/ui/vba/vbachartobjects \
84 sc/source/ui/vba/vbacharttitle \
85 sc/source/ui/vba/vbacomment \
86 sc/source/ui/vba/vbacomments \
87 sc/source/ui/vba/vbacommentshape \
88 sc/source/ui/vba/vbacondition \
89 sc/source/ui/vba/vbadialog \
90 sc/source/ui/vba/vbadialogs \
91 sc/source/ui/vba/vbaeventshelper \
92 sc/source/ui/vba/vbafiledialog \
93 sc/source/ui/vba/vbafiledialogselecteditems \
94 sc/source/ui/vba/vbafilesearch \
95 sc/source/ui/vba/vbafont \
96 sc/source/ui/vba/vbaformat \
97 sc/source/ui/vba/vbaformatcondition \
98 sc/source/ui/vba/vbaformatconditions \
99 sc/source/ui/vba/vbafoundfiles \
100 sc/source/ui/vba/vbaglobals \
101 sc/source/ui/vba/vbahyperlink \
102 sc/source/ui/vba/vbahyperlinks \
103 sc/source/ui/vba/vbainterior \
104 sc/source/ui/vba/vbamenubar \
105 sc/source/ui/vba/vbamenubars \
106 sc/source/ui/vba/vbamenu \
107 sc/source/ui/vba/vbamenus \
108 sc/source/ui/vba/vbamenuitem \
109 sc/source/ui/vba/vbamenuitems \
110 sc/source/ui/vba/vbaname \
111 sc/source/ui/vba/vbanames \
112 sc/source/ui/vba/vbaoleobject \
113 sc/source/ui/vba/vbaoleobjects \
114 sc/source/ui/vba/vbaoutline \
115 sc/source/ui/vba/vbapagebreak \
116 sc/source/ui/vba/vbapagebreaks \
117 sc/source/ui/vba/vbapagesetup \
118 sc/source/ui/vba/vbapalette \
119 sc/source/ui/vba/vbapane \
120 sc/source/ui/vba/vbapivotcache \
121 sc/source/ui/vba/vbapivottable \
122 sc/source/ui/vba/vbapivottables \
123 sc/source/ui/vba/vbaquerytable \
124 sc/source/ui/vba/vbarange \
125 sc/source/ui/vba/vbasheetobject \
126 sc/source/ui/vba/vbastyle \
127 sc/source/ui/vba/vbastyles \
128 sc/source/ui/vba/vbatextboxshape \
129 sc/source/ui/vba/vbatextframe \
130 sc/source/ui/vba/vbavalidation \
131 sc/source/ui/vba/vbawindow \
132 sc/source/ui/vba/vbawindows \
133 sc/source/ui/vba/vbaworkbook \
134 sc/source/ui/vba/vbaworkbooks \
135 sc/source/ui/vba/vbaworksheet \
136 sc/source/ui/vba/vbaworksheets \
137 sc/source/ui/vba/vbawsfunction \
140 #http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50255
141 ifeq ($(COM)-$(OS)-$(CPUNAME),GCC-LINUX-INTEL)
142 gccthunkBroken := $(shell expr $(gb_CCVER) \>= 40500 \& $(gb_CCVER) \< 40602)
143 endif
145 ifeq ($(gccthunkBroken),1)
146 $(eval $(call gb_Library_add_cxxobjects,vbaobj,\
147 sc/source/ui/vba/vbasheetobjects \
148 , $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
150 else
151 $(eval $(call gb_Library_add_exception_objects,vbaobj,\
152 sc/source/ui/vba/vbasheetobjects \
154 endif
156 ifeq ($(OS),WNT)
157 $(eval $(call gb_Library_add_linked_libs,vbaobj,\
158 advapi32 \
159 $(gb_Library_win32_OLDNAMES) \
160 uwinapi \
162 endif
163 # vim: set noet sw=4 ts=4: