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/numeric/ftools \ 66 CustomTarget/basegfx/source/tuple/b3ituple \ 67 CustomTarget/basegfx/source/tuple/b3dtuple \ 68 CustomTarget/basegfx/source/tuple/b2ituple \ 69 CustomTarget/basegfx/source/tuple/b2dtuple \ 70 CustomTarget/basegfx/source/tuple/b3i64tuple \ 71 CustomTarget/basegfx/source/tuple/b2i64tuple \ 72 CustomTarget/basegfx/source/range/b1drange \ 73 CustomTarget/basegfx/source/range/b2dpolyrange \ 74 CustomTarget/basegfx/source/range/b2xrange \ 75 CustomTarget/basegfx/source/range/b3drange \ 76 CustomTarget/basegfx/source/range/b2drangeclipper \ 77 CustomTarget/basegfx/source/range/b2drange \ 78 CustomTarget/basegfx/source/vector/b3ivector \ 79 CustomTarget/basegfx/source/vector/b2ivector \ 80 CustomTarget/basegfx/source/vector/b2dvector \ 81 CustomTarget/basegfx/source/vector/b3dvector \ 82 CustomTarget/basegfx/source/polygon/b3dpolygon \ 83 CustomTarget/basegfx/source/polygon/b2dtrapezoid \ 84 CustomTarget/basegfx/source/polygon/b3dpolygontools \ 85 CustomTarget/basegfx/source/polygon/b2dlinegeometry \ 86 CustomTarget/basegfx/source/polygon/b3dpolypolygontools \ 87 CustomTarget/basegfx/source/polygon/b3dpolygonclipper \ 88 CustomTarget/basegfx/source/polygon/b2dpolygonclipper \ 89 CustomTarget/basegfx/source/polygon/b2dpolypolygoncutter \ 90 CustomTarget/basegfx/source/polygon/b2dpolypolygonrasterconverter \ 91 CustomTarget/basegfx/source/polygon/b2dpolygon \ 92 CustomTarget/basegfx/source/polygon/b2dpolygontriangulator \ 93 CustomTarget/basegfx/source/polygon/b2dpolypolygon \ 94 CustomTarget/basegfx/source/polygon/b3dpolypolygon \ 95 CustomTarget/basegfx/source/polygon/b2dsvgpolypolygon \ 96 CustomTarget/basegfx/source/polygon/b2dpolygoncutandtouch \ 97 CustomTarget/basegfx/source/polygon/b2dpolypolygontools \ 98 CustomTarget/basegfx/source/polygon/b2dpolygontools \ 99 CustomTarget/basegfx/source/pixel/bpixel \ 100 CustomTarget/basegfx/source/matrix/b2dhommatrixtools \ 101 CustomTarget/basegfx/source/matrix/b3dhommatrix \ 102 CustomTarget/basegfx/source/matrix/b2dhommatrix \ 103 CustomTarget/basegfx/source/point/b3ipoint \ 104 CustomTarget/basegfx/source/point/b3dhompoint \ 105 CustomTarget/basegfx/source/point/b2dpoint \ 106 CustomTarget/basegfx/source/point/b3dpoint \ 107 CustomTarget/basegfx/source/point/b2dhompoint \ 108 CustomTarget/basegfx/source/point/b2ipoint \ 109 CustomTarget/basegfx/source/curve/b2dbeziertools \ 110 CustomTarget/basegfx/source/curve/b2dcubicbezier \ 111 CustomTarget/basegfx/source/curve/b2dquadraticbezier \ 112 CustomTarget/basegfx/source/color/bcolormodifier \ 113 CustomTarget/basegfx/source/color/bcolor \ 114 CustomTarget/basegfx/source/color/bcolortools \ 115 CustomTarget/basegfx/source/raster/bpixelraster \ 116 CustomTarget/basegfx/source/raster/bzpixelraster \ 117 CustomTarget/basegfx/source/raster/rasterconvert3d \ 118)) 119 120# vim: set noet sw=4 ts=4: 121