2012-10-12 14:28:11 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
|
|
|
# This file is part of the LibreOffice project.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
|
|
|
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_StaticLibrary,expat))
|
2012-10-12 14:28:11 -05:00
|
|
|
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_set_warnings_not_errors,expat))
|
2012-10-12 14:28:11 -05:00
|
|
|
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_use_unpacked,expat,expat))
|
2012-10-12 14:28:11 -05:00
|
|
|
|
|
|
|
# no configure step on windows, no dependency
|
|
|
|
ifneq ($(OS)$(COM),WNTMSC)
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_use_external_project,expat,expat))
|
2012-10-12 14:28:11 -05:00
|
|
|
endif
|
|
|
|
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_set_include,expat,\
|
2012-10-12 14:28:11 -05:00
|
|
|
-I$(call gb_UnpackedTarball_get_dir,expat) \
|
|
|
|
$$(INCLUDE) \
|
|
|
|
))
|
|
|
|
|
|
|
|
ifeq ($(OS),MACOSX)
|
|
|
|
ifneq ($(strip $(SYSBASE)),)
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_add_defs,expat,\
|
2012-10-12 14:28:11 -05:00
|
|
|
-DHAVE_MEMMOVE \
|
|
|
|
-DHAVE_BCOPY \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
endif
|
|
|
|
|
|
|
|
ifeq ($(OS),WNT)
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_add_defs,expat,\
|
2012-10-12 14:28:11 -05:00
|
|
|
-DCOMPILED_FROM_DSP \
|
|
|
|
))
|
|
|
|
else
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_add_defs,expat,\
|
2012-10-12 14:28:11 -05:00
|
|
|
-DHAVE_EXPAT_CONFIG_H \
|
|
|
|
))
|
|
|
|
endif
|
|
|
|
|
2012-11-14 13:43:57 -06:00
|
|
|
$(eval $(call gb_StaticLibrary_add_generated_cobjects,expat,\
|
|
|
|
UnpackedTarball/expat/lib/xmlparse \
|
2012-10-12 14:28:11 -05:00
|
|
|
UnpackedTarball/expat/lib/xmlrole \
|
2012-11-14 13:43:57 -06:00
|
|
|
UnpackedTarball/expat/lib/xmltok \
|
2012-10-12 14:28:11 -05:00
|
|
|
))
|
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|