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
,pixman
))
12 $(eval
$(call gb_ExternalProject_register_targets
,pixman
,\
17 # The pixman-cpu.c code wants to read /proc/<pid>/auxv, but
18 # the Android headers don't define Elf32_auxv_t.
20 # Maybe we should instead just patch the arm_has_* booleans in
21 # pixman-cpu.c to be hardcoded as TRUE and patch out the run-time
23 $(call gb_ExternalProject_get_state_target
,pixman
,build
) :
24 $(call gb_Trace_StartRange
,pixman
,EXTERNAL
)
25 $(call gb_ExternalProject_run
,build
,\
26 $(gb_RUN_CONFIGURE
) .
/configure \
27 $(if
$(filter TRUE
,$(DISABLE_DYNLOADING
)),--disable-shared
,--disable-static
) \
28 $(if
$(filter ANDROID
,$(OS
)),--disable-arm-simd
--disable-arm-neon
--disable-arm-a64-neon
--disable-arm-iwmmxt
) \
29 $(gb_CONFIGURE_PLATFORMS
) \
30 $(if
$(CROSS_COMPILING
),$(if
$(filter INTEL ARM
,$(CPUNAME
)),ac_cv_c_bigendian
=no
)) \
31 $(if
$(filter EMSCRIPTEN
,$(OS
)),CFLAGS
="-O3 -pthread -msimd128") \
34 $(call gb_Trace_EndRange
,pixman
,EXTERNAL
)
36 # vim: set noet sw=4 ts=4: