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_ExternalProject_ExternalProject
,cppunit
))
12 $(eval
$(call gb_ExternalProject_register_targets
,cppunit
,\
17 $(call gb_ExternalProject_get_state_target
,cppunit
,build
) :
18 $(call gb_Trace_StartRange
,cppunit
,EXTERNAL
)
19 $(call gb_ExternalProject_run
,build
,\
20 PROFILEFLAGS
="$(gb_MSBUILD_CONFIG) \
21 /p:Platform=$(gb_MSBUILD_PLATFORM) \
22 /p:PlatformToolset=$(VCTOOLSET) /p:VisualStudioVersion=$(VCVER) /ToolsVersion:Current \
23 $(if $(filter 10,$(WINDOWS_SDK_VERSION)),/p:WindowsTargetPlatformVersion=$(UCRTVERSION))" \
24 && msbuild.exe cppunit_dll.vcxproj
/p
:Configuration
=$${PROFILEFLAGS} \
25 && cd ..
/DllPlugInTester \
26 && msbuild.exe DllPlugInTester.vcxproj
/p
:Configuration
=$${PROFILEFLAGS} \
28 $(call gb_Trace_EndRange
,cppunit
,EXTERNAL
)
31 cppunit_CXXFLAGS
=$(CXXFLAGS
)
33 cppunit_CXXFLAGS
+=$(gb_COMPILERDEFS_STDLIB_DEBUG
)
35 ifneq (,$(call gb_LinkTarget__symbols_enabled
,cppunit
))
39 $(call gb_ExternalProject_get_state_target
,cppunit
,build
) :
40 $(call gb_Trace_StartRange
,cppunit
,EXTERNAL
)
41 $(call gb_ExternalProject_run
,build
,\
42 $(gb_RUN_CONFIGURE
) .
/configure \
43 --disable-dependency-tracking \
44 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
47 --disable-latex-docs \
49 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
50 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________NONE
) \
51 $(if
$(filter WNT
,$(OS
)),LDFLAGS
="-Wl$(COMMA)--enable-runtime-pseudo-reloc-v2") \
52 $(if
$(filter SOLARIS
,$(OS
)),LIBS
="-lm") \
53 $(if
$(filter ANDROID
,$(OS
)),LIBS
="$(gb_STDLIBS)") \
54 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
55 CXXFLAGS
="$(cppunit_CXXFLAGS) $(gb_EMSCRIPTEN_CPPFLAGS)" \
59 $(call gb_Trace_EndRange
,cppunit
,EXTERNAL
)
62 # vim: set noet sw=4 ts=4: