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