xref: /trunk/main/canvas/Library_cairocanvas.mk (revision 906a4e93)
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 ifeq ($(OS),OS2)
91$(eval $(call gb_Library_add_exception_objects,cairocanvas,\
92	canvas/source/cairo/cairo_os2_cairo \
93))
94$(eval $(call gb_Library_add_libs,cairocanvas,\
95    -lft2lib \
96))
97else
98
99ifeq ($(OS),MACOSX)
100$(eval $(call gb_Library_add_exception_objects,cairocanvas,\
101	canvas/source/cairo/cairo_quartz_cairo \
102))
103
104#CFLAGSCXX+=$(OBJCXXFLAGS)
105
106else
107
108$(eval $(call gb_Library_add_exception_objects,cairocanvas,\
109	canvas/source/cairo/cairo_xlib_cairo \
110))
111
112# freetype? fontconfig? -> test on Solaris
113$(eval $(call gb_Library_add_linked_libs,cairocanvas,\
114	X11 \
115	Xrender \
116))
117
118endif
119
120endif
121
122# vim: set noet sw=4 ts=4:
123