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_use_unpacked
,lcms2
,lcms2
))
14 $(eval
$(call gb_ExternalProject_register_targets
,lcms2
,\
20 ifeq ($(filter-out 14 13,$(COMEX
)),)
21 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
22 cd
$(EXTERNAL_WORKDIR
)/Projects
/VC2010
/lcms2_DLL \
23 && MSBuild.exe lcms2_DLL.vcxproj
/p
:Configuration
=Release
/p
:Platform
=Win32
/p
:TargetName
=lcms2 \
24 $(if
$(filter 14,$(COMEX
)),/p
:PlatformToolset
=v110
) \
27 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
28 cd
$(EXTERNAL_WORKDIR
)/Projects
/VC2008
/lcms2_DLL \
29 && $(COMPATH
)/vcpackages
/vcbuild.exe lcms2_DLL.vcproj
"Release|Win32" \
33 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
34 cd
$(EXTERNAL_WORKDIR
) \
35 && .
/configure
--without-jpeg
--without-tiff
--with-pic \
36 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
37 CPPFLAGS
=" $(SOLARINC)" \
38 $(if
$(filter-out WNTGCC
,$(OS
)$(COM
)),,CPPFLAGS
=" -DCMS_DLL_BUILD") \
39 $(if
$(filter IOS ANDROID
,$(OS
)), --disable-shared
--enable-static
, --enable-shared
--disable-static
) \
40 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
45 # vim: set noet sw=4 ts=4: