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
,\
17 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
18 $(call gb_Trace_StartRange
,lcms2
,EXTERNAL
)
19 $(call gb_ExternalProject_run
,build
,\
20 MSBuild.exe lcms2_DLL.vcxproj \
21 $(gb_MSBUILD_CONFIG_AND_PLATFORM
) /p
:TargetName
=lcms2 \
22 /p
:PlatformToolset
=$(VCTOOLSET
) /p
:VisualStudioVersion
=$(VCVER
) /ToolsVersion
:Current \
23 $(if
$(filter 10,$(WINDOWS_SDK_VERSION
)),/p
:WindowsTargetPlatformVersion
=$(UCRTVERSION
)) \
24 ,Projects
/VC2019
/lcms2_DLL
)
25 $(call gb_Trace_EndRange
,lcms2
,EXTERNAL
)
27 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
28 $(call gb_Trace_StartRange
,lcms2
,EXTERNAL
)
29 $(call gb_ExternalProject_run
,build
,\
30 $(gb_RUN_CONFIGURE
) .
/configure
--without-jpeg
--without-tiff
--with-pic \
31 $(gb_CONFIGURE_PLATFORMS
) \
32 $(if
$(CROSS_COMPILING
),$(if
$(filter INTEL ARM
,$(CPUNAME
)),ac_cv_c_bigendian
=no
)) \
33 CPPFLAGS
=" $(SOLARINC)" \
34 CFLAGS
='$(CFLAGS) $(call gb_ExternalProject_get_build_flags,lcms2)' \
35 $(if
$(DISABLE_DYNLOADING
), \
36 --enable-static
--disable-shared \
38 --enable-shared
--disable-static \
40 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
44 $(call gb_Trace_EndRange
,lcms2
,EXTERNAL
)
46 # vim: set noet sw=4 ts=4: