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
,\
17 $(call gb_ExternalProject_get_state_target
,coinmp
,build
) :
18 $(call gb_Trace_StartRange
,coinmp
,EXTERNAL
)
19 $(call gb_ExternalProject_run
,build
,\
20 MSBuild.exe CoinMP.sln
/t
:Build \
21 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
22 /p
:Platform
=$(if
$(filter INTEL
,$(CPUNAME
)),Win32
,x64
) \
23 /p
:PlatformToolset
=$(VCTOOLSET
) /p
:VisualStudioVersion
=$(VCVER
) /ToolsVersion
:Current \
24 $(if
$(filter 10,$(WINDOWS_SDK_VERSION
)),/p
:WindowsTargetPlatformVersion
=$(UCRTVERSION
)) \
25 ,CoinMP
/MSVisualStudio
/v9
)
26 $(call gb_Trace_EndRange
,coinmp
,EXTERNAL
)
29 $(call gb_ExternalProject_get_state_target
,coinmp
,build
) :
30 $(call gb_Trace_StartRange
,coinmp
,EXTERNAL
)
31 +$(call gb_ExternalProject_run
,build
,\
32 $(gb_RUN_CONFIGURE
) .
/configure COIN_SKIP_PROJECTS
="Data/Sample" \
33 $(if
$(verbose
),--disable-silent-rules
,--enable-silent-rules
) \
34 $(gb_CONFIGURE_PLATFORMS
) \
35 $(if
$(DISABLE_DYNLOADING
),--disable-shared
) \
37 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
39 --enable-dependency-linking F77
=unavailable \
40 $(if
$(filter LINUX
,$(OS
)), \
41 'LDFLAGS=-Wl$(COMMA)-z$(COMMA)origin \
42 -Wl$(COMMA)-rpath$(COMMA)\$$$$ORIGIN') \
44 $(if
$(filter MACOSX
,$(OS
)),&& $(PERL
) \
45 $(SRCDIR
)/solenv
/bin
/macosx-change-install-names.pl shl OOO \
46 $(EXTERNAL_WORKDIR
)/Cbc
/src
/.libs
/libCbc
.3.9.10.dylib \
47 $(EXTERNAL_WORKDIR
)/Cbc
/src
/.libs
/libCbcSolver
.3.9.10.dylib \
48 $(EXTERNAL_WORKDIR
)/Cgl
/src
/.libs
/libCgl
.1.9.11.dylib \
49 $(EXTERNAL_WORKDIR
)/Clp
/src
/.libs
/libClp
.1.13.12.dylib \
50 $(EXTERNAL_WORKDIR
)/Clp
/src
/.libs
/libClpSolver
.1.13.12.dylib \
51 $(EXTERNAL_WORKDIR
)/Clp
/src
/OsiClp
/.libs
/libOsiClp
.1.13.12.dylib \
52 $(EXTERNAL_WORKDIR
)/CoinMP
/src
/.libs
/libCoinMP
.1.8.4.dylib \
53 $(EXTERNAL_WORKDIR
)/CoinUtils
/src
/.libs
/libCoinUtils
.3.10.15.dylib \
54 $(EXTERNAL_WORKDIR
)/Osi
/src
/Osi
/.libs
/libOsi
.1.12.10.dylib
) \
56 $(call gb_Trace_EndRange
,coinmp
,EXTERNAL
)
60 # vim: set noet sw=4 ts=4: