2011-08-09 12:12:48 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
2011-03-01 14:09:50 -06:00
|
|
|
#*************************************************************************
|
|
|
|
#
|
|
|
|
# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
2011-11-04 22:30:50 -05:00
|
|
|
#
|
2011-03-01 14:09:50 -06:00
|
|
|
# Copyright 2000, 2010 Oracle and/or its affiliates.
|
|
|
|
#
|
|
|
|
# OpenOffice.org - a multi-platform office productivity suite
|
|
|
|
#
|
|
|
|
# This file is part of OpenOffice.org.
|
|
|
|
#
|
|
|
|
# OpenOffice.org is free software: you can redistribute it and/or modify
|
|
|
|
# it under the terms of the GNU Lesser General Public License version 3
|
|
|
|
# only, as published by the Free Software Foundation.
|
|
|
|
#
|
|
|
|
# OpenOffice.org is distributed in the hope that it will be useful,
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
# GNU Lesser General Public License version 3 for more details
|
|
|
|
# (a copy is included in the LICENSE file that accompanied this code).
|
|
|
|
#
|
|
|
|
# You should have received a copy of the GNU Lesser General Public License
|
|
|
|
# version 3 along with OpenOffice.org. If not, see
|
|
|
|
# <http://www.openoffice.org/license.html>
|
|
|
|
# for a copy of the LGPLv3 License.
|
|
|
|
#
|
|
|
|
#*************************************************************************
|
|
|
|
|
|
|
|
$(eval $(call gb_StaticLibrary_StaticLibrary,basegfx_s))
|
|
|
|
|
|
|
|
$(eval $(call gb_StaticLibrary_add_package_headers,basegfx_s,basegfx_inc))
|
|
|
|
|
|
|
|
$(eval $(call gb_StaticLibrary_set_include,basegfx_s,\
|
2011-08-03 03:48:13 -05:00
|
|
|
-I$(realpath $(SRCDIR)/basegfx/inc) \
|
|
|
|
-I$(realpath $(SRCDIR)/basegfx/source/inc) \
|
2011-03-01 14:09:50 -06:00
|
|
|
$$(INCLUDE) \
|
2011-08-03 03:48:13 -05:00
|
|
|
-I$(realpath $(SRCDIR)/basegfx/inc/pch) \
|
2011-07-22 14:07:24 -05:00
|
|
|
-I$(OUTDIR)/inc \
|
|
|
|
))
|
|
|
|
|
2011-11-04 22:30:50 -05:00
|
|
|
# Work around gcc bug 41847 present at least in
|
2011-10-20 05:02:24 -05:00
|
|
|
# the Android x-compiler 4.4.3.
|
|
|
|
# -Warray-bounds appeared in 4.3
|
2011-10-19 07:45:42 -05:00
|
|
|
ifeq ($(COM),GCC)
|
2011-10-20 05:02:24 -05:00
|
|
|
ifeq ($(shell expr \( $(gb_CCVER) \>= 40300 \) \& \( $(gb_CCVER) \<= 40403 \)),1)
|
2011-10-19 07:45:42 -05:00
|
|
|
$(eval $(call gb_StaticLibrary_add_cxxflags,basegfx_s,\
|
|
|
|
-Wno-array-bounds \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
2011-07-22 14:07:24 -05:00
|
|
|
$(eval $(call gb_StaticLibrary_add_api,basegfx_s,\
|
|
|
|
offapi \
|
|
|
|
udkapi \
|
2011-03-01 14:09:50 -06:00
|
|
|
))
|
|
|
|
|
|
|
|
# the whole library is a hack
|
|
|
|
# we only build it to prevent the pdfimporter shared lib from linking to the basegfx shared lib
|
|
|
|
# this means that all code of this static library will end in a dll
|
|
|
|
# thus the _DLL define must be set to avoid link problems with stlport symbols
|
|
|
|
# the BASEGFX_STATICLIBRARY define will expand all BASEGFX_DLLPRIVATE/PUBLIC macros to nothing
|
2011-04-13 11:11:41 -05:00
|
|
|
$(eval $(call gb_StaticLibrary_add_defs,basegfx_s,\
|
2011-03-01 14:09:50 -06:00
|
|
|
-DBASEGFX_STATICLIBRARY \
|
|
|
|
-D_DLL \
|
|
|
|
))
|
|
|
|
|
|
|
|
# as we have to build all sources a second time, we must copy them to the workdir and build from there
|
|
|
|
$(WORKDIR)/CustomTarget/basegfx/source/%.cxx : $(SRCDIR)/basegfx/source/%.cxx
|
|
|
|
mkdir -p $(dir $@) && \
|
|
|
|
cp $< $@
|
|
|
|
|
|
|
|
# copied sources are generated cxx sources
|
|
|
|
$(eval $(call gb_StaticLibrary_add_generated_exception_objects,basegfx_s,\
|
|
|
|
CustomTarget/basegfx/source/tools/liangbarsky \
|
|
|
|
CustomTarget/basegfx/source/tools/debugplotter \
|
|
|
|
CustomTarget/basegfx/source/tools/canvastools \
|
|
|
|
CustomTarget/basegfx/source/tools/gradienttools \
|
|
|
|
CustomTarget/basegfx/source/tools/keystoplerp \
|
|
|
|
CustomTarget/basegfx/source/tools/unopolypolygon \
|
|
|
|
CustomTarget/basegfx/source/tools/tools \
|
|
|
|
CustomTarget/basegfx/source/tools/b2dclipstate \
|
|
|
|
CustomTarget/basegfx/source/numeric/ftools \
|
|
|
|
CustomTarget/basegfx/source/tuple/b3ituple \
|
|
|
|
CustomTarget/basegfx/source/tuple/b3dtuple \
|
|
|
|
CustomTarget/basegfx/source/tuple/b2ituple \
|
|
|
|
CustomTarget/basegfx/source/tuple/b2dtuple \
|
|
|
|
CustomTarget/basegfx/source/tuple/b3i64tuple \
|
|
|
|
CustomTarget/basegfx/source/tuple/b2i64tuple \
|
|
|
|
CustomTarget/basegfx/source/range/b1drange \
|
|
|
|
CustomTarget/basegfx/source/range/b2dpolyrange \
|
|
|
|
CustomTarget/basegfx/source/range/b2xrange \
|
|
|
|
CustomTarget/basegfx/source/range/b3drange \
|
|
|
|
CustomTarget/basegfx/source/range/b2drangeclipper \
|
|
|
|
CustomTarget/basegfx/source/range/b2drange \
|
|
|
|
CustomTarget/basegfx/source/vector/b3ivector \
|
|
|
|
CustomTarget/basegfx/source/vector/b2ivector \
|
|
|
|
CustomTarget/basegfx/source/vector/b2dvector \
|
|
|
|
CustomTarget/basegfx/source/vector/b3dvector \
|
|
|
|
CustomTarget/basegfx/source/polygon/b3dpolygon \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dtrapezoid \
|
|
|
|
CustomTarget/basegfx/source/polygon/b3dpolygontools \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dlinegeometry \
|
|
|
|
CustomTarget/basegfx/source/polygon/b3dpolypolygontools \
|
|
|
|
CustomTarget/basegfx/source/polygon/b3dpolygonclipper \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolygonclipper \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolypolygoncutter \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolypolygonrasterconverter \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolygon \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolygontriangulator \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolypolygon \
|
|
|
|
CustomTarget/basegfx/source/polygon/b3dpolypolygon \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dsvgpolypolygon \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolygoncutandtouch \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolypolygontools \
|
|
|
|
CustomTarget/basegfx/source/polygon/b2dpolygontools \
|
|
|
|
CustomTarget/basegfx/source/pixel/bpixel \
|
|
|
|
CustomTarget/basegfx/source/matrix/b2dhommatrixtools \
|
|
|
|
CustomTarget/basegfx/source/matrix/b3dhommatrix \
|
|
|
|
CustomTarget/basegfx/source/matrix/b2dhommatrix \
|
|
|
|
CustomTarget/basegfx/source/point/b3ipoint \
|
|
|
|
CustomTarget/basegfx/source/point/b2dpoint \
|
|
|
|
CustomTarget/basegfx/source/point/b3dpoint \
|
|
|
|
CustomTarget/basegfx/source/point/b2dhompoint \
|
|
|
|
CustomTarget/basegfx/source/point/b2ipoint \
|
|
|
|
CustomTarget/basegfx/source/curve/b2dbeziertools \
|
|
|
|
CustomTarget/basegfx/source/curve/b2dcubicbezier \
|
|
|
|
CustomTarget/basegfx/source/curve/b2dquadraticbezier \
|
|
|
|
CustomTarget/basegfx/source/color/bcolormodifier \
|
|
|
|
CustomTarget/basegfx/source/color/bcolortools \
|
|
|
|
CustomTarget/basegfx/source/raster/rasterconvert3d \
|
|
|
|
))
|
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|