fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / cppunit / ExternalProject_cppunit.mk
blob351c5a6995d534dc2055133c565ba92225a3f8c7
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)$(COM),WNTMSC)
17 $(call gb_ExternalProject_get_state_target,cppunit,build) :
18 $(call gb_ExternalProject_run,build,\
19 PROFILEFLAGS="$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \
20 /p:Platform=$(if $(filter INTEL,$(CPUNAME)),Win32,x64) \
21 $(if $(filter 110,$(VCVER)),/p:PlatformToolset=$(if $(filter 80,$(WINDOWS_SDK_VERSION)),v110,v110_xp) \
22 /p:VisualStudioVersion=11.0) \
23 $(if $(filter 120,$(VCVER)),/p:PlatformToolset=v120 /p:VisualStudioVersion=12.0 /ToolsVersion:12.0)" \
24 && msbuild.exe cppunit_dll.vcxproj /p:Configuration=$${PROFILEFLAGS} \
25 && cd ../DllPlugInTester \
26 && msbuild.exe DllPlugInTester.vcxproj /p:Configuration=$${PROFILEFLAGS} \
27 ,src/cppunit)
28 else
30 cppunit_CXXFLAGS=$(CXXFLAGS)
32 ifneq (,$(filter ANDROID DRAGONFLY FREEBSD IOS LINUX NETBSD OPENBSD,$(OS)))
33 ifneq (,$(gb_ENABLE_DBGUTIL))
34 cppunit_CXXFLAGS+=-D_GLIBCXX_DEBUG
35 endif
36 endif
38 ifeq ($(OS)-$(COM),WNT-GCC)
39 cppunit_CXXFLAGS+=-mthreads
40 endif
42 ifneq (,$(debug))
43 cppunit_CXXFLAGS+=-g
44 endif
46 $(call gb_ExternalProject_get_state_target,cppunit,build) :
47 $(call gb_ExternalProject_run,build,\
48 ./configure \
49 --disable-dependency-tracking \
50 $(if $(filter TRUE,$(DISABLE_DYNLOADING)),--disable-shared,--disable-static) \
51 --disable-doxygen \
52 --disable-html-docs \
53 --disable-latex-docs \
54 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
55 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________NONE) \
56 $(if $(filter WNT,$(OS)),LDFLAGS="-Wl$(COMMA)--enable-runtime-pseudo-reloc-v2") \
57 $(if $(filter SOLARIS,$(OS)),LIBS="-lm") \
58 $(if $(filter ANDROID,$(OS)),LIBS="-lgnustl_shared -lm") \
59 CXXFLAGS="$(cppunit_CXXFLAGS)" \
60 && cd src \
61 && $(MAKE) \
63 endif
65 # vim: set noet sw=4 ts=4: