Version 7.6.7.2, tag libreoffice-7.6.7.2
[LibreOffice.git] / external / expat / StaticLibrary_expat.mk
blob025ab617ad151801e9939cb9a053162415d006d1
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_disabled,expat))
14 $(eval $(call gb_StaticLibrary_use_unpacked,expat,expat))
16 # no configure step on windows, no dependency
17 ifneq ($(OS),WNT)
18 $(eval $(call gb_StaticLibrary_use_external_project,expat,expat,full))
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 $(eval $(call gb_StaticLibrary_add_generated_cobjects,expat,\
46 UnpackedTarball/expat/lib/xmlparse \
47 UnpackedTarball/expat/lib/xmlrole \
48 UnpackedTarball/expat/lib/xmltok \
51 # vim: set noet sw=4 ts=4: