fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / coinmp / ExternalProject_coinmp.mk
blobd8bfaac944bbb32dc519b922ec7c660d992cead3
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,coinmp))
12 $(eval $(call gb_ExternalProject_register_targets,coinmp,\
13 build \
16 ifeq ($(COM),MSC)
17 $(call gb_ExternalProject_get_state_target,coinmp,build) :
18 $(call gb_ExternalProject_run,build,\
19 MSBuild.exe CoinMP.sln /t:Build \
20 /p:Configuration=$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release) \
21 /p:Platform=$(if $(filter INTEL,$(CPUNAME)),Win32,x64) \
22 $(if $(filter 110,$(VCVER)),/p:PlatformToolset=$(if $(filter 80,$(WINDOWS_SDK_VERSION)),v110,v110_xp) /p:VisualStudioVersion=11.0) \
23 $(if $(filter 120,$(VCVER)),/p:PlatformToolset=v120 /p:VisualStudioVersion=12.0 /ToolsVersion:12.0) \
24 ,CoinMP/MSVisualStudio/v9)
26 else
27 $(call gb_ExternalProject_get_state_target,coinmp,build) :
28 +$(call gb_ExternalProject_run,build,\
29 ./configure COIN_SKIP_PROJECTS="Data/Sample" \
30 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
31 $(if $(DISABLE_DYNLOADING),--disable-shared) \
32 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
33 --enable-dependency-linking F77=unavailable \
34 $(if $(filter LINUX,$(OS)), \
35 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
36 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
37 && $(MAKE) \
38 $(if $(filter MACOSX,$(OS)),&& $(PERL) \
39 $(SRCDIR)/solenv/bin/macosx-change-install-names.pl shl OOO \
40 $(gb_Package_SOURCEDIR_coinmp)/Cbc/src/.libs/libCbc.3.8.8.dylib \
41 $(gb_Package_SOURCEDIR_coinmp)/Cbc/src/.libs/libCbcSolver.3.8.8.dylib \
42 $(gb_Package_SOURCEDIR_coinmp)/Cgl/src/.libs/libCgl.1.8.5.dylib \
43 $(gb_Package_SOURCEDIR_coinmp)/Clp/src/.libs/libClp.1.12.6.dylib \
44 $(gb_Package_SOURCEDIR_coinmp)/Clp/src/OsiClp/.libs/libOsiClp.1.12.6.dylib \
45 $(gb_Package_SOURCEDIR_coinmp)/CoinMP/src/.libs/libCoinMP.1.7.6.dylib \
46 $(gb_Package_SOURCEDIR_coinmp)/CoinUtils/src/.libs/libCoinUtils.3.9.11.dylib \
47 $(gb_Package_SOURCEDIR_coinmp)/Osi/src/Osi/.libs/libOsi.1.11.5.dylib) \
50 endif
52 # vim: set noet sw=4 ts=4: