update credits
[LibreOffice.git] / external / cppunit / ExternalProject_cppunit.mk
blobf0b4ff06acce97522a8483e6d497dd34c068cbb8
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,\
13 build \
16 ifeq ($(OS),WNT)
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} \
27 ,src/cppunit)
28 $(call gb_Trace_EndRange,cppunit,EXTERNAL)
29 else
31 cppunit_CXXFLAGS=$(CXXFLAGS) $(gb_EMSCRIPTEN_CXXFLAGS)
33 cppunit_CXXFLAGS+=$(gb_COMPILERDEFS_STDLIB_DEBUG)
35 ifneq (,$(call gb_LinkTarget__symbols_enabled,cppunit))
36 cppunit_CXXFLAGS+=-g
37 endif
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) \
45 --disable-doxygen \
46 --disable-html-docs \
47 --disable-latex-docs \
48 --disable-werror \
49 $(gb_CONFIGURE_PLATFORMS) \
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)" \
56 && cd src \
57 && $(MAKE) \
59 $(call gb_Trace_EndRange,cppunit,EXTERNAL)
60 endif
62 # vim: set noet sw=4 ts=4: