xref: /trunk/main/canvas/Library_canvastools.mk (revision 4437c02e18a852c4a5e7d7e7c198180f06b2b9fc)
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,canvastools))
25
26$(eval $(call gb_Library_add_package_headers,canvastools,canvas_inc))
27
28$(eval $(call gb_Library_add_precompiled_header,canvastools,$(SRCDIR)/canvas/inc/pch/precompiled_canvas))
29
30$(eval $(call gb_Library_add_api,canvastools,\
31    udkapi \
32    offapi \
33))
34
35$(eval $(call gb_Library_set_include,canvastools,\
36    $$(INCLUDE) \
37    -I$(SRCDIR)/canvas/inc \
38    -I$(SRCDIR)/canvas/inc/pch \
39))
40
41$(eval $(call gb_Library_add_defs,canvastools,\
42    -DCANVASTOOLS_DLLIMPLEMENTATION \
43))
44
45ifneq ($(strip $(VERBOSE)$(verbose)),)
46$(eval $(call gb_Library_add_defs,canvastools,\
47    -DVERBOSE \
48))
49endif
50
51ifneq ($(strip $(PROFILER)$(profiler)),)
52$(eval $(call gb_Library_add_defs,canvastools,\
53    -DPROFILER \
54))
55endif
56
57$(eval $(call gb_Library_add_linked_libs,canvastools,\
58    sal \
59    stl \
60    cppu \
61    basegfx \
62    cppuhelper \
63    comphelper \
64    vcl \
65    ootk \
66    tl \
67    $(gb_STDLIBS) \
68))
69
70$(eval $(call gb_Library_add_exception_objects,canvastools,\
71    canvas/source/tools/cachedprimitivebase \
72    canvas/source/tools/canvascustomspritehelper \
73    canvas/source/tools/canvastools \
74    canvas/source/tools/elapsedtime \
75    canvas/source/tools/page \
76    canvas/source/tools/pagemanager \
77    canvas/source/tools/parametricpolypolygon \
78    canvas/source/tools/prioritybooster \
79    canvas/source/tools/propertysethelper \
80    canvas/source/tools/spriteredrawmanager \
81    canvas/source/tools/surface \
82    canvas/source/tools/surfaceproxy \
83    canvas/source/tools/surfaceproxymanager \
84    canvas/source/tools/verifyinput \
85))
86
87ifeq ($(strip $(ENABLE_AGG)),YES)
88$(eval $(call gb_Library_add_exception_objects,canvastools,\
89    canvas/source/tools/bitmap \
90    canvas/source/tools/image \
91))
92$(eval $(call gb_Library_add_linked_libs,canvastools,\
93    agg \
94))
95ifneq ($(strip $(AGG_VERSION)),)
96$(eval $(call gb_Library_add_defs,canvastools,\
97    -DAGG_VERSION=$(AGG_VERSION) \
98))
99endif
100endif
101
102ifeq ($(OS),WNT)
103$(eval $(call gb_Library_add_linked_libs,canvastools,\
104    winmm \
105))
106endif
107
108# vim: set noet sw=4 ts=4:
109