xref: /trunk/main/canvas/Library_directx9canvas.mk (revision bcc22a4c08e1268a4f06e54fb146f88ef49f2cdc)
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,directx9canvas))
25
26$(eval $(call gb_Library_set_componentfile,directx9canvas,canvas/source/directx/directx9canvas))
27
28$(eval $(call gb_Library_add_api,directx9canvas,\
29    udkapi \
30    offapi \
31))
32
33$(eval $(call gb_Library_set_include,directx9canvas,\
34    $$(INCLUDE) \
35    -I$(SRCDIR)/canvas/inc \
36    -I$(SRCDIR)/canvas/inc/pch \
37))
38
39$(eval $(call gb_Library_add_defs,directx9canvas,\
40    -DDIRECTX_VERSION=0x0900 \
41))
42
43ifneq ($(strip $(VERBOSE)$(verbose)),)
44$(eval $(call gb_Library_add_defs,directx9canvas,\
45    -DVERBOSE \
46))
47endif
48
49$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
50    cppu \
51    ootk \
52    sal \
53    comphelper \
54    cppuhelper \
55    stl \
56    basegfx \
57    canvastools \
58    vcl \
59    tl \
60    utl \
61    i18nisolang1 \
62    $(gb_STDLIBS) \
63))
64
65ifeq ($(OS),WNT)
66$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
67    user32 \
68    gdi32 \
69    gdiplus \
70))
71ifneq ($(USE_MINGW),)
72$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
73what is $(DIRECTXSDK_LIB)/d3d9.lib now? \
74))
75else
76$(eval $(call gb_Library_add_linked_libs,directx9canvas,\
77    d3d9 \
78))
79endif
80endif
81
82$(eval $(call gb_Library_add_exception_objects,directx9canvas,\
83    canvas/source/directx/dx_9rm \
84    canvas/source/directx/dx_bitmap \
85    canvas/source/directx/dx_bitmapcanvashelper \
86    canvas/source/directx/dx_canvasbitmap \
87    canvas/source/directx/dx_canvascustomsprite \
88    canvas/source/directx/dx_canvasfont \
89    canvas/source/directx/dx_canvashelper \
90    canvas/source/directx/dx_canvashelper_texturefill \
91    canvas/source/directx/dx_config \
92    canvas/source/directx/dx_devicehelper \
93    canvas/source/directx/dx_gdiplususer \
94    canvas/source/directx/dx_impltools \
95    canvas/source/directx/dx_linepolypolygon \
96    canvas/source/directx/dx_spritecanvas \
97    canvas/source/directx/dx_spritecanvashelper \
98    canvas/source/directx/dx_spritedevicehelper \
99    canvas/source/directx/dx_spritehelper \
100    canvas/source/directx/dx_surfacebitmap \
101    canvas/source/directx/dx_surfacegraphics \
102    canvas/source/directx/dx_textlayout \
103    canvas/source/directx/dx_textlayout_drawhelper \
104    canvas/source/directx/dx_vcltools \
105))
106
107# vim: set noet sw=4 ts=4:
108