1#************************************************************************* 2# 3# DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 4# 5# Copyright 2000, 2010 Oracle and/or its affiliates. 6# 7# OpenOffice.org - a multi-platform office productivity suite 8# 9# This file is part of OpenOffice.org. 10# 11# OpenOffice.org is free software: you can redistribute it and/or modify 12# it under the terms of the GNU Lesser General Public License version 3 13# only, as published by the Free Software Foundation. 14# 15# OpenOffice.org is distributed in the hope that it will be useful, 16# but WITHOUT ANY WARRANTY; without even the implied warranty of 17# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 18# GNU Lesser General Public License version 3 for more details 19# (a copy is included in the LICENSE file that accompanied this code). 20# 21# You should have received a copy of the GNU Lesser General Public License 22# version 3 along with OpenOffice.org. If not, see 23# <http://www.openoffice.org/license.html> 24# for a copy of the LGPLv3 License. 25# 26#************************************************************************* 27 28$(eval $(call gb_StaticLibrary_StaticLibrary,ooopathutils)) 29 30$(eval $(call gb_StaticLibrary_add_package_headers,ooopathutils,tools_inc)) 31 32$(eval $(call gb_StaticLibrary_add_exception_objects,ooopathutils,\ 33 tools/source/misc/pathutils \ 34)) 35 36 37# HACK for now 38# We really should fix the clients of this to link against the static library 39# Instead of this evil linking of an object from $(OUTDIR) 40define StaticLibrary_ooopathutils_hack 41$(call gb_StaticLibrary_get_target,ooopathutils) : $(OUTDIR)/lib/$(1) 42$$(eval $$(call gb_Deliver_add_deliverable,$(OUTDIR)/lib/$(1),$(call gb_CxxObject_get_target,tools/source/misc/pathutils))) 43 44$(OUTDIR)/lib/$(1) : $(call gb_CxxObject_get_target,tools/source/misc/pathutils) 45 $$(call gb_Deliver_deliver,$$<,$$@) 46 47endef 48 49ifeq ($(OS),WNT) 50$(eval $(call StaticLibrary_ooopathutils_hack,pathutils-obj.obj)) 51else 52$(eval $(call StaticLibrary_ooopathutils_hack,pathutils-obj.o)) 53endif 54# vim: set noet sw=4 ts=4: 55