Kaydet (Commit) 27eec46e authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

introduce gb_Helper_OUTDIRLIBDIR

üst ff04ef4e
......@@ -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:
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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)
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment