Version 5.4.3.2, tag libreoffice-5.4.3.2
[LibreOffice.git] / vcl / CppunitTest_vcl_wmf_test.mk
blob9e057d9c758185761aed0221bd8d743de19f6eec
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 \
66 ifeq ($(OS),MACOSX)
67 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
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,vcl_wmf_test,\
77 jvmaccess \
79 endif
81 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
82 gio \
83 graphite \
84 harfbuzz \
85 icuuc \
86 lcms2 \
88 ifeq ($(ENABLE_HEADLESS),)
89 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
90 epoxy \
92 endif
94 ifeq ($(OS),MACOSX)
95 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,vcl_wmf_test,\
96 ApplicationServices \
98 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,vcl_wmf_test,\
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,vcl_wmf_test,\
106 AppleRemote \
108 endif
109 endif
111 ifeq ($(USING_X11),TRUE)
112 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
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,vcl_wmf_test,\
124 cairo \
125 freetype \
126 fontconfig \
128 else
129 ifeq ($(OS),LINUX)
130 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
131 -lm \
132 -ldl \
133 -lpthread \
134 -lX11 \
136 endif
137 endif
139 ifeq ($(OS),ANDROID)
140 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
141 -llog \
142 -landroid \
143 -llo-bootstrap \
145 $(eval $(call gb_CppunitTest_use_externals,vcl_wmf_test,\
146 cairo \
147 fontconfig \
148 freetype \
149 expat \
151 endif
153 ifeq ($(OS),IOS)
154 $(eval $(call gb_CppunitTest_use_system_darwin_frameworks,vcl_wmf_test,\
155 UIKit \
156 CoreFoundation \
158 endif
160 ifeq ($(OS),WNT)
161 $(eval $(call gb_CppunitTest_use_system_win32_libs,vcl_wmf_test,\
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,vcl_wmf_test,vcl/salsrc))
178 endif
180 ifeq ($(OS), $(filter LINUX %BSD SOLARIS, $(OS)))
181 $(eval $(call gb_CppunitTest_add_libs,vcl_wmf_test,\
182 -lm $(DLOPEN_LIBS) \
183 -lpthread \
184 -lX11 \
185 -lXext \
187 endif
189 $(eval $(call gb_CppunitTest_use_sdk_api,vcl_wmf_test))
191 $(eval $(call gb_CppunitTest_use_ure,vcl_wmf_test))
193 $(eval $(call gb_CppunitTest_use_components,vcl_wmf_test,\
194 configmgr/source/configmgr \
195 i18npool/util/i18npool \
196 ucb/source/core/ucb1 \
197 unotools/util/utl \
200 $(eval $(call gb_CppunitTest_use_configuration,vcl_wmf_test))
202 # See gb_CppunitTest__use_vcl (solenv/gbuild/CppunitTest.mk; headless):
203 ifeq ($(USING_X11),TRUE)
204 $(call gb_CppunitTest_get_target,vcl_wmf_test): \
205 $(call gb_Library_get_target,desktop_detector)
206 endif
208 # Hack to suppress ASan ODR violation warnings about symbols present in both the
209 # vcl objects linked into this test library and the vcl library (which gets
210 # dynamically loaded during the test):
211 $(call gb_CppunitTest_get_target,vcl_wmf_test): \
212 EXTRA_ENV_VARS := \
213 ASAN_OPTIONS="$${ASAN_OPTIONS+$$ASAN_OPTIONS:}"detect_odr_violation=0
215 # vim: set noet sw=4 ts=4: