forked from pyrite-dev/milsko
add ft2
git-svn-id: http://svn2.nishi.boats/svn/milsko/trunk@491 b9cfdab3-6d41-4d17-bbe4-086880011989
This commit is contained in:
parent
453fb8702d
commit
6a83a184d1
10 changed files with 172 additions and 23 deletions
15
GNUmakefile
15
GNUmakefile
|
|
@ -5,9 +5,13 @@ PREFIX = /usr/local
|
|||
ifeq ($(TARGET),)
|
||||
TARGET = $(shell uname -s)
|
||||
endif
|
||||
ifneq ($(TARGET),$(shell uname -s))
|
||||
CROSS = 1
|
||||
endif
|
||||
|
||||
USE_STB_IMAGE = 1
|
||||
USE_STB_TRUETYPE = 1
|
||||
USE_STB_TRUETYPE = 0
|
||||
USE_FREETYPE2 = 1
|
||||
|
||||
CC = $(GCC)gcc
|
||||
|
||||
|
|
@ -139,6 +143,15 @@ else
|
|||
include external/deps.mk
|
||||
endif
|
||||
|
||||
ifeq ($(USE_FREETYPE2),1)
|
||||
L_CFLAGS += -DUSE_FREETYPE2
|
||||
|
||||
ifneq ($(CROSS),1)
|
||||
L_CFLAGS += $(shell pkg-config --cflags freetype2)
|
||||
L_LIBS += $(shell pkg-config --libs freetype2)
|
||||
endif
|
||||
endif
|
||||
|
||||
ifeq ($(USE_STB_TRUETYPE),1)
|
||||
L_CFLAGS += -DUSE_STB_TRUETYPE
|
||||
endif
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue