Skip to content
Snippets Groups Projects
Commit 8c4608bb authored by Kent Mein's avatar Kent Mein
Browse files

I updated the FREETYPE2 checks so it didn't build freetype stuff
if WITH_FREETYPE2 was set to false.

Also added/cleaned up source/nan_compile.mk NAN_NOKETSJI stuff a hair.

Kent
parent f24c823f
No related branches found
No related tags found
No related merge requests found
...@@ -34,7 +34,11 @@ include nan_definitions.mk ...@@ -34,7 +34,11 @@ include nan_definitions.mk
SOURCEDIR = extern SOURCEDIR = extern
DIR = $(OCGDIR)/extern DIR = $(OCGDIR)/extern
DIRS = qhull/src solid bFTGL/src DIRS = qhull/src solid
ifeq ($(WITH_FREETYPE2), true)
DIRS += bFTGL/src
endif
TARGET = TARGET =
ifneq ($(OS),irix) ifneq ($(OS),irix)
......
...@@ -72,7 +72,7 @@ CPPFLAGS += -I$(NAN_IKSOLVER)/include ...@@ -72,7 +72,7 @@ CPPFLAGS += -I$(NAN_IKSOLVER)/include
# path to our own external headerfiles # path to our own external headerfiles
CPPFLAGS += -I.. CPPFLAGS += -I..
ifdef WITH_FREETYPE2 ifeq ($(WITH_FREETYPE2), true)
CPPFLAGS += -DWITH_FREETYPE2 CPPFLAGS += -DWITH_FREETYPE2
CPPFLAGS += -I$(NAN_FREETYPE)/include CPPFLAGS += -I$(NAN_FREETYPE)/include
CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2 CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
......
...@@ -55,6 +55,6 @@ CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2 ...@@ -55,6 +55,6 @@ CPPFLAGS += -I$(NAN_FREETYPE)/include/freetype2
CPPFLAGS += -I$(SRCHOME)/blender/blenkernel CPPFLAGS += -I$(SRCHOME)/blender/blenkernel
CPPFLAGS += -I../../include/ CPPFLAGS += -I../../include/
ifdef WITH_FREETYPE2 ifeq ($(WITH_FREETYPE2), true)
CPPFLAGS += -DWITH_FREETYPE2 CPPFLAGS += -DWITH_FREETYPE2
endif endif
...@@ -38,9 +38,13 @@ CPPFLAGS ?= $(NAN_CPPFLAGS) ...@@ -38,9 +38,13 @@ CPPFLAGS ?= $(NAN_CPPFLAGS)
# common parts --------------------------------------------------- # common parts ---------------------------------------------------
# Uncomment next lines to enable integrated game engine # Uncomment next lines to enable integrated game engine
CFLAGS += -DGAMEBLENDER=1 ifneq ($(NAN_NO_KETSJI), true)
CFLAGS += -DUSE_SUMO_SOLID CFLAGS += -DGAMEBLENDER=1
CCFLAGS += -DUSE_SUMO_SOLID CFLAGS += -DUSE_SUMO_SOLID
CCFLAGS += -DUSE_SUMO_SOLID
else
CPPFLAGS += -DNO_KETSJI
endif
ifdef NAN_DEBUG ifdef NAN_DEBUG
CFLAGS += $(NAN_DEBUG) CFLAGS += $(NAN_DEBUG)
...@@ -52,12 +56,6 @@ REL_CCFLAGS += -DNDEBUG ...@@ -52,12 +56,6 @@ REL_CCFLAGS += -DNDEBUG
DBG_CFLAGS += -g DBG_CFLAGS += -g
DBG_CCFLAGS += -g DBG_CCFLAGS += -g
# Is the game engine getting you down? ---------------------------------
ifeq ($(NAN_NO_KETSJI), true)
CPPFLAGS += -DNO_KETSJI
endif
# Support for new transform code --------------------------------------- # Support for new transform code ---------------------------------------
ifeq ($(NAN_NEW_TRANSFORM), true) ifeq ($(NAN_NEW_TRANSFORM), true)
CPPFLAGS += -DNEWTRANSFORM CPPFLAGS += -DNEWTRANSFORM
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment