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
,libjpeg-turbo
))
12 $(eval
$(call gb_ExternalProject_use_autoconf
,libjpeg-turbo
,configure
))
13 $(eval
$(call gb_ExternalProject_use_autoconf
,libjpeg-turbo
,build
))
15 $(eval
$(call gb_ExternalProject_register_targets
,libjpeg-turbo
,\
20 $(call gb_ExternalProject_get_state_target
,libjpeg-turbo
,build
) : $(call gb_ExternalProject_get_state_target
,libjpeg-turbo
,configure
)
21 $(call gb_Trace_StartRange
,libjpeg-turbo
,EXTERNAL
)
22 +$(call gb_ExternalProject_run
,build
,\
25 $(call gb_Trace_EndRange
,libjpeg-turbo
,EXTERNAL
)
27 $(call gb_ExternalProject_get_state_target
,libjpeg-turbo
,configure
) :
28 $(call gb_Trace_StartRange
,libjpeg-turbo
,EXTERNAL
)
29 $(call gb_ExternalProject_run
,configure
,\
30 MAKE
=$(MAKE
) .
/configure \
31 --build
=$(BUILD_PLATFORM
) \
32 --host
=$(HOST_PLATFORM
) \
38 $(if
$(NASM
),,--without-simd
) \
39 CFLAGS
='$(if $(debug),$(gb_DEBUGINFO_FLAGS)) $(if $(ENABLE_OPTIMIZED),$(gb_COMPILEROPTFLAGS),$(gb_COMPILERNOOPTFLAGS)) $(CFLAGS) $(gb_VISIBILITY_FLAGS)' \
41 $(call gb_Trace_EndRange
,libjpeg-turbo
,EXTERNAL
)
43 # vim: set noet sw=4 ts=4: