blob: d900e22a1fd23f2146611540f436faf9ed908ca2 [file] [log] [blame]
Peter Foley143835b2012-11-25 16:37:40 -05001# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
2#
3# This file is part of the LibreOffice project.
4#
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/.
8#
9
10$(eval $(call gb_ExternalPackage_ExternalPackage,cppunit,cppunit))
11$(eval $(call gb_ExternalPackage_use_external_project,cppunit,cppunit))
12
13ifeq ($(OS),WNT)
14ifeq ($(COM),MSC)
Michael Stahl4811c2d2013-04-14 13:52:56 +020015$(eval $(call gb_ExternalPackage_add_file,cppunit,bin/$(if $(MSVC_USE_DEBUG_RUNTIME),cppunitd_dll.dll,cppunit_dll.dll),src/cppunit/$(if $(MSVC_USE_DEBUG_RUNTIME),DebugDll/cppunitd_dll.dll,ReleaseDll/cppunit_dll.dll)))
16$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/icppunit_dll.lib,src/cppunit/$(if $(MSVC_USE_DEBUG_RUNTIME),DebugDll/cppunitd_dll.lib,ReleaseDll/cppunit_dll.lib)))
17$(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester_dll.exe,src/DllPlugInTester/$(if $(MSVC_USE_DEBUG_RUNTIME),DebugDll/DllPlugInTesterd_dll.exe,ReleaseDll/DllPlugInTester_dll.exe)))
Peter Foley143835b2012-11-25 16:37:40 -050018else
19$(eval $(call gb_ExternalPackage_add_file,cppunit,bin/libcppunit-1-13-0.dll,src/cppunit/.libs/libcppunit-1-13-0.dll))
David Tardon930fe052013-03-15 15:11:48 +010020$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.dll.a,src/cppunit/.libs/libcppunit.dll.a))
Peter Foley143835b2012-11-25 16:37:40 -050021$(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester.exe,src/DllPlugInTester/.libs/DllPlugInTester.exe))
22endif
23else
Tor Lillqvist3de4b442012-12-08 20:21:47 +020024ifneq ($(DISABLE_DYNLOADING),TRUE)
Peter Foley143835b2012-11-25 16:37:40 -050025$(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester,src/DllPlugInTester/.libs/DllPlugInTester))
Tor Lillqvist3de4b442012-12-08 20:21:47 +020026else
Tor Lillqvist92dbf9d2013-01-02 14:18:11 +020027ifneq ($(filter DESKTOP,$(BUILD_TYPE)),)
Tor Lillqvist3de4b442012-12-08 20:21:47 +020028$(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester,src/DllPlugInTester/DllPlugInTester))
29endif
Tor Lillqvist92dbf9d2013-01-02 14:18:11 +020030endif
Peter Foley143835b2012-11-25 16:37:40 -050031ifeq ($(OS),MACOSX)
Stephan Bergmannb5b316a2012-12-07 08:10:48 +010032$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.0.dylib,src/cppunit/.libs/libcppunit-1.13.0.dylib))
Norbert Thiebaud76c19172012-12-07 16:03:21 -060033$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.dylib,src/cppunit/.libs/libcppunit.dylib))
Peter Foley143835b2012-11-25 16:37:40 -050034else ifeq ($(OS),AIX)
35$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.a,src/cppunit/.libs/libcppunit-1.13.a))
36else ifeq ($(OS),OPENBSD)
37$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.so.0.0,src/cppunit/.libs/libcppunit-1.13.so.0.0))
38$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.so,src/cppunit/.libs/libcppunit-1.13.so.0.0))
39else ifeq ($(DISABLE_DYNLOADING),TRUE)
40$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.a,src/cppunit/.libs/libcppunit.a))
41else ifeq ($(OS),ANDROID)
42$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.so,src/cppunit/.libs/libcppunit-1.13.so))
43$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.so,src/cppunit/.libs/libcppunit-1.13.so))
44else
45$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.so.0,src/cppunit/.libs/libcppunit-1.13.so.0.0.1))
46$(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.so,src/cppunit/.libs/libcppunit-1.13.so.0.0.1))
47endif
48endif
49
50# vim: set noet sw=4 ts=4: