diff options
author | Matúš Kukan <matus.kukan@gmail.com> | 2012-02-24 23:34:58 +0100 |
---|---|---|
committer | Matúš Kukan <matus.kukan@gmail.com> | 2012-02-25 13:10:43 +0100 |
commit | 7e454a3e3dc7f7f85a623ab6a7afab6f40bccaa6 (patch) | |
tree | 9f4f79d31b5161c809f9a026e2abd315ebd87b14 /solenv/gbuild | |
parent | 66fdc38fb71e69669d09ff2f05656e5d654d4975 (diff) |
gbuild_simple: add gb_Python and include also Tempfile here
Diffstat (limited to 'solenv/gbuild')
-rw-r--r-- | solenv/gbuild/gbuild_simple.mk | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/solenv/gbuild/gbuild_simple.mk b/solenv/gbuild/gbuild_simple.mk index 3f7ba29bfb15..b05cb8c8195c 100644 --- a/solenv/gbuild/gbuild_simple.mk +++ b/solenv/gbuild/gbuild_simple.mk @@ -77,8 +77,26 @@ gb_SYMBOL := $(true) endif include $(GBUILDDIR)/Helper.mk +include $(GBUILDDIR)/Tempfile.mk # Include platform/cpu/compiler specific config/definitions include $(GBUILDDIR)/platform/$(OS)_$(CPUNAME)_$(COM).mk +ifeq ($(SYSTEM_PYTHON),YES) +gb_PYTHONTARGET := +gb_PYTHON := $(PYTHON) +else ifeq ($(OS),MACOSX) +#fixme: remove this MACOSX ifeq branch by filling in gb_PYTHON_PRECOMMAND in +#gbuild/platform/macosx.mk correctly for mac, e.g. PYTHONPATH and PYTHONHOME +#dirs for in-tree internal python +gb_PYTHONTARGET := +gb_PYTHON := $(PYTHON) +else ifeq ($(DISABLE_PYTHON),TRUE) +# Build-time python +gb_PYTHON := python +else +gb_PYTHONTARGET := $(OUTDIR)/bin/python +gb_PYTHON := $(gb_PYTHON_PRECOMMAND) $(gb_PYTHONTARGET) +endif + # vim: set noet sw=4 ts=4: |