1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2 #*************************************************************************
4 # DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
6 # Copyright 2000, 2010 Oracle and/or its affiliates.
8 # OpenOffice.org - a multi-platform office productivity suite
10 # This file is part of OpenOffice.org.
12 # OpenOffice.org is free software: you can redistribute it and/or modify
13 # it under the terms of the GNU Lesser General Public License version 3
14 # only, as published by the Free Software Foundation.
16 # OpenOffice.org is distributed in the hope that it will be useful,
17 # but WITHOUT ANY WARRANTY; without even the implied warranty of
18 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
19 # GNU Lesser General Public License version 3 for more details
20 # (a copy is included in the LICENSE file that accompanied this code).
22 # You should have received a copy of the GNU Lesser General Public License
23 # version 3 along with OpenOffice.org. If not, see
24 # <http://www.openoffice.org/license.html>
25 # for a copy of the LGPLv3 License.
27 #*************************************************************************
29 $(eval
$(call gb_StaticLibrary_StaticLibrary
,basegfx_s
))
31 $(eval
$(call gb_StaticLibrary_add_package_headers
,basegfx_s
,basegfx_inc
))
33 $(eval
$(call gb_StaticLibrary_set_include
,basegfx_s
,\
34 -I
$(realpath
$(SRCDIR
)/basegfx
/inc
) \
35 -I
$(realpath
$(SRCDIR
)/basegfx
/source
/inc
) \
40 # Work around gcc bug 41847 present at least in
41 # the Android x-compiler 4.4.3.
42 # -Warray-bounds appeared in 4.3
44 ifeq ($(shell expr \
( $(gb_CCVER
) \
>= 40300 \
) \
& \
( $(gb_CCVER
) \
<= 40403 \
)),1)
45 $(eval
$(call gb_StaticLibrary_add_cxxflags
,basegfx_s
,\
51 $(eval
$(call gb_StaticLibrary_add_api
,basegfx_s
,\
56 # the whole library is a hack
57 # we only build it to prevent the pdfimporter shared lib from linking to the basegfx shared lib
58 # this means that all code of this static library will end in a dll
59 # thus the _DLL define must be set to avoid link problems with stlport symbols
60 # the BASEGFX_STATICLIBRARY define will expand all BASEGFX_DLLPRIVATE/PUBLIC macros to nothing
61 $(eval
$(call gb_StaticLibrary_add_defs
,basegfx_s
,\
62 -DBASEGFX_STATICLIBRARY \
66 # as we have to build all sources a second time, we must copy them to the workdir and build from there
67 $(WORKDIR
)/CustomTarget
/basegfx
/source
/%.
cxx : $(SRCDIR
)/basegfx
/source
/%.
cxx
68 mkdir
-p
$(dir $@
) && \
71 # copied sources are generated cxx sources
72 $(eval
$(call gb_StaticLibrary_add_generated_exception_objects
,basegfx_s
,\
73 CustomTarget
/basegfx
/source
/tools
/liangbarsky \
74 CustomTarget
/basegfx
/source
/tools
/debugplotter \
75 CustomTarget
/basegfx
/source
/tools
/canvastools \
76 CustomTarget
/basegfx
/source
/tools
/gradienttools \
77 CustomTarget
/basegfx
/source
/tools
/keystoplerp \
78 CustomTarget
/basegfx
/source
/tools
/unopolypolygon \
79 CustomTarget
/basegfx
/source
/tools
/tools \
80 CustomTarget
/basegfx
/source
/tools
/b2dclipstate \
81 CustomTarget
/basegfx
/source
/numeric
/ftools \
82 CustomTarget
/basegfx
/source
/tuple
/b3ituple \
83 CustomTarget
/basegfx
/source
/tuple
/b3dtuple \
84 CustomTarget
/basegfx
/source
/tuple
/b2ituple \
85 CustomTarget
/basegfx
/source
/tuple
/b2dtuple \
86 CustomTarget
/basegfx
/source
/tuple
/b3i64tuple \
87 CustomTarget
/basegfx
/source
/tuple
/b2i64tuple \
88 CustomTarget
/basegfx
/source
/range
/b1drange \
89 CustomTarget
/basegfx
/source
/range
/b2dpolyrange \
90 CustomTarget
/basegfx
/source
/range
/b2xrange \
91 CustomTarget
/basegfx
/source
/range
/b3drange \
92 CustomTarget
/basegfx
/source
/range
/b2drangeclipper \
93 CustomTarget
/basegfx
/source
/range
/b2drange \
94 CustomTarget
/basegfx
/source
/vector
/b3ivector \
95 CustomTarget
/basegfx
/source
/vector
/b2ivector \
96 CustomTarget
/basegfx
/source
/vector
/b2dvector \
97 CustomTarget
/basegfx
/source
/vector
/b3dvector \
98 CustomTarget
/basegfx
/source
/polygon
/b3dpolygon \
99 CustomTarget
/basegfx
/source
/polygon
/b2dtrapezoid \
100 CustomTarget
/basegfx
/source
/polygon
/b3dpolygontools \
101 CustomTarget
/basegfx
/source
/polygon
/b2dlinegeometry \
102 CustomTarget
/basegfx
/source
/polygon
/b3dpolypolygontools \
103 CustomTarget
/basegfx
/source
/polygon
/b3dpolygonclipper \
104 CustomTarget
/basegfx
/source
/polygon
/b2dpolygonclipper \
105 CustomTarget
/basegfx
/source
/polygon
/b2dpolypolygoncutter \
106 CustomTarget
/basegfx
/source
/polygon
/b2dpolypolygonrasterconverter \
107 CustomTarget
/basegfx
/source
/polygon
/b2dpolygon \
108 CustomTarget
/basegfx
/source
/polygon
/b2dpolygontriangulator \
109 CustomTarget
/basegfx
/source
/polygon
/b2dpolypolygon \
110 CustomTarget
/basegfx
/source
/polygon
/b3dpolypolygon \
111 CustomTarget
/basegfx
/source
/polygon
/b2dsvgpolypolygon \
112 CustomTarget
/basegfx
/source
/polygon
/b2dpolygoncutandtouch \
113 CustomTarget
/basegfx
/source
/polygon
/b2dpolypolygontools \
114 CustomTarget
/basegfx
/source
/polygon
/b2dpolygontools \
115 CustomTarget
/basegfx
/source
/pixel
/bpixel \
116 CustomTarget
/basegfx
/source
/matrix
/b2dhommatrixtools \
117 CustomTarget
/basegfx
/source
/matrix
/b3dhommatrix \
118 CustomTarget
/basegfx
/source
/matrix
/b2dhommatrix \
119 CustomTarget
/basegfx
/source
/point
/b3ipoint \
120 CustomTarget
/basegfx
/source
/point
/b2dpoint \
121 CustomTarget
/basegfx
/source
/point
/b3dpoint \
122 CustomTarget
/basegfx
/source
/point
/b2dhompoint \
123 CustomTarget
/basegfx
/source
/point
/b2ipoint \
124 CustomTarget
/basegfx
/source
/curve
/b2dbeziertools \
125 CustomTarget
/basegfx
/source
/curve
/b2dcubicbezier \
126 CustomTarget
/basegfx
/source
/curve
/b2dquadraticbezier \
127 CustomTarget
/basegfx
/source
/color
/bcolormodifier \
128 CustomTarget
/basegfx
/source
/color
/bcolortools \
129 CustomTarget
/basegfx
/source
/raster
/rasterconvert3d \
132 # vim: set noet sw=4 ts=4: