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
,lcms2
))
12 $(eval
$(call gb_ExternalProject_register_targets
,lcms2
,\
18 ifeq ($(filter-out 14 13,$(COMEX
)),)
19 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
20 $(call gb_ExternalProject_run
,build
,\
21 MSBuild.exe lcms2_DLL.vcxproj \
22 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
23 /p
:Platform
=Win32
/p
:TargetName
=lcms2 \
24 $(if
$(filter 14,$(COMEX
)),/p
:PlatformToolset
=v110
/p
:VisualStudioVersion
=11.0) \
25 ,Projects
/VC2010
/lcms2_DLL
)
27 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
28 $(call gb_ExternalProject_run
,build
,\
29 $(COMPATH
)/vcpackages
/vcbuild.exe lcms2_DLL.vcproj \
30 "$(if $(MSVC_USE_DEBUG_RUNTIME),Debug,Release)|Win32" \
31 ,Projects
/VC2008
/lcms2_DLL
)
34 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
35 $(call gb_ExternalProject_run
,build
,\
36 .
/configure
--without-jpeg
--without-tiff
--with-pic \
37 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
38 CPPFLAGS
=" $(SOLARINC)" \
39 $(if
$(filter-out WNTGCC
,$(OS
)$(COM
)),,CPPFLAGS
=" -DCMS_DLL_BUILD") \
40 $(if
$(filter IOS ANDROID
,$(OS
)), --disable-shared
--enable-static
, --enable-shared
--disable-static
) \
41 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
46 # vim: set noet sw=4 ts=4: