Version 6.1.4.1, tag libreoffice-6.1.4.1
[LibreOffice.git] / external / lcms2 / ExternalProject_lcms2.mk
blob51eb81acfc685900c1929a911161e7b69a632a5a
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,\
13 build \
16 ifeq ($(COM),MSC)
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)
27 else
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 \
37 , \
38 --enable-shared --disable-static \
39 ) \
40 $(if $(filter MACOSX,$(OS)),--prefix=/@.__________________________________________________OOO) \
41 && cd src \
42 && $(MAKE) \
44 endif
45 # vim: set noet sw=4 ts=4: