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 /p
:Configuration
=$(if
$(MSVC_USE_DEBUG_RUNTIME
),Debug
,Release
) \
22 /p
:Platform
=Win32
/p
:TargetName
=lcms2 \
23 $(if
$(filter 110,$(VCVER
)),/p
:PlatformToolset
=v110
/p
:VisualStudioVersion
=11.0) \
24 ,Projects
/VC2010
/lcms2_DLL
)
26 $(call gb_ExternalProject_get_state_target
,lcms2
,build
):
27 $(call gb_ExternalProject_run
,build
,\
28 .
/configure
--without-jpeg
--without-tiff
--with-pic \
29 $(if
$(filter YES
,$(CROSS_COMPILING
)),--build
=$(BUILD_PLATFORM
) --host
=$(HOST_PLATFORM
)) \
30 CPPFLAGS
=" $(SOLARINC)" \
31 $(if
$(filter-out WNTGCC
,$(OS
)$(COM
)),,CPPFLAGS
=" -DCMS_DLL_BUILD") \
32 $(if
$(filter IOS ANDROID
,$(OS
)), --disable-shared
--enable-static
, --enable-shared
--disable-static
) \
33 $(if
$(filter MACOSX
,$(OS
)),--prefix=/@.__________________________________________________OOO
) \
38 # vim: set noet sw=4 ts=4: