fix baseline build (old cairo) - 'cairo_rectangle_int_t' does not name a type
[LibreOffice.git] / external / expat / StaticLibrary_expat.mk
blob2f754526b6e93021e2dfe52bf38bcf131054f886
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_StaticLibrary_StaticLibrary,expat))
12 $(eval $(call gb_StaticLibrary_set_warnings_not_errors,expat))
14 $(eval $(call gb_StaticLibrary_use_unpacked,expat,expat))
16 # no configure step on windows, no dependency
17 ifneq ($(OS)$(COM),WNTMSC)
18 $(eval $(call gb_StaticLibrary_use_external_project,expat,expat))
19 endif
21 $(eval $(call gb_StaticLibrary_set_include,expat,\
22 -I$(call gb_UnpackedTarball_get_dir,expat) \
23 $$(INCLUDE) \
26 ifeq ($(OS),MACOSX)
27 ifneq ($(strip $(SYSBASE)),)
28 $(eval $(call gb_StaticLibrary_add_defs,expat,\
29 -DHAVE_MEMMOVE \
30 -DHAVE_BCOPY \
32 endif
33 endif
35 ifeq ($(OS),WNT)
36 $(eval $(call gb_StaticLibrary_add_defs,expat,\
37 -DCOMPILED_FROM_DSP \
39 else
40 $(eval $(call gb_StaticLibrary_add_defs,expat,\
41 -DHAVE_EXPAT_CONFIG_H \
43 endif
45 # suppress warning spam
46 $(eval $(call gb_StaticLibrary_add_cflags,expat,\
47 -w \
50 $(eval $(call gb_StaticLibrary_add_generated_cobjects,expat,\
51 UnpackedTarball/expat/lib/xmlparse \
52 UnpackedTarball/expat/lib/xmlrole \
53 UnpackedTarball/expat/lib/xmltok \
56 # vim: set noet sw=4 ts=4: