fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / cairo / ExternalProject_pixman.mk
blob8eb7d8ce94986b43d4ecf97afd3fcba3752b2ee7
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,\
13 build \
16 ifeq ($(OS)$(COM),WNTMSC)
18 $(call gb_ExternalProject_get_state_target,pixman,build) :
19 $(call gb_ExternalProject_run,build,\
20 $(MAKE) -f Makefile.win32 MMX=on SSE2=on CFG=release \
21 ,pixman)
23 else
25 # ANDROID:
26 # The pixman-cpu.c code wants to read /proc/<pid>/auxv, but
27 # the Android headers don't define Elf32_auxv_t.
29 # Maybe we should instead just patch the arm_has_* booleans in
30 # pixman-cpu.c to be hardcoded as TRUE and patch out the run-time
31 # check?
32 $(call gb_ExternalProject_get_state_target,pixman,build) :
33 $(call gb_ExternalProject_run,build,\
34 ./configure \
35 $(if $(filter MACOSX IOS,$(OS)),--disable-shared,--disable-static) \
36 $(if $(filter ANDROID,$(OS)),--disable-arm-simd --disable-arm-neon --disable-arm-iwmmxt) \
37 $(if $(CROSS_COMPILING),--build=$(BUILD_PLATFORM) --host=$(HOST_PLATFORM)) \
38 && $(MAKE) \
41 endif
43 # vim: set noet sw=4 ts=4: