| Peter Foley | 143835b | 2012-11-25 16:37:40 -0500 | [diff] [blame] | 1 | # -*- 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 | |
| 13 | ifeq ($(OS),WNT) |
| 14 | ifeq ($(COM),MSC) |
| Michael Stahl | 4811c2d | 2013-04-14 13:52:56 +0200 | [diff] [blame] | 15 | $(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 Foley | 143835b | 2012-11-25 16:37:40 -0500 | [diff] [blame] | 18 | else |
| 19 | $(eval $(call gb_ExternalPackage_add_file,cppunit,bin/libcppunit-1-13-0.dll,src/cppunit/.libs/libcppunit-1-13-0.dll)) |
| David Tardon | 930fe05 | 2013-03-15 15:11:48 +0100 | [diff] [blame] | 20 | $(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.dll.a,src/cppunit/.libs/libcppunit.dll.a)) |
| Peter Foley | 143835b | 2012-11-25 16:37:40 -0500 | [diff] [blame] | 21 | $(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester.exe,src/DllPlugInTester/.libs/DllPlugInTester.exe)) |
| 22 | endif |
| 23 | else |
| Tor Lillqvist | 3de4b44 | 2012-12-08 20:21:47 +0200 | [diff] [blame] | 24 | ifneq ($(DISABLE_DYNLOADING),TRUE) |
| Peter Foley | 143835b | 2012-11-25 16:37:40 -0500 | [diff] [blame] | 25 | $(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester,src/DllPlugInTester/.libs/DllPlugInTester)) |
| Tor Lillqvist | 3de4b44 | 2012-12-08 20:21:47 +0200 | [diff] [blame] | 26 | else |
| Tor Lillqvist | 92dbf9d | 2013-01-02 14:18:11 +0200 | [diff] [blame] | 27 | ifneq ($(filter DESKTOP,$(BUILD_TYPE)),) |
| Tor Lillqvist | 3de4b44 | 2012-12-08 20:21:47 +0200 | [diff] [blame] | 28 | $(eval $(call gb_ExternalPackage_add_file,cppunit,bin/DllPlugInTester,src/DllPlugInTester/DllPlugInTester)) |
| 29 | endif |
| Tor Lillqvist | 92dbf9d | 2013-01-02 14:18:11 +0200 | [diff] [blame] | 30 | endif |
| Peter Foley | 143835b | 2012-11-25 16:37:40 -0500 | [diff] [blame] | 31 | ifeq ($(OS),MACOSX) |
| Stephan Bergmann | b5b316a | 2012-12-07 08:10:48 +0100 | [diff] [blame] | 32 | $(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.0.dylib,src/cppunit/.libs/libcppunit-1.13.0.dylib)) |
| Norbert Thiebaud | 76c1917 | 2012-12-07 16:03:21 -0600 | [diff] [blame] | 33 | $(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.dylib,src/cppunit/.libs/libcppunit.dylib)) |
| Peter Foley | 143835b | 2012-11-25 16:37:40 -0500 | [diff] [blame] | 34 | else ifeq ($(OS),AIX) |
| 35 | $(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit-1.13.a,src/cppunit/.libs/libcppunit-1.13.a)) |
| 36 | else 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)) |
| 39 | else ifeq ($(DISABLE_DYNLOADING),TRUE) |
| 40 | $(eval $(call gb_ExternalPackage_add_file,cppunit,lib/libcppunit.a,src/cppunit/.libs/libcppunit.a)) |
| 41 | else 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)) |
| 44 | else |
| 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)) |
| 47 | endif |
| 48 | endif |
| 49 | |
| 50 | # vim: set noet sw=4 ts=4: |