build fix
[LibreOffice.git] / vcl / CppunitTest_vcl_wmf_test.mk
blobe622c911117cf3c22c2005f22ec1e93fd18fa59c
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,vcl_wmf_test))
12 $(eval $(call gb_CppunitTest_add_exception_objects,vcl_wmf_test, \
13 vcl/qa/cppunit/wmf/wmfimporttest \
16 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
17 boost_headers \
18 libxml2 \
19 $(if $(filter PDFIUM,$(BUILD_TYPE)),pdfium) \
22 $(eval $(call gb_CppunitTest_set_include,vcl_wmf_test,\
23 $$(INCLUDE) \
24 -I$(SRCDIR)/vcl/inc \
25 -I$(SRCDIR)/vcl/source/filter/wmf \
28 $(eval $(call gb_CppunitTest_use_library_objects,vcl_wmf_test, \
29 test-setupvcl \
30 vcl \
33 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
34 $(if $(filter LINUX MACOSX %BSD SOLARIS,$(OS)), \
35 curl) \
36 jpeg \
37 $(if $(filter-out IOS WNT,$(OS)), \
38 nss3 \
39 plc4) \
40 libeot \
43 $(eval $(call gb_CppunitTest_use_libraries,vcl_wmf_test,\
44 $(call gb_Helper_optional,BREAKPAD, \
45 crashreport) \
46 basegfx \
47 comphelper \
48 cppu \
49 cppuhelper \
50 i18nlangtag \
51 i18nutil \
52 $(if $(filter OPENCL,$(BUILD_TYPE)),opencl) \
53 sal \
54 salhelper \
55 sot \
56 svl \
57 svt \
58 test \
59 tl \
60 ucbhelper \
61 unotest \
62 utl \
63 xmlreader \
64 $(gb_UWINAPI) \
67 ifeq ($(OS),MACOSX)
68 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
69 -framework IOKit \
70 -F/System/Library/PrivateFrameworks \
71 -framework CoreUI \
72 -lobjc \
74 endif
76 ifeq ($(ENABLE_JAVA),TRUE)
77 $(eval $(call gb_CppunitTest_use_libraries,vcl_wmf_test,\
78 jvmaccess \
80 endif
82 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
83 gio \
84 graphite \
85 harfbuzz \
86 icuuc \
87 lcms2 \
89 ifeq ($(ENABLE_HEADLESS),)
90 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
91 glew \
93 endif
95 ifeq ($(OS),MACOSX)
96 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,vcl_wmf_test,\
97 ApplicationServices \
99 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,vcl_wmf_test,\
100 $(if $(filter X86_64,$(CPUNAME)),,QuickTime) \
101 Cocoa \
102 Carbon \
103 CoreFoundation \
104 OpenGL \
106 ifneq ($(ENABLE_MACOSX_SANDBOX),TRUE)
107 $(eval $(call gb_CppunitTest_use_libraries,vcl_wmf_test,\
108 AppleRemote \
110 endif
111 endif
113 ifeq ($(USING_X11),TRUE)
114 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
115 cairo \
116 cups \
117 dbus \
118 fontconfig \
119 freetype \
120 valgrind \
122 endif
124 ifeq ($(ENABLE_HEADLESS),TRUE)
125 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
126 cairo \
127 freetype \
129 ifneq ($(OS),EMSCRIPTEN)
130 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
131 fontconfig \
133 endif
134 else
135 ifeq ($(OS),LINUX)
136 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
137 -lm \
138 -ldl \
139 -lpthread \
140 -lGL \
141 -lX11 \
143 endif
144 endif
146 ifeq ($(OS),ANDROID)
147 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
148 -llog \
149 -landroid \
150 -llo-bootstrap \
152 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
153 cairo \
154 fontconfig \
155 freetype \
156 expat \
158 endif
160 ifeq ($(OS),IOS)
161 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,vcl_wmf_test,\
162 UIKit \
163 CoreFoundation \
165 endif
167 ifeq ($(OS),WNT)
168 $(eval $(call gb_CppunitTest_use_system_win32_libs,vcl_wmf_test,\
169 advapi32 \
170 crypt32 \
171 gdi32 \
172 gdiplus \
173 glu32 \
174 imm32 \
175 mpr \
176 opengl32 \
177 ole32 \
178 shell32 \
179 usp10 \
180 uuid \
181 version \
182 winspool \
183 setupapi \
184 shlwapi \
186 #$(eval $(call gb_CppunitTest_add_nativeres,vcl_wmf_test,vcl/salsrc))
187 endif
189 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
190 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
191 -lm $(DLOPEN_LIBS) \
192 -lpthread \
193 -lGL \
194 -lX11 \
195 -lXext \
197 endif
199 $(eval $(call gb_CppunitTest_use_sdk_api,vcl_wmf_test))
201 $(eval $(call gb_CppunitTest_use_ure,vcl_wmf_test))
203 $(eval $(call gb_CppunitTest_use_components,vcl_wmf_test,\
204 configmgr/source/configmgr \
205 i18npool/util/i18npool \
206 ucb/source/core/ucb1 \
207 unotools/util/utl \
210 $(eval $(call gb_CppunitTest_use_configuration,vcl_wmf_test))
212 # See gb_CppunitTest__use_vcl (solenv/gbuild/CppunitTest.mk; headless):
213 ifeq ($(USING_X11),TRUE)
214 $(call gb_CppunitTest_get_target,vcl_wmf_test): \
215 $(call gb_Library_get_target,desktop_detector)
216 endif
218 # Hack to suppress ASan ODR violation warnings about symbols present in both the
219 # vcl objects linked into this test library and the vcl library (which gets
220 # dynamically loaded during the test):
221 $(call gb_CppunitTest_get_target,vcl_wmf_test): \
222 EXTRA_ENV_VARS := \
223 ASAN_OPTIONS="$${ASAN_OPTIONS+$$ASAN_OPTIONS:}"detect_odr_violation=0
225 # vim: set noet sw=4 ts=4: