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