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 $(if
$(filter 140,$(VCVER
)),$(DEVENV
) /Upgrade lcms2_DLL.vcxproj
,echo up-to-date
) && \
21 MSBuild.exe lcms2_DLL.vcxproj \
22 $(if
$(filter 140,$(VCVER
)),/p
:PlatformToolset
=v140
,/p
:PlatformToolset
=v120
) \
23 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
24 /p
:Platform
=$(if
$(filter INTEL
,$(CPUNAME
)),Win32
,x64
) /p
:TargetName
=lcms2 \
25 ,Projects
/VC2013
/lcms2_DLL
)
27 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
28 $(call gb_ExternalProject_run
,build
,\
29 .
/configure
--without-jpeg
--without-tiff
--with-pic \
30 $(if
$(CROSS_COMPILING
),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
) \
31 $(if
$(filter INTEL ARM
,$(CPUNAME
)),ac_cv_c_bigendian
=no
)) \
32 CPPFLAGS
=" $(SOLARINC)" \
33 CFLAGS
='$(CFLAGS) $(if $(debug),$(gb_DEBUGINFO_FLAGS) $(gb_DEBUG_CFLAGS),$(gb_COMPILEROPTFLAGS))' \
34 $(if
$(filter-out WNTGCC
,$(OS
)$(COM
)),,CPPFLAGS
=" -DCMS_DLL_BUILD") \
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: