[Libreoffice-commits] .: tools/Executable_mkunroll.mk tools/Executable_rscdep.mk tools/StaticLibrary_ooopathutils.mk tools/StaticLibrary_toolshelpers.mk
Bjoern Michaelsen
bmichaelsen at kemper.freedesktop.org
Sat Apr 16 06:51:55 PDT 2011
tools/Executable_mkunroll.mk | 10 ++---
tools/Executable_rscdep.mk | 8 ++--
tools/StaticLibrary_toolshelpers.mk | 62 ++++++++++++++++++++++++++++++++++++
3 files changed, 70 insertions(+), 10 deletions(-)
New commits:
commit 50ad91f0d54534c741f99609672a7a880163cf68
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date: Sat Apr 16 15:50:35 2011 +0200
introduce toolshelpers static lib to avoid duplicate linking errors
diff --git a/tools/Executable_mkunroll.mk b/tools/Executable_mkunroll.mk
index 16cc39f..fb3662c 100644
--- a/tools/Executable_mkunroll.mk
+++ b/tools/Executable_mkunroll.mk
@@ -46,14 +46,12 @@ $(eval $(call gb_Executable_add_linked_libs,mkunroll,\
$(gb_STDLIBS) \
))
-# used to link against basegfxlx comphelp4gcc3 i18nisolang1gcc3 ucbhelper4gcc3 uno_cppu uno_cppuhelpergcc3 uno_salhelpergcc3 - seems to be superficial
-
$(eval $(call gb_Executable_add_exception_objects,mkunroll,\
tools/bootstrp/addexes2/mkfilt \
- tools/bootstrp/appdef \
- tools/bootstrp/cppdep \
- tools/bootstrp/inimgr \
- tools/bootstrp/prj \
+))
+
+$(eval $(call gb_Executable_add_linked_static_libs,rscdep,\
+ toolshelpers \
))
# vim: set noet sw=4 ts=4:
diff --git a/tools/Executable_rscdep.mk b/tools/Executable_rscdep.mk
index f12a092..87c4b37 100644
--- a/tools/Executable_rscdep.mk
+++ b/tools/Executable_rscdep.mk
@@ -46,13 +46,13 @@ $(eval $(call gb_Executable_add_linked_libs,rscdep,\
))
$(eval $(call gb_Executable_add_exception_objects,rscdep,\
- tools/bootstrp/appdef \
- tools/bootstrp/cppdep \
- tools/bootstrp/inimgr \
- tools/bootstrp/prj \
tools/bootstrp/rscdep \
))
+$(eval $(call gb_Executable_add_linked_static_libs,rscdep,\
+ toolshelpers \
+))
+
ifeq ($(OS),WNT)
ifeq ($(HAVE_GETOPT),YES)
$(eval $(call gb_Executable_set_cxxflags,rscdep,\
diff --git a/tools/StaticLibrary_ooopathutils.mk b/tools/StaticLibrary_ooopathutils.mk
old mode 100755
new mode 100644
diff --git a/tools/StaticLibrary_toolshelpers.mk b/tools/StaticLibrary_toolshelpers.mk
new file mode 100644
index 0000000..b7c4796
--- /dev/null
+++ b/tools/StaticLibrary_toolshelpers.mk
@@ -0,0 +1,62 @@
+# 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.
+#
+# The Initial Developer of the Original Code is
+# Bjoern Michaelsen, Canonical Ltd. <bjoern.michaelsen at canonical.com>
+# Portions created by the Initial Developer are Copyright (C) 2010 the
+# Initial Developer. All Rights Reserved.
+#
+# Major Contributor(s):
+#
+# 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.
+
+$(eval $(call gb_StaticLibrary_StaticLibrary,toolshelpers))
+
+$(eval $(call gb_StaticLibrary_set_include,toolshelpers,\
+ $$(INCLUDE) \
+ -I$(realpath $(SRCDIR)/tools/inc) \
+ -I$(realpath $(SRCDIR)/tools/inc/pch) \
+ -I$(realpath $(SRCDIR)/tools/bootstrp) \
+))
+
+$(eval $(call gb_StaticLibrary_set_cxxflags,toolshelpers,\
+ $$(CXXFLAGS) \
+ -D_TOOLS_STRINGLIST \
+))
+
+$(eval $(call gb_StaticLibrary_add_exception_objects,toolshelpers,\
+ tools/bootstrp/appdef \
+ tools/bootstrp/cppdep \
+ tools/bootstrp/inimgr \
+ tools/bootstrp/prj \
+))
+
+ifeq ($(OS),WNT)
+ifeq ($(HAVE_GETOPT),YES)
+$(eval $(call gb_StaticLibrary_set_cxxflags,toolshelpers,\
+ $$(CXXFLAGS) \
+ -DHAVE_GETOPT \
+))
+else
+$(eval $(call gb_StaticLibrary_add_linked_libs,toolshelpers,\
+ gnu_getopt \
+))
+endif
+endif
+
+# vim: set noet sw=4 ts=4:
More information about the Libreoffice-commits
mailing list