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