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 $(if
$(filter 140,$(VCVER
)),/p
:PlatformToolset
=v140
/p
:VisualStudioVersion
=14.0 /ToolsVersion
:14.0) \
22 $(if
$(filter 150,$(VCVER
)),/p
:PlatformToolset
=v141
/p
:VisualStudioVersion
=15.0 /ToolsVersion
:15.0) \
23 $(if
$(filter 150-10,$(VCVER
)-$(WINDOWS_SDK_VERSION
)),/p
:WindowsTargetPlatformVersion
=$(UCRTVERSION
)) \
24 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
25 /p
:Platform
=$(if
$(filter INTEL
,$(CPUNAME
)),Win32
,x64
) /p
:TargetName
=lcms2 \
26 ,Projects
/VC2013
/lcms2_DLL
)
28 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
29 $(call gb_ExternalProject_run
,build
,\
30 .
/configure
--without-jpeg
--without-tiff
--with-pic \
31 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) \
32 $(if
$(filter INTEL ARM
,$(CPUNAME
)),ac_cv_c_bigendian
=no
)) \
33 CPPFLAGS
=" $(SOLARINC)" \
34 CFLAGS
='$(CFLAGS) $(if $(debug),$(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CFLAGS)) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS))' \
35 $(if
$(DISABLE_DYNLOADING
), \
36 --enable-static
--disable-shared \
38 --enable-shared
--disable-static \
40 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
45 # vim: set noet sw=4 ts=4: