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_Library_Library,cairocanvas)) 25 26$(eval $(call gb_Library_set_componentfile,cairocanvas,canvas/source/cairo/cairocanvas)) 27 28$(eval $(call gb_Library_add_api,cairocanvas,\ 29 udkapi \ 30 offapi \ 31)) 32 33$(eval $(call gb_Library_set_include,cairocanvas,\ 34 $$(INCLUDE) \ 35 -I$(SRCDIR)/canvas/inc \ 36 -I$(SRCDIR)/canvas/inc/pch \ 37)) 38 39ifneq ($(strip $(VERBOSE)$(verbose)),) 40$(eval $(call gb_Library_add_defs,cairocanvas,\ 41 -DVERBOSE \ 42)) 43endif 44 45$(eval $(call gb_Library_add_linked_libs,cairocanvas,\ 46 sal \ 47 stl \ 48 cppu \ 49 basegfx \ 50 cppuhelper \ 51 comphelper \ 52 vcl \ 53 ootk \ 54 tl \ 55 i18nisolang1 \ 56 canvastools \ 57 $(gb_STDLIBS) \ 58)) 59 60$(eval $(call gb_Library_add_exception_objects,cairocanvas,\ 61 canvas/source/cairo/cairo_cachedbitmap \ 62 canvas/source/cairo/cairo_cairo \ 63 canvas/source/cairo/cairo_canvas \ 64 canvas/source/cairo/cairo_canvasbitmap \ 65 canvas/source/cairo/cairo_canvascustomsprite \ 66 canvas/source/cairo/cairo_canvasfont \ 67 canvas/source/cairo/cairo_canvashelper \ 68 canvas/source/cairo/cairo_canvashelper_text \ 69 canvas/source/cairo/cairo_devicehelper \ 70 canvas/source/cairo/cairo_services \ 71 canvas/source/cairo/cairo_spritecanvas \ 72 canvas/source/cairo/cairo_spritecanvashelper \ 73 canvas/source/cairo/cairo_spritedevicehelper \ 74 canvas/source/cairo/cairo_spritehelper \ 75 canvas/source/cairo/cairo_textlayout \ 76)) 77 78$(call gb_Library_use_external,cairocanvas,cairo) 79 80ifeq ($(OS),WNT) 81 82$(eval $(call gb_Library_add_exception_objects,cairocanvas,\ 83 canvas/source/cairo/cairo_win32_cairo \ 84)) 85$(eval $(call gb_Library_add_linked_libs,cairocanvas,\ 86 gdi32 \ 87 user32 \ 88)) 89 90else 91 92ifeq ($(OS),MACOSX) 93$(eval $(call gb_Library_add_exception_objects,cairocanvas,\ 94 canvas/source/cairo/cairo_quartz_cairo \ 95)) 96 97#CFLAGSCXX+=$(OBJCXXFLAGS) 98 99else 100 101$(eval $(call gb_Library_add_exception_objects,cairocanvas,\ 102 canvas/source/cairo/cairo_xlib_cairo \ 103)) 104 105# freetype? fontconfig? -> test on Solaris 106$(eval $(call gb_Library_add_linked_libs,cairocanvas,\ 107 X11 \ 108 Xrender \ 109)) 110 111endif 112 113endif 114 115# vim: set noet sw=4 ts=4: 116