[Libreoffice-commits] .: solenv/gbuild

Bjoern Michaelsen bmichaelsen at kemper.freedesktop.org
Tue Oct 4 02:32:23 PDT 2011


 solenv/gbuild/Helper.mk           |    3 +++
 solenv/gbuild/Pyuno.mk            |    6 +-----
 solenv/gbuild/platform/ios.mk     |    4 +++-
 solenv/gbuild/platform/macosx.mk  |    4 +++-
 solenv/gbuild/platform/solaris.mk |    3 ++-
 solenv/gbuild/platform/unxgcc.mk  |    4 +++-
 solenv/gbuild/platform/windows.mk |    5 ++++-
 7 files changed, 19 insertions(+), 10 deletions(-)

New commits:
commit 27eec46ef7f4dfbd0d3573ab3bc3984510677b12
Author: Bjoern Michaelsen <bjoern.michaelsen at canonical.com>
Date:   Tue Oct 4 11:30:37 2011 +0200

    introduce gb_Helper_OUTDIRLIBDIR

diff --git a/solenv/gbuild/Helper.mk b/solenv/gbuild/Helper.mk
index 675ef20..22aec26 100644
--- a/solenv/gbuild/Helper.mk
+++ b/solenv/gbuild/Helper.mk
@@ -184,4 +184,7 @@ endef
 export gb_Helper_set_ld_path
 export gb_Helper_execute
 
+# gb_Helper_OUTDIRLIBDIR is set by the platform to the path the dynamic linker need to use
+# for libraries from the OUTDIR
+
 # vim: set noet sw=4 ts=4:
diff --git a/solenv/gbuild/Pyuno.mk b/solenv/gbuild/Pyuno.mk
index 2ec6821..b8eb04e 100644
--- a/solenv/gbuild/Pyuno.mk
+++ b/solenv/gbuild/Pyuno.mk
@@ -23,11 +23,7 @@
 # in which case the provisions of the GPLv3+ or the LGPLv3+ are applicable
 # instead of those above.
 
-ifeq ($(OS),WNT)
-gb_Pyuno__get_outdir_path = bin/pyuno/$(1)
-else
-gb_Pyuno__get_outdir_path = lib/pyuno/$(1)
-endif
+gb_Pyuno__get_outdir_path = $(patsubst $(OUTDIR)/%,%,$(gb_Helper_OUTDIRLIBDIR))/pyuno/$(1)
 
 $(call gb_Pyuno_get_target,%) :
 	$(call gb_Output_announce,$*,$(true),PYU,3)
diff --git a/solenv/gbuild/platform/ios.mk b/solenv/gbuild/platform/ios.mk
index 661f25d..8e260d1 100644
--- a/solenv/gbuild/platform/ios.mk
+++ b/solenv/gbuild/platform/ios.mk
@@ -135,6 +135,8 @@ define gb_Helper_convert_native
 $(1)
 endef
 
+gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/lib
+
 # YaccObject class
 
 define gb_YaccObject__command
@@ -381,7 +383,7 @@ endef
 gb_CppunitTest_CPPTESTPRECOMMAND := :
 gb_CppunitTest_SYSPRE := libtest_
 gb_CppunitTest_EXT := .dylib
-gb_CppunitTest_LIBDIR := $(OUTDIR)/lib
+gb_CppunitTest_LIBDIR := $(gb_Helper_OUTDIRLIBDIR)
 gb_CppunitTest_get_filename = $(gb_CppunitTest_SYSPRE)$(1)$(gb_CppunitTest_EXT)
 gb_CppunitTest_get_libfilename = $(gb_CppunitTest_get_filename)
 
diff --git a/solenv/gbuild/platform/macosx.mk b/solenv/gbuild/platform/macosx.mk
index ba1438a..9cf0c87 100644
--- a/solenv/gbuild/platform/macosx.mk
+++ b/solenv/gbuild/platform/macosx.mk
@@ -165,6 +165,8 @@ define gb_Helper_convert_native
 $(1)
 endef
 
+gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/lib
+
 # YaccObject class
 
 ifeq ($(CPUNAME),POWERPC)
@@ -473,7 +475,7 @@ endef
 gb_CppunitTest_CPPTESTPRECOMMAND := DYLD_LIBRARY_PATH=$(OUTDIR)/lib
 gb_CppunitTest_SYSPRE := libtest_
 gb_CppunitTest_EXT := .dylib
-gb_CppunitTest_LIBDIR := $(OUTDIR)/lib
+gb_CppunitTest_LIBDIR := $(gb_Helper_OUTDIRLIBDIR)
 gb_CppunitTest_get_filename = $(gb_CppunitTest_SYSPRE)$(1)$(gb_CppunitTest_EXT)
 gb_CppunitTest_get_libfilename = $(gb_CppunitTest_get_filename)
 
diff --git a/solenv/gbuild/platform/solaris.mk b/solenv/gbuild/platform/solaris.mk
index ad7c5cc..8bcd70e 100644
--- a/solenv/gbuild/platform/solaris.mk
+++ b/solenv/gbuild/platform/solaris.mk
@@ -142,6 +142,7 @@ define gb_Helper_convert_native
 $(1)
 endef
 
+gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/lib
 
 # CObject class
 
@@ -344,7 +345,7 @@ endef
 gb_CppunitTest_CPPTESTPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR)/lib
 gb_CppunitTest_SYSPRE := libtest_
 gb_CppunitTest_EXT := .so
-gb_CppunitTest_LIBDIR := $(OUTDIR)/lib
+gb_CppunitTest_LIBDIR := $(gb_Helper_OUTDIRLIBDIR)
 gb_CppunitTest_get_filename = $(gb_CppunitTest_SYSPRE)$(1)$(gb_CppunitTest_EXT)
 gb_CppunitTest_get_libfilename = $(gb_CppunitTest_get_filename)
 
diff --git a/solenv/gbuild/platform/unxgcc.mk b/solenv/gbuild/platform/unxgcc.mk
index e64079c..180ff5e 100644
--- a/solenv/gbuild/platform/unxgcc.mk
+++ b/solenv/gbuild/platform/unxgcc.mk
@@ -213,6 +213,8 @@ define gb_Helper_convert_native
 $(1)
 endef
 
+gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/lib
+
 # YaccObject class
 
 define gb_YaccObject__command
@@ -455,7 +457,7 @@ endef
 gb_CppunitTest_CPPTESTPRECOMMAND := LD_LIBRARY_PATH=$(OUTDIR_FOR_BUILD)/lib
 gb_CppunitTest_SYSPRE := libtest_
 gb_CppunitTest_EXT := .so
-gb_CppunitTest_LIBDIR := $(OUTDIR)/lib
+gb_CppunitTest_LIBDIR := $(gb_Helper_OUTDIRLIBDIR)
 gb_CppunitTest_get_filename = $(gb_CppunitTest_SYSPRE)$(1)$(gb_CppunitTest_EXT)
 gb_CppunitTest_get_libfilename = $(gb_CppunitTest_get_filename)
 
diff --git a/solenv/gbuild/platform/windows.mk b/solenv/gbuild/platform/windows.mk
index 8546a69..989669f 100644
--- a/solenv/gbuild/platform/windows.mk
+++ b/solenv/gbuild/platform/windows.mk
@@ -234,6 +234,7 @@ endef
 endif
 
 # Helper class
+
 gb_Helper_SRCDIR_NATIVE := $(shell cygpath -m $(SRCDIR) | $(gb_AWK) -- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
 gb_Helper_WORKDIR_NATIVE := $(shell cygpath -m $(WORKDIR) | $(gb_AWK) -- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
 gb_Helper_OUTDIR_NATIVE := $(shell cygpath -m $(OUTDIR) | $(gb_AWK) -- '{ print tolower(substr($$0,1,1)) substr($$0,2) }')
@@ -257,6 +258,8 @@ $(patsubst $(SRCDIR)%,$(gb_Helper_SRCDIR_NATIVE)%, \
 $(1)))))
 endef
 
+gb_Helper_OUTDIRLIBDIR := $(OUTDIR)/bin
+
 # YaccObject class
 
 define gb_YaccObject__command
@@ -602,7 +605,7 @@ gb_CppunitTest_CPPTESTPRECOMMAND := PATH="`cygpath -u $(OUTDIR)`/bin:$${PATH}"
 
 gb_CppunitTest_SYSPRE := itest_
 gb_CppunitTest_EXT := .lib
-gb_CppunitTest_LIBDIR := $(OUTDIR)/bin
+gb_CppunitTest_LIBDIR := $(gb_Helper_OUTDIRLIBDIR)
 gb_CppunitTest_get_filename = $(gb_CppunitTest_SYSPRE)$(1)$(gb_CppunitTest_EXT)
 gb_CppunitTest_get_libfilename = test_$(1).dll
 


More information about the Libreoffice-commits mailing list