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:
-rw-r--r--source/Makefile7
-rw-r--r--source/blender/blenkernel/intern/Makefile7
-rw-r--r--source/blender/blenlib/BLI_vfontdata.h3
-rw-r--r--source/blender/blenlib/intern/Makefile5
-rw-r--r--source/nan_definitions.mk52
-rw-r--r--source/nan_link.mk5
6 files changed, 67 insertions, 12 deletions
diff --git a/source/Makefile b/source/Makefile
index 5de25fe0070..e12c4baac4d 100644
--- a/source/Makefile
+++ b/source/Makefile
@@ -136,6 +136,13 @@ PYPLAYERLIB ?= $(PYLIB)
ifeq ($(WITH_QUICKTIME), true)
COMLIB += $(OCGDIR)/blender/blenderqt/$(DEBUG_DIR)libblenderqt.a
endif
+ ifeq ($(WITH_FREETYPE2), true)
+ ifeq ($(OS), windows)
+ COMLIB += $(NAN_FREETYPE)/lib/freetype214ST.lib
+ else
+ COMLIB += $(NAN_FREETYPE)/lib/libfreetype.a
+ endif
+ endif
ifeq ($(INTERNATIONAL), true)
COMLIB += $(OCGDIR)/blender/ftfont/$(DEBUG_DIR)libftfont.a
ifeq ($(OS), windows)
diff --git a/source/blender/blenkernel/intern/Makefile b/source/blender/blenkernel/intern/Makefile
index eeaa4c57463..2cb1f91634a 100644
--- a/source/blender/blenkernel/intern/Makefile
+++ b/source/blender/blenkernel/intern/Makefile
@@ -58,8 +58,6 @@ CPPFLAGS += -I../../bpython/include
CPPFLAGS += -I../../avi
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
-CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
-
# we still refer to /include a bit...
CPPFLAGS += -I../../include
@@ -74,3 +72,8 @@ CPPFLAGS += -I$(NAN_IKSOLVER)/include
# path to our own external headerfiles
CPPFLAGS += -I..
+ifdef WITH_FREETYPE2
+ CPPFLAGS += -DWITH_FREETYPE2
+ CPPFLAGS += -I$(NAN_FREETYPE)/include
+ CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
+endif
diff --git a/source/blender/blenlib/BLI_vfontdata.h b/source/blender/blenlib/BLI_vfontdata.h
index b6ec749b50a..6485a0aa48e 100644
--- a/source/blender/blenlib/BLI_vfontdata.h
+++ b/source/blender/blenlib/BLI_vfontdata.h
@@ -63,7 +63,6 @@ typedef struct VFontData {
BLI_vfontdata_from_psfont(
struct PackedFile *pf);
-#ifdef WITH_FREETYPE2
/**
* Construct a new VFontData structure from
* Freetype font data in a PackedFile.
@@ -77,5 +76,3 @@ BLI_vfontdata_from_freetypefont(
struct PackedFile *pf);
#endif
-#endif
-
diff --git a/source/blender/blenlib/intern/Makefile b/source/blender/blenlib/intern/Makefile
index 626f30d9201..9067b98d270 100644
--- a/source/blender/blenlib/intern/Makefile
+++ b/source/blender/blenlib/intern/Makefile
@@ -49,5 +49,10 @@ CPPFLAGS += -I..
# path to the guarded memory allocator
CPPFLAGS += -I$(NAN_GUARDEDALLOC)/include
# path to freetype font stuff
+CPPFLAGS += -I$(NAN_FREETYPE)/include
CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
CPPFLAGS += -I../../include/
+
+ifdef WITH_FREETYPE2
+ CPPFLAGS += -DWITH_FREETYPE2
+endif
diff --git a/source/nan_definitions.mk b/source/nan_definitions.mk
index 9072f07c5b2..1b0da5f8ffe 100644
--- a/source/nan_definitions.mk
+++ b/source/nan_definitions.mk
@@ -114,6 +114,12 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # l10n
+ #export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
+
else
ifeq ($(OS),darwin)
@@ -156,6 +162,9 @@ all debug::
# enable l10n
export INTERNATIONAL ?= true
+ # enable freetype2 support for text objects
+ export WITH_FREETYPE2 ?= true
+
else
ifeq ($(OS),freebsd)
@@ -179,7 +188,6 @@ all debug::
export NAN_FREETYPE ?= $(LCGDIR)/freetype
export NAN_GETTEXT ?= $(LCGDIR)/gettext
-
# Uncomment the following line to use Mozilla inplace of netscape
# CPPFLAGS +=-DMOZ_NOT_NET
# Location of MOZILLA/Netscape header files...
@@ -192,6 +200,12 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # enable l10n
+ export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ export WITH_FREETYPE2 ?= true
+
else
ifeq ($(OS),irix)
@@ -227,6 +241,12 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # enable l10n
+ #export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
+
else
ifeq ($(OS),linux)
@@ -262,9 +282,13 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
- #i10n
+ # l10n
#export INTERNATIONAL ?= true
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
+
+
else
ifeq ($(OS),openbsd)
@@ -301,6 +325,12 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # l10n
+ #export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
+
else
ifeq ($(OS),solaris)
@@ -336,6 +366,12 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # l10n
+ #export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
+
else
ifeq ($(OS),windows)
@@ -372,6 +408,12 @@ all debug::
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+ # l10n
+ #export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
+
else # Platform not listed above
export NAN_PYTHON ?= $(LCGDIR)/python
@@ -404,6 +446,12 @@ all debug::
export NAN_BUILDINFO ?= true
# Be paranoid regarding library creation (do not update archives)
export NAN_PARANOID ?= true
+
+ # l10n
+ #export INTERNATIONAL ?= true
+
+ # enable freetype2 support for text objects
+ #export WITH_FREETYPE2 ?= true
endif
endif
endif
diff --git a/source/nan_link.mk b/source/nan_link.mk
index d23de1de998..1006bf6d9dd 100644
--- a/source/nan_link.mk
+++ b/source/nan_link.mk
@@ -37,11 +37,6 @@ ifdef NAN_DEBUG
LDFLAGS += $(NAN_DEBUG)
endif
-ifdef WITH_FREETYPE2
- LDFLAGS += -L$(NAN_FREETYPE)/lib -lfreetype
-endif
-
-
DBG_LDFLAGS += -g
ifneq (x$(DEBUG_DIR), x)