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
) \
68 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
70 -F
/System
/Library
/PrivateFrameworks \
76 ifeq ($(ENABLE_JAVA
),TRUE
)
77 $(eval
$(call gb_CppunitTest_use_libraries
,vcl_wmf_test
,\
82 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
89 ifeq ($(ENABLE_HEADLESS
),)
90 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
96 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,vcl_wmf_test
,\
99 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,vcl_wmf_test
,\
100 $(if
$(filter X86_64
,$(CPUNAME
)),,QuickTime
) \
106 ifneq ($(ENABLE_MACOSX_SANDBOX
),TRUE
)
107 $(eval
$(call gb_CppunitTest_use_libraries
,vcl_wmf_test
,\
113 ifeq ($(USING_X11
),TRUE
)
114 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
124 ifeq ($(ENABLE_HEADLESS
),TRUE
)
125 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
129 ifneq ($(OS
),EMSCRIPTEN
)
130 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
136 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
147 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
152 $(eval
$(call gb_CppunitTest_use_externals
,vcl_wmf_test
,\
161 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,vcl_wmf_test
,\
168 $(eval
$(call gb_CppunitTest_use_system_win32_libs
,vcl_wmf_test
,\
186 #$(eval $(call gb_CppunitTest_add_nativeres,vcl_wmf_test,vcl/salsrc))
189 ifeq ($(OS
), $(filter LINUX
%BSD SOLARIS
, $(OS
)))
190 $(eval
$(call gb_CppunitTest_add_libs
,vcl_wmf_test
,\
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 \
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
)
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
): \
223 ASAN_OPTIONS
="$${ASAN_OPTIONS+$$ASAN_OPTIONS:}"detect_odr_violation
=0
225 # vim: set noet sw=4 ts=4: