diff options
author | David Tardon <dtardon@redhat.com> | 2012-10-10 13:50:20 +0200 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2012-10-10 17:26:54 +0200 |
commit | 76987f83c84b4cc7163f9065a7eed219eefa39a1 (patch) | |
tree | 77c9a9e811518e0df0b57bbd3978a3a90035f5e5 /cppuhelper | |
parent | 3e86d0b174ba08d62a9f9009ca4eeac24f7c1aa9 (diff) |
replace findsofficepath.obj by static lib
Change-Id: I652ac46aec72a92667995353efa637f0a2310672
Diffstat (limited to 'cppuhelper')
-rw-r--r-- | cppuhelper/Library_cppuhelper.mk | 8 | ||||
-rw-r--r-- | cppuhelper/Module_cppuhelper.mk | 2 | ||||
-rw-r--r-- | cppuhelper/Package_findsofficepath.mk | 34 | ||||
-rw-r--r-- | cppuhelper/StaticLibrary_findsofficepath.mk | 21 |
4 files changed, 24 insertions, 41 deletions
diff --git a/cppuhelper/Library_cppuhelper.mk b/cppuhelper/Library_cppuhelper.mk index 59020c27ef96..9a761276e46b 100644 --- a/cppuhelper/Library_cppuhelper.mk +++ b/cppuhelper/Library_cppuhelper.mk @@ -29,10 +29,6 @@ $(eval $(call gb_Library_Library,cppuhelper)) $(eval $(call gb_Library_set_soversion_script,cppuhelper,3,$(SRCDIR)/cppuhelper/source/gcc3.map)) -$(eval $(call gb_Library_use_packages,cppuhelper,\ - cppuhelper_inc \ -)) - $(eval $(call gb_Library_use_internal_comprehensive_api,cppuhelper,\ cppuhelper \ udkapi \ @@ -51,8 +47,8 @@ $(eval $(call gb_Library_use_libraries,cppuhelper,\ $(gb_UWINAPI) \ )) -$(eval $(call gb_Library_add_cobjects,cppuhelper,\ - cppuhelper/source/findsofficepath \ +$(eval $(call gb_Library_use_static_libraries,cppuhelper,\ + findsofficepath \ )) $(eval $(call gb_Library_add_exception_objects,cppuhelper,\ diff --git a/cppuhelper/Module_cppuhelper.mk b/cppuhelper/Module_cppuhelper.mk index 1fd498b1ba2e..b28a8634fbba 100644 --- a/cppuhelper/Module_cppuhelper.mk +++ b/cppuhelper/Module_cppuhelper.mk @@ -31,9 +31,9 @@ $(eval $(call gb_Module_add_targets,cppuhelper,\ CustomTarget_cppuhelper_allheaders \ InternalUnoApi_cppuhelper \ Library_cppuhelper \ - Package_findsofficepath \ Package_inc \ Package_unorc \ + StaticLibrary_findsofficepath \ )) $(eval $(call gb_Module_add_check_targets,cppuhelper,\ diff --git a/cppuhelper/Package_findsofficepath.mk b/cppuhelper/Package_findsofficepath.mk deleted file mode 100644 index b3b0e90264bd..000000000000 --- a/cppuhelper/Package_findsofficepath.mk +++ /dev/null @@ -1,34 +0,0 @@ -# -*- Mode: makefile; tab-width: 4; indent-tabs-mode: t -*- -# -# Version: MPL 1.1 / GPLv3+ / LGPLv3+ -# -# The contents of this file are subject to the Mozilla Public License Version -# 1.1 (the "License"); you may not use this file except in compliance with -# the License or as specified alternatively below. You may obtain a copy of -# the License at http://www.mozilla.org/MPL/ -# -# Software distributed under the License is distributed on an "AS IS" basis, -# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License -# for the specific language governing rights and limitations under the -# License. -# -# Major Contributor(s): -# Copyright (C) 2011 Matúš Kukan <matus.kukan@gmail.com> (initial developer) -# -# All Rights Reserved. -# -# For minor contributions see the git repository. -# -# Alternatively, the contents of this file may be used under the terms of -# either the GNU General Public License Version 3 or later (the "GPLv3+"), or -# the GNU Lesser General Public License Version 3 or later (the "LGPLv3+"), -# in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable -# instead of those above. - -# UGLY HACK for odk/source/unoapploader/ where we need findsofficepath.o -$(eval $(call gb_Package_Package,cppuhelper_findsofficepath,$(WORKDIR)/CObject/cppuhelper/source)) - -$(eval $(call gb_Package_add_file,cppuhelper_findsofficepath,lib/findsofficepath.o,findsofficepath.o)) -$(eval $(call gb_Package_add_file,cppuhelper_findsofficepath,lib/findsofficepath.obj,findsofficepath.o)) - -# vim: set noet sw=4 ts=4: diff --git a/cppuhelper/StaticLibrary_findsofficepath.mk b/cppuhelper/StaticLibrary_findsofficepath.mk new file mode 100644 index 000000000000..a33c13afc11a --- /dev/null +++ b/cppuhelper/StaticLibrary_findsofficepath.mk @@ -0,0 +1,21 @@ +# -*- 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/. +# + +$(eval $(call gb_StaticLibrary_StaticLibrary,findsofficepath)) + +$(eval $(call gb_StaticLibrary_use_packages,findsofficepath,\ + cppuhelper_inc \ + sal_inc \ +)) + +$(eval $(call gb_StaticLibrary_add_cobjects,findsofficepath,\ + cppuhelper/source/findsofficepath \ +)) + +# vim: set noet sw=4 ts=4: |