Bump for 3.6-28
[LibreOffice.git] / basegfx / StaticLibrary_basegfx_s.mk
blobcbfe817fdf63bedafbe0b62e773f857b944322b3
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_use_package,basegfx_s,basegfx_inc))
33 $(eval $(call gb_StaticLibrary_set_include,basegfx_s,\
34 -I$(SRCDIR)/basegfx/inc \
35 -I$(SRCDIR)/basegfx/source/inc \
36 $$(INCLUDE) \
39 # Work around gcc bug 41847 present at least in
40 # the Android x-compiler 4.4.3.
41 # -Warray-bounds appeared in 4.3
42 ifeq ($(COM),GCC)
43 ifeq ($(shell expr \( $(gb_CCVER) \>= 40300 \) \& \( $(gb_CCVER) \<= 40403 \)),1)
44 $(eval $(call gb_StaticLibrary_add_cxxflags,basegfx_s,\
45 -Wno-array-bounds \
47 endif
48 endif
50 $(eval $(call gb_StaticLibrary_use_api,basegfx_s,\
51 offapi \
52 udkapi \
55 # the whole library is a hack
56 # we only build it to prevent the pdfimporter shared lib from linking to the basegfx shared lib
57 # this means that all code of this static library will end in a dll
58 # thus the _DLL define must be set to avoid link problems with stlport symbols
59 # the BASEGFX_STATICLIBRARY define will expand all BASEGFX_DLLPRIVATE/PUBLIC macros to nothing
60 $(eval $(call gb_StaticLibrary_add_defs,basegfx_s,\
61 -DBASEGFX_STATICLIBRARY \
62 -D_DLL \
65 # as we have to build all sources a second time, we must copy them to the workdir and build from there
66 $(WORKDIR)/CustomTarget/basegfx/source/%.cxx : $(SRCDIR)/basegfx/source/%.cxx
67 mkdir -p $(dir $@) && \
68 cp $< $@
70 # copied sources are generated cxx sources
71 $(eval $(call gb_StaticLibrary_add_generated_exception_objects,basegfx_s,\
72 CustomTarget/basegfx/source/tools/canvastools \
73 CustomTarget/basegfx/source/tools/zoomtools \
74 CustomTarget/basegfx/source/tools/gradienttools \
75 CustomTarget/basegfx/source/tools/keystoplerp \
76 CustomTarget/basegfx/source/tools/unopolypolygon \
77 CustomTarget/basegfx/source/tools/tools \
78 CustomTarget/basegfx/source/tools/b2dclipstate \
79 CustomTarget/basegfx/source/numeric/ftools \
80 CustomTarget/basegfx/source/tuple/b3ituple \
81 CustomTarget/basegfx/source/tuple/b3dtuple \
82 CustomTarget/basegfx/source/tuple/b2ituple \
83 CustomTarget/basegfx/source/tuple/b2dtuple \
84 CustomTarget/basegfx/source/tuple/b3i64tuple \
85 CustomTarget/basegfx/source/tuple/b2i64tuple \
86 CustomTarget/basegfx/source/range/b1drange \
87 CustomTarget/basegfx/source/range/b2dpolyrange \
88 CustomTarget/basegfx/source/range/b2xrange \
89 CustomTarget/basegfx/source/range/b3drange \
90 CustomTarget/basegfx/source/range/b2drangeclipper \
91 CustomTarget/basegfx/source/range/b2drange \
92 CustomTarget/basegfx/source/vector/b3ivector \
93 CustomTarget/basegfx/source/vector/b2ivector \
94 CustomTarget/basegfx/source/vector/b2dvector \
95 CustomTarget/basegfx/source/vector/b3dvector \
96 CustomTarget/basegfx/source/polygon/b3dpolygon \
97 CustomTarget/basegfx/source/polygon/b2dtrapezoid \
98 CustomTarget/basegfx/source/polygon/b3dpolygontools \
99 CustomTarget/basegfx/source/polygon/b2dlinegeometry \
100 CustomTarget/basegfx/source/polygon/b3dpolypolygontools \
101 CustomTarget/basegfx/source/polygon/b2dpolygonclipper \
102 CustomTarget/basegfx/source/polygon/b2dpolypolygoncutter \
103 CustomTarget/basegfx/source/polygon/b2dpolygon \
104 CustomTarget/basegfx/source/polygon/b2dpolygontriangulator \
105 CustomTarget/basegfx/source/polygon/b2dpolypolygon \
106 CustomTarget/basegfx/source/polygon/b3dpolypolygon \
107 CustomTarget/basegfx/source/polygon/b2dsvgpolypolygon \
108 CustomTarget/basegfx/source/polygon/b2dpolygoncutandtouch \
109 CustomTarget/basegfx/source/polygon/b2dpolypolygontools \
110 CustomTarget/basegfx/source/polygon/b2dpolygontools \
111 CustomTarget/basegfx/source/pixel/bpixel \
112 CustomTarget/basegfx/source/matrix/b2dhommatrixtools \
113 CustomTarget/basegfx/source/matrix/b3dhommatrix \
114 CustomTarget/basegfx/source/matrix/b2dhommatrix \
115 CustomTarget/basegfx/source/point/b3ipoint \
116 CustomTarget/basegfx/source/point/b2dpoint \
117 CustomTarget/basegfx/source/point/b3dpoint \
118 CustomTarget/basegfx/source/point/b2ipoint \
119 CustomTarget/basegfx/source/curve/b2dbeziertools \
120 CustomTarget/basegfx/source/curve/b2dcubicbezier \
121 CustomTarget/basegfx/source/color/bcolormodifier \
122 CustomTarget/basegfx/source/color/bcolortools \
123 CustomTarget/basegfx/source/raster/rasterconvert3d \
126 # vim: set noet sw=4 ts=4: