Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'source/nan_definitions.mk')
-rw-r--r--source/nan_definitions.mk71
1 files changed, 24 insertions, 47 deletions
diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk
index f7bcd47930c..b9e623ed4e4 100644
--- a/source/nan_definitions.mk
+++ b/source/nan_definitions.mk
@@ -1,5 +1,6 @@
# -*- mode: gnumakefile; tab-width: 8; indent-tabs-mode: t; -*-
# vim: tabstop=8
+#
# $Id$
#
# ***** BEGIN GPL LICENSE BLOCK *****
@@ -32,14 +33,25 @@
sinclude ../user-def.mk
+# This warning only takes place once in source/
+ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
+ ifeq (all, $(findstring all, $(MAKECMDGOALS)))
+ export ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
+ export ERRTXT += "Use something like ..make all && make debug.. instead"
+ endif
+endif
+
+ifdef ERRTXT
+$(error $(ERRTXT))
+endif
+
ifndef CONFIG_GUESS
ifeq (debug, $(findstring debug, $(MAKECMDGOALS)))
- ifeq (all, $(findstring all, $(MAKECMDGOALS)))
-all debug::
- ERRTXT = "ERROR: all and debug targets cannot be used together anymore"
- ERRTXT += "Use something like ..make all && make debug.. instead"
- $(error $(ERRTXT))
- endif
+ export DEBUG_DIR = debug/
+ export ALL_OR_DEBUG = debug
+ endif
+ ifeq (all, $(findstring all, $(MAKECMDGOALS)))
+ export ALL_OR_DEBUG ?= all
endif
# First generic defaults for all platforms which should be constant.
@@ -94,26 +106,19 @@ endif
export NAN_ACTION ?= $(LCGDIR)/action
export NAN_GHOST ?= $(LCGDIR)/ghost
export NAN_TEST_VERBOSITY ?= 1
- export NAN_BMFONT ?= $(LCGDIR)/bmfont
export NAN_OPENNL ?= $(LCGDIR)/opennl
export NAN_ELBEEM ?= $(LCGDIR)/elbeem
export NAN_SUPERLU ?= $(LCGDIR)/superlu
export NAN_GLEW ?= $(LCGDIR)/glew
ifeq ($(FREE_WINDOWS), true)
- export NAN_FTGL ?= $(LCGDIR)/gcc/ftgl
export NAN_FFMPEG ?= $(LCGDIR)/gcc/ffmpeg
export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavcodec.a $(NAN_FFMPEG)/lib/libavdevice.a
else
- export NAN_FTGL ?= $(LCGDIR)/ftgl
export NAN_FFMPEG ?= $(LCGDIR)/ffmpeg
export NAN_FFMPEGLIBS ?= $(NAN_FFMPEG)/lib/libavformat.a $(NAN_FFMPEG)/lib/libavcodec.a $(NAN_FFMPEG)/lib/libswscale.a $(NAN_FFMPEG)/lib/libavutil.a $(NAN_FFMPEG)/lib/libavdevice.a
endif
export NAN_FFMPEGCFLAGS ?= -I$(NAN_FFMPEG)/include -I$(NANBLENDERHOME)/extern/ffmpeg
- ifeq ($(WITH_VERSE), true)
- export NAN_VERSE ?= $(LCGDIR)/verse
- endif
-
export WITH_OPENEXR ?= true
export WITH_DDS ?= true
export WITH_OPENJPEG ?= true
@@ -164,9 +169,6 @@ endif
# l10n
#export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- #export WITH_FREETYPE2 ?= true
-
else
ifeq ($(OS),darwin)
@@ -238,9 +240,6 @@ endif
# enable l10n
export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- export WITH_FREETYPE2 ?= true
-
else
ifeq ($(OS),freebsd)
@@ -282,9 +281,6 @@ endif
# enable l10n
# export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- # export WITH_FREETYPE2 ?= true
-
else
ifeq ($(OS),irix)
@@ -292,8 +288,12 @@ endif
export HOST = $(shell /usr/bsd/hostname -s)
#export NAN_NO_KETSJI=true
export NAN_JUST_BLENDERDYNAMIC=true
- export NAN_PYTHON ?= $(LCGDIR)/python
- export NAN_PYTHON_VERSION ?= 2.3
+ export NAN_PYTHON_VERSION ?= 2.5
+ ifeq ($(IRIX_USE_GCC), true)
+ export NAN_PYTHON ?= $(LCGDIR)/python_gcc
+ else
+ export NAN_PYTHON ?= $(LCGDIR)/python
+ endif
export NAN_PYTHON_BINARY ?= $(NAN_PYTHON)/bin/python$(NAN_PYTHON_VERSION)
export NAN_PYTHON_LIB ?= $(NAN_PYTHON)/lib/python$(NAN_PYTHON_VERSION)/config/libpython$(NAN_PYTHON_VERSION).a -lpthread
export NAN_OPENAL ?= $(LCGDIR)/openal
@@ -339,9 +339,6 @@ endif
# enable l10n
export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- export WITH_FREETYPE2 ?= true
-
else
ifeq ($(OS),linux)
@@ -395,9 +392,6 @@ endif
# l10n
export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- export WITH_FREETYPE2 ?= true
-
export WITH_BINRELOC ?= true
# enable ffmpeg support
@@ -446,9 +440,6 @@ endif
# l10n
#export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- #export WITH_FREETYPE2 ?= true
-
else
ifeq ($(OS),solaris)
@@ -494,9 +485,6 @@ endif
# l10n
#export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- #export WITH_FREETYPE2 ?= true
-
else
ifeq ($(OS),windows)
@@ -553,9 +541,6 @@ endif
# l10n
export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- export WITH_FREETYPE2 ?= true
-
# enable quicktime support
# export WITH_QUICKTIME ?= true
@@ -597,9 +582,6 @@ endif
# l10n
#export INTERNATIONAL ?= true
- # enable freetype2 support for text objects
- #export WITH_FREETYPE2 ?= true
-
endif # windows + fallback
endif # solaris
endif # openbsd
@@ -616,8 +598,3 @@ ifeq ($(NAN_NO_KETSJI), true)
export NAN_JUST_BLENDERDYNAMIC=true
export NAN_NO_OPENAL=true
endif
-
-# INTERNATIONAL implies WITH_FREETYPE2
-ifeq ($(INTERNATIONAL), true)
- export WITH_FREETYPE2=true
-endif