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
,\
19 $(if
$(filter PDFIUM
,$(BUILD_TYPE
)),pdfium
) \
22 $(eval
$(call gb_CppunitTest_set_include
,vcl_wmf_test
,\
25 -I
$(SRCDIR
)/vcl
/source
/filter/wmf \
28 $(eval
$(call gb_CppunitTest_use_library_objects
,vcl_wmf_test
, \
33 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
34 $(if
$(filter LINUX MACOSX
%BSD SOLARIS
,$(OS
)), \
37 $(if
$(filter-out IOS WNT
,$(OS
)), \
43 $(eval
$(call gb_CppunitTest_use_libraries
,vcl_wmf_test
,\
44 $(call gb_Helper_optional
,BREAKPAD
, \
52 $(if
$(filter OPENCL
,$(BUILD_TYPE
)),opencl
) \
67 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
69 -F
/System
/Library
/PrivateFrameworks \
75 ifeq ($(ENABLE_JAVA
),TRUE
)
76 $(eval
$(call gb_CppunitTest_use_libraries
,vcl_wmf_test
,\
81 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
88 ifeq ($(ENABLE_HEADLESS
),)
89 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
95 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,vcl_wmf_test
,\
98 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,vcl_wmf_test
,\
99 $(if
$(filter X86_64
,$(CPUNAME
)),,QuickTime
) \
104 ifneq ($(ENABLE_MACOSX_SANDBOX
),TRUE
)
105 $(eval
$(call gb_CppunitTest_use_libraries
,vcl_wmf_test
,\
111 ifeq ($(USING_X11
),TRUE
)
112 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
122 ifeq ($(ENABLE_HEADLESS
),TRUE
)
123 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
130 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
140 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
145 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
154 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,vcl_wmf_test
,\
161 $(eval
$(call gb_CppunitTest_use_system_win32_libs
,vcl_wmf_test
,\
177 #$(eval $(call gb_CppunitTest_add_nativeres,vcl_wmf_test,vcl/salsrc))
180 ifeq ($(OS
), $(filter LINUX
%BSD SOLARIS
, $(OS
)))
181 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
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 \
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
)
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
): \
213 ASAN_OPTIONS
="$${ASAN_OPTIONS+$$ASAN_OPTIONS:}"detect_odr_violation
=0
215 # vim: set noet sw=4 ts=4: