tdf#90510 : Override default point label placement setting...
[LibreOffice.git] / emfio / CppunitTest_emfio_wmf_test.mk
blobb612f5c5a03b0d7614733748f20b24e76dfded26
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CppunitTest_CppunitTest,emfio_wmf))
12 $(eval $(call gb_CppunitTest_set_include,emfio_wmf,\
13 $$(INCLUDE) \
14 -I$(SRCDIR)/emfio/inc \
17 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
18 boost_headers \
19 libxml2 \
20 $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
23 $(eval $(call gb_CppunitTest_add_exception_objects,emfio_wmf, \
24 emfio/qa/cppunit/wmf/wmfimporttest \
27 $(eval $(call gb_CppunitTest_use_sdk_api,emfio_wmf))
29 $(eval $(call gb_CppunitTest_use_libraries,emfio_wmf,\
30 $(call gb_Helper_optional,BREAKPAD, \
31 crashreport) \
32 basegfx \
33 drawinglayer \
34 cppu \
35 cppuhelper \
36 comphelper \
37 emfio \
38 i18nlangtag \
39 i18nutil \
40 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
41 sal \
42 salhelper \
43 sot \
44 svl \
45 svt \
46 test \
47 test-setupvcl \
48 tl \
49 ucbhelper \
50 unotest \
51 vcl \
52 utl \
53 xmlreader \
56 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
57 $(if $(filter LINUX MACOSX %BSD SOLARIS,$(OS)), \
58 curl) \
59 jpeg \
60 $(if $(filter-out IOS WNT,$(OS)), \
61 nss3 \
62 plc4) \
63 libeot \
66 ifeq ($(OS),MACOSX)
67 $(eval $(call gb_CppunitTest_add_libs,emfio_wmf,\
68 -framework IOKit \
69 -F/System/Library/PrivateFrameworks \
70 -framework CoreUI \
71 -lobjc \
73 endif
75 ifeq ($(ENABLE_JAVA),TRUE)
76 $(eval $(call gb_CppunitTest_use_libraries,emfio_wmf,\
77 jvmaccess \
79 endif
81 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
82 gio \
83 graphite \
84 harfbuzz \
85 icuuc \
86 lcms2 \
88 ifeq ($(ENABLE_HEADLESS),)
89 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
90 epoxy \
92 endif
94 ifeq ($(OS),MACOSX)
95 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,emfio_wmf,\
96 ApplicationServices \
98 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,emfio_wmf,\
99 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
100 Cocoa \
101 Carbon \
102 CoreFoundation \
104 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
105 $(eval $(call gb_CppunitTest_use_libraries,emfio_wmf,\
106 AppleRemote \
108 endif
109 endif
111 ifeq ($(USING_X11),TRUE)
112 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
113 cairo \
114 cups \
115 dbus \
116 fontconfig \
117 freetype \
118 valgrind \
120 endif
122 ifeq ($(ENABLE_HEADLESS),TRUE)
123 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
124 cairo \
125 freetype \
126 fontconfig \
128 else
129 ifeq ($(OS),LINUX)
130 $(eval $(call gb_CppunitTest_add_libs,emfio_wmf,\
131 -lm \
132 -ldl \
133 -lpthread \
134 -lX11 \
136 endif
137 endif
139 ifeq ($(OS),ANDROID)
140 $(eval $(call gb_CppunitTest_add_libs,emfio_wmf,\
141 -llog \
142 -landroid \
143 -llo-bootstrap \
145 $(eval $(call gb_CppunitTest_use_externals,emfio_wmf,\
146 cairo \
147 fontconfig \
148 freetype \
149 expat \
151 endif
153 ifeq ($(OS),IOS)
154 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,emfio_wmf,\
155 UIKit \
156 CoreFoundation \
158 endif
160 ifeq ($(OS),WNT)
161 $(eval $(call gb_CppunitTest_use_system_win32_libs,emfio_wmf,\
162 advapi32 \
163 crypt32 \
164 gdi32 \
165 gdiplus \
166 imm32 \
167 mpr \
168 ole32 \
169 shell32 \
170 usp10 \
171 uuid \
172 version \
173 winspool \
174 setupapi \
175 shlwapi \
177 #$(eval $(call gb_CppunitTest_add_nativeres,emfio,vcl/salsrc))
178 endif
180 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
181 $(eval $(call gb_CppunitTest_add_libs,emfio_wmf,\
182 -lm $(DLOPEN_LIBS) \
183 -lpthread \
184 -lX11 \
185 -lXext \
187 endif
189 $(eval $(call gb_CppunitTest_use_ure,emfio_wmf))
191 $(eval $(call gb_CppunitTest_use_components,emfio_wmf,\
192 configmgr/source/configmgr \
193 emfio/emfio \
194 i18npool/util/i18npool \
195 ucb/source/core/ucb1 \
196 unotools/util/utl \
199 $(eval $(call gb_CppunitTest_use_configuration,emfio_wmf))
201 # See gb_CppunitTest__use_vcl (solenv/gbuild/CppunitTest.mk; headless):
202 ifeq ($(USING_X11),TRUE)
203 $(call gb_CppunitTest_get_target,emfio_wmf): \
204 $(call gb_Library_get_target,desktop_detector)
205 endif
207 # Hack to suppress ASan ODR violation warnings about symbols present in both the
208 # vcl objects linked into this test library and the vcl library (which gets
209 # dynamically loaded during the test):
210 $(call gb_CppunitTest_get_target,emfio_wmf): \
211 EXTRA_ENV_VARS := \
212 ASAN_OPTIONS="$${ASAN_OPTIONS+$$ASAN_OPTIONS:}"detect_odr_violation=0
214 # vim: set noet sw=4 ts=4: