Version 4.0.0.1, tag libreoffice-4.0.0.1
[LibreOffice.git] / expat / StaticLibrary_expat.mk
blob2501d72dbc7e0eb9add814864f9ebab194f8a907
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 $(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: