2011-08-09 12:12:48 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-03-25 23:41:28 -05:00
|
|
|
# Version: MPL 1.1 / GPLv3+ / LGPLv3+
|
|
|
|
#
|
|
|
|
# The contents of this file are subject to the Mozilla Public License Version
|
|
|
|
# 1.1 (the "License"); you may not use this file except in compliance with
|
|
|
|
# the License. You may obtain a copy of the License at
|
|
|
|
# http://www.mozilla.org/MPL/
|
|
|
|
#
|
|
|
|
# Software distributed under the License is distributed on an "AS IS" basis,
|
|
|
|
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
|
|
|
|
# for the specific language governing rights and limitations under the
|
|
|
|
# License.
|
|
|
|
#
|
|
|
|
# The Initial Developer of the Original Code is
|
|
|
|
# Norbert Thiebaud <nthiebaud@gmail.com> (C) 2010, All Rights Reserved.
|
|
|
|
#
|
|
|
|
# Alternatively, the contents of this file may be used under the terms of
|
|
|
|
# either the GNU General Public License Version 3 or later (the "GPLv3+"), or
|
|
|
|
# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"),
|
|
|
|
# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
|
|
|
|
# instead of those above.
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_Library,vbaobj))
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_set_include,vbaobj,\
|
2011-03-29 07:10:18 -05:00
|
|
|
-I$(realpath $(SRCDIR)/sc/source/core/inc) \
|
|
|
|
-I$(realpath $(SRCDIR)/sc/source/filter/inc) \
|
|
|
|
-I$(realpath $(SRCDIR)/sc/source/ui/inc) \
|
|
|
|
-I$(realpath $(SRCDIR)/sc/inc) \
|
2011-03-25 23:41:28 -05:00
|
|
|
-I$(WORKDIR)/Misc/sc/ \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
-I$(OUTDIR)/inc/ \
|
|
|
|
))
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_set_componentfile,vbaobj,sc/util/vbaobj))
|
|
|
|
|
2011-06-21 05:54:01 -05:00
|
|
|
$(eval $(call gb_Library_add_defs,vbaobj,\
|
2011-03-25 23:41:28 -05:00
|
|
|
-DVBA_OOBUILD_HACK \
|
|
|
|
))
|
|
|
|
|
2011-05-30 11:47:52 -05:00
|
|
|
$(eval $(call gb_Library_add_api,vbaobj,\
|
|
|
|
offapi \
|
2011-06-01 11:05:07 -05:00
|
|
|
oovbaapi \
|
2011-05-30 11:47:52 -05:00
|
|
|
udkapi \
|
|
|
|
))
|
|
|
|
|
2011-03-25 23:41:28 -05:00
|
|
|
$(eval $(call gb_Library_add_linked_libs,vbaobj,\
|
|
|
|
comphelper \
|
|
|
|
cppu \
|
|
|
|
cppuhelper \
|
|
|
|
editeng \
|
|
|
|
for \
|
|
|
|
msfilter \
|
|
|
|
sal \
|
|
|
|
sb \
|
|
|
|
sc \
|
|
|
|
sfx \
|
|
|
|
svl \
|
|
|
|
svt \
|
|
|
|
svx \
|
|
|
|
svxcore \
|
|
|
|
tk \
|
|
|
|
tl \
|
|
|
|
utl \
|
|
|
|
vbahelper \
|
|
|
|
vcl \
|
2011-03-31 02:48:33 -05:00
|
|
|
$(gb_STDLIBS) \
|
2011-03-25 23:41:28 -05:00
|
|
|
))
|
|
|
|
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,vbaobj,\
|
|
|
|
sc/source/ui/vba/excelvbahelper \
|
|
|
|
sc/source/ui/vba/service \
|
|
|
|
sc/source/ui/vba/vbaapplication \
|
|
|
|
sc/source/ui/vba/vbaassistant \
|
|
|
|
sc/source/ui/vba/vbaaxes \
|
|
|
|
sc/source/ui/vba/vbaaxis \
|
|
|
|
sc/source/ui/vba/vbaaxistitle \
|
|
|
|
sc/source/ui/vba/vbaborders \
|
|
|
|
sc/source/ui/vba/vbacharacters \
|
|
|
|
sc/source/ui/vba/vbachart \
|
|
|
|
sc/source/ui/vba/vbachartobject \
|
|
|
|
sc/source/ui/vba/vbachartobjects \
|
|
|
|
sc/source/ui/vba/vbacharttitle \
|
|
|
|
sc/source/ui/vba/vbacomment \
|
|
|
|
sc/source/ui/vba/vbacomments \
|
|
|
|
sc/source/ui/vba/vbacommentshape \
|
|
|
|
sc/source/ui/vba/vbacondition \
|
|
|
|
sc/source/ui/vba/vbadialog \
|
|
|
|
sc/source/ui/vba/vbadialogs \
|
|
|
|
sc/source/ui/vba/vbaeventshelper \
|
|
|
|
sc/source/ui/vba/vbafiledialog \
|
|
|
|
sc/source/ui/vba/vbafiledialogselecteditems \
|
|
|
|
sc/source/ui/vba/vbafilesearch \
|
|
|
|
sc/source/ui/vba/vbafont \
|
|
|
|
sc/source/ui/vba/vbaformat \
|
|
|
|
sc/source/ui/vba/vbaformatcondition \
|
|
|
|
sc/source/ui/vba/vbaformatconditions \
|
|
|
|
sc/source/ui/vba/vbafoundfiles \
|
|
|
|
sc/source/ui/vba/vbaglobals \
|
|
|
|
sc/source/ui/vba/vbahyperlink \
|
|
|
|
sc/source/ui/vba/vbahyperlinks \
|
|
|
|
sc/source/ui/vba/vbainterior \
|
|
|
|
sc/source/ui/vba/vbamenubar \
|
|
|
|
sc/source/ui/vba/vbamenubars \
|
|
|
|
sc/source/ui/vba/vbamenu \
|
|
|
|
sc/source/ui/vba/vbamenus \
|
|
|
|
sc/source/ui/vba/vbamenuitem \
|
|
|
|
sc/source/ui/vba/vbamenuitems \
|
|
|
|
sc/source/ui/vba/vbaname \
|
|
|
|
sc/source/ui/vba/vbanames \
|
|
|
|
sc/source/ui/vba/vbaoleobject \
|
|
|
|
sc/source/ui/vba/vbaoleobjects \
|
|
|
|
sc/source/ui/vba/vbaoutline \
|
|
|
|
sc/source/ui/vba/vbapagebreak \
|
|
|
|
sc/source/ui/vba/vbapagebreaks \
|
|
|
|
sc/source/ui/vba/vbapagesetup \
|
|
|
|
sc/source/ui/vba/vbapalette \
|
|
|
|
sc/source/ui/vba/vbapane \
|
|
|
|
sc/source/ui/vba/vbapivotcache \
|
|
|
|
sc/source/ui/vba/vbapivottable \
|
|
|
|
sc/source/ui/vba/vbapivottables \
|
|
|
|
sc/source/ui/vba/vbaquerytable \
|
|
|
|
sc/source/ui/vba/vbarange \
|
|
|
|
sc/source/ui/vba/vbasheetobject \
|
|
|
|
sc/source/ui/vba/vbastyle \
|
|
|
|
sc/source/ui/vba/vbastyles \
|
|
|
|
sc/source/ui/vba/vbatextboxshape \
|
|
|
|
sc/source/ui/vba/vbatextframe \
|
|
|
|
sc/source/ui/vba/vbavalidation \
|
|
|
|
sc/source/ui/vba/vbawindow \
|
|
|
|
sc/source/ui/vba/vbawindows \
|
|
|
|
sc/source/ui/vba/vbaworkbook \
|
|
|
|
sc/source/ui/vba/vbaworkbooks \
|
|
|
|
sc/source/ui/vba/vbaworksheet \
|
|
|
|
sc/source/ui/vba/vbaworksheets \
|
|
|
|
sc/source/ui/vba/vbawsfunction \
|
|
|
|
))
|
|
|
|
|
2011-09-08 04:50:31 -05:00
|
|
|
#http://gcc.gnu.org/bugzilla/show_bug.cgi?id=50255
|
2011-09-12 06:14:56 -05:00
|
|
|
ifeq ($(COM)-$(OS)-$(CPUNAME),GCC-LINUX-INTEL)
|
2011-09-08 06:13:47 -05:00
|
|
|
gccthunkBroken := $(shell expr $(gb_CCVER) \>= 40500 \& $(gb_CCVER) \< 40602)
|
2011-09-08 04:50:31 -05:00
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(gccthunkBroken),1)
|
2011-07-05 04:22:23 -05:00
|
|
|
$(eval $(call gb_Library_add_cxxobjects,vbaobj,\
|
|
|
|
sc/source/ui/vba/vbasheetobjects \
|
|
|
|
, $(gb_COMPILERNOOPTFLAGS) $(gb_LinkTarget_EXCEPTIONFLAGS) \
|
|
|
|
))
|
|
|
|
else
|
|
|
|
$(eval $(call gb_Library_add_exception_objects,vbaobj,\
|
|
|
|
sc/source/ui/vba/vbasheetobjects \
|
2011-08-13 07:13:05 -05:00
|
|
|
))
|
|
|
|
endif
|
2011-09-08 04:50:31 -05:00
|
|
|
|
2011-03-25 23:41:28 -05:00
|
|
|
ifeq ($(OS),WNT)
|
|
|
|
$(eval $(call gb_Library_add_linked_libs,vbaobj,\
|
|
|
|
advapi32 \
|
2011-07-23 02:15:30 -05:00
|
|
|
$(gb_Library_win32_OLDNAMES) \
|
2011-09-16 09:25:27 -05:00
|
|
|
uwinapi \
|
2011-03-25 23:41:28 -05:00
|
|
|
))
|
|
|
|
endif
|
|
|
|
# vim: set noet sw=4 ts=4:
|