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