1###############################################################
2#
3#  Licensed to the Apache Software Foundation (ASF) under one
4#  or more contributor license agreements.  See the NOTICE file
5#  distributed with this work for additional information
6#  regarding copyright ownership.  The ASF licenses this file
7#  to you under the Apache License, Version 2.0 (the
8#  "License"); you may not use this file except in compliance
9#  with the License.  You may obtain a copy of the License at
10#
11#    http://www.apache.org/licenses/LICENSE-2.0
12#
13#  Unless required by applicable law or agreed to in writing,
14#  software distributed under the License is distributed on an
15#  "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
16#  KIND, either express or implied.  See the License for the
17#  specific language governing permissions and limitations
18#  under the License.
19#
20###############################################################
21
22
23
24$(eval $(call gb_StaticLibrary_StaticLibrary,basegfx_s))
25
26$(eval $(call gb_StaticLibrary_add_package_headers,basegfx_s,basegfx_inc))
27
28$(eval $(call gb_StaticLibrary_add_precompiled_header,basegfx_s,$(SRCDIR)/basegfx/inc/pch/precompiled_basegfx))
29
30$(eval $(call gb_StaticLibrary_add_api,basegfx_s,\
31	udkapi \
32	offapi \
33))
34
35$(eval $(call gb_StaticLibrary_set_include,basegfx_s,\
36	-I$(SRCDIR)/basegfx/inc \
37	-I$(SRCDIR)/basegfx/source/inc \
38	$$(INCLUDE) \
39	-I$(SRCDIR)/basegfx/inc/pch \
40))
41
42# the whole library is a hack
43# we only build it to prevent the pdfimporter shared lib from linking to the basegfx shared lib
44# this means that all code of this static library will end in a dll
45# the BASEGFX_STATICLIBRARY define will expand all BASEGFX_DLLPRIVATE/PUBLIC macros to nothing
46$(eval $(call gb_StaticLibrary_add_defs,basegfx_s,\
47	-DBASEGFX_STATICLIBRARY \
48))
49
50# as we have to build all sources a second time, we must copy them to the workdir and build from there
51$(WORKDIR)/CustomTarget/basegfx/source/%.cxx : $(SRCDIR)/basegfx/source/%.cxx
52	mkdir -p $(dir $@) && \
53	cp $< $@
54
55# copied sources are generated cxx sources
56$(eval $(call gb_StaticLibrary_add_generated_exception_objects,basegfx_s,\
57	CustomTarget/basegfx/source/tools/liangbarsky \
58	CustomTarget/basegfx/source/tools/debugplotter \
59	CustomTarget/basegfx/source/tools/canvastools \
60	CustomTarget/basegfx/source/tools/gradienttools \
61	CustomTarget/basegfx/source/tools/keystoplerp \
62	CustomTarget/basegfx/source/tools/unopolypolygon \
63	CustomTarget/basegfx/source/tools/tools \
64	CustomTarget/basegfx/source/tools/b2dclipstate \
65	CustomTarget/basegfx/source/tools/stringconversiontools \
66	CustomTarget/basegfx/source/numeric/ftools \
67	CustomTarget/basegfx/source/tuple/b3ituple \
68	CustomTarget/basegfx/source/tuple/b3dtuple \
69	CustomTarget/basegfx/source/tuple/b2ituple \
70	CustomTarget/basegfx/source/tuple/b2dtuple \
71	CustomTarget/basegfx/source/tuple/b3i64tuple \
72	CustomTarget/basegfx/source/tuple/b2i64tuple \
73	CustomTarget/basegfx/source/range/b1drange \
74	CustomTarget/basegfx/source/range/b2dpolyrange \
75	CustomTarget/basegfx/source/range/b2xrange \
76	CustomTarget/basegfx/source/range/b3drange \
77	CustomTarget/basegfx/source/range/b2drangeclipper \
78	CustomTarget/basegfx/source/range/b2drange \
79	CustomTarget/basegfx/source/vector/b3ivector \
80	CustomTarget/basegfx/source/vector/b2ivector \
81	CustomTarget/basegfx/source/vector/b2dvector \
82	CustomTarget/basegfx/source/vector/b3dvector \
83	CustomTarget/basegfx/source/polygon/b3dpolygon \
84	CustomTarget/basegfx/source/polygon/b2dtrapezoid \
85	CustomTarget/basegfx/source/polygon/b3dpolygontools \
86	CustomTarget/basegfx/source/polygon/b2dlinegeometry \
87	CustomTarget/basegfx/source/polygon/b3dpolypolygontools \
88	CustomTarget/basegfx/source/polygon/b3dpolygonclipper \
89	CustomTarget/basegfx/source/polygon/b2dpolygonclipper \
90	CustomTarget/basegfx/source/polygon/b2dpolypolygoncutter \
91	CustomTarget/basegfx/source/polygon/b2dpolypolygonrasterconverter \
92	CustomTarget/basegfx/source/polygon/b2dpolygon \
93	CustomTarget/basegfx/source/polygon/b2dpolygontriangulator \
94	CustomTarget/basegfx/source/polygon/b2dpolypolygon \
95	CustomTarget/basegfx/source/polygon/b3dpolypolygon \
96	CustomTarget/basegfx/source/polygon/b2dsvgpolypolygon \
97	CustomTarget/basegfx/source/polygon/b2dpolygoncutandtouch \
98	CustomTarget/basegfx/source/polygon/b2dpolypolygontools \
99	CustomTarget/basegfx/source/polygon/b2dpolygontools \
100	CustomTarget/basegfx/source/pixel/bpixel \
101	CustomTarget/basegfx/source/matrix/b2dhommatrixtools \
102	CustomTarget/basegfx/source/matrix/b3dhommatrix \
103	CustomTarget/basegfx/source/matrix/b2dhommatrix \
104	CustomTarget/basegfx/source/point/b3ipoint \
105	CustomTarget/basegfx/source/point/b3dhompoint \
106	CustomTarget/basegfx/source/point/b2dpoint \
107	CustomTarget/basegfx/source/point/b3dpoint \
108	CustomTarget/basegfx/source/point/b2dhompoint \
109	CustomTarget/basegfx/source/point/b2ipoint \
110	CustomTarget/basegfx/source/curve/b2dbeziertools \
111	CustomTarget/basegfx/source/curve/b2dcubicbezier \
112	CustomTarget/basegfx/source/curve/b2dquadraticbezier \
113	CustomTarget/basegfx/source/color/bcolormodifier \
114	CustomTarget/basegfx/source/color/bcolor \
115	CustomTarget/basegfx/source/color/bcolortools \
116	CustomTarget/basegfx/source/raster/bpixelraster \
117	CustomTarget/basegfx/source/raster/bzpixelraster \
118	CustomTarget/basegfx/source/raster/rasterconvert3d \
119))
120
121# vim: set noet sw=4 ts=4:
122