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
,\
14 -I
$(SRCDIR
)/emfio
/inc \
17 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
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
, \
40 $(if
$(filter OPENCL
,$(BUILD_TYPE
)),opencl
) \
56 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
57 $(if
$(filter LINUX MACOSX
%BSD SOLARIS
,$(OS
)), \
60 $(if
$(filter-out IOS WNT
,$(OS
)), \
67 $(eval
$(call gb_CppunitTest_add_libs
,emfio_wmf
,\
69 -F
/System
/Library
/PrivateFrameworks \
75 ifeq ($(ENABLE_JAVA
),TRUE
)
76 $(eval
$(call gb_CppunitTest_use_libraries
,emfio_wmf
,\
81 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
88 ifeq ($(ENABLE_HEADLESS
),)
89 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
95 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,emfio_wmf
,\
98 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,emfio_wmf
,\
99 $(if
$(filter X86_64
,$(CPUNAME
)),,QuickTime
) \
104 ifneq ($(ENABLE_MACOSX_SANDBOX
),TRUE
)
105 $(eval
$(call gb_CppunitTest_use_libraries
,emfio_wmf
,\
111 ifeq ($(USING_X11
),TRUE
)
112 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
122 ifeq ($(ENABLE_HEADLESS
),TRUE
)
123 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
130 $(eval
$(call gb_CppunitTest_add_libs
,emfio_wmf
,\
140 $(eval
$(call gb_CppunitTest_add_libs
,emfio_wmf
,\
145 $(eval
$(call gb_CppunitTest_use_externals
,emfio_wmf
,\
154 $(eval
$(call gb_CppunitTest_use_system_darwin_frameworks
,emfio_wmf
,\
161 $(eval
$(call gb_CppunitTest_use_system_win32_libs
,emfio_wmf
,\
177 #$(eval $(call gb_CppunitTest_add_nativeres,emfio,vcl/salsrc))
180 ifeq ($(OS
), $(filter LINUX
%BSD SOLARIS
, $(OS
)))
181 $(eval
$(call gb_CppunitTest_add_libs
,emfio_wmf
,\
189 $(eval
$(call gb_CppunitTest_use_ure
,emfio_wmf
))
191 $(eval
$(call gb_CppunitTest_use_components
,emfio_wmf
,\
192 configmgr
/source
/configmgr \
194 i18npool
/util
/i18npool \
195 ucb
/source
/core
/ucb1 \
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
)
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
): \
212 ASAN_OPTIONS
="$${ASAN_OPTIONS+$$ASAN_OPTIONS:}"detect_odr_violation
=0
214 # vim: set noet sw=4 ts=4: