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 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
19 $(call gb_ExternalProject_run
,build
,\
20 MSBuild.exe lcms2_DLL.vcxproj \
21 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
22 /p
:Platform
=$(if
$(filter INTEL
,$(CPUNAME
)),Win32
,x64
) /p
:TargetName
=lcms2 \
23 $(if
$(filter 110,$(VCVER
)),/p
:PlatformToolset
=$(if
$(filter 80,$(WINDOWS_SDK_VERSION
)),v110
,v110_xp
) /p
:VisualStudioVersion
=11.0) \
24 ,$(if
$(filter 120,$(VCVER
)),Projects
/VC2013
/lcms2_DLL
,Projects
/VC2010
/lcms2_DLL
))
26 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
27 $(call gb_ExternalProject_run
,build
,\
28 .
/configure
--without-jpeg
--without-tiff
--with-pic \
29 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
30 CPPFLAGS
=" $(SOLARINC)" \
31 CFLAGS
='$(if $(debug),$(gb_DEBUG_CFLAGS),$(gb_COMPILEROPTFLAGS))' \
32 $(if
$(filter-out WNTGCC
,$(OS
)$(COM
)),,CPPFLAGS
=" -DCMS_DLL_BUILD") \
33 $(if
$(filter IOS ANDROID
,$(OS
)), --disable-shared
--enable-static
, --enable-shared
--disable-static
) \
34 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
39 # vim: set noet sw=4 ts=4: