[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] GSoC-2017-kushal 6bf7bcd 12/70: Changes to makefile to use c
From: |
Kushal K S V S |
Subject: |
[freetype2] GSoC-2017-kushal 6bf7bcd 12/70: Changes to makefile to use compiled version of freetype |
Date: |
Sun, 18 Mar 2018 11:21:09 -0400 (EDT) |
branch: GSoC-2017-kushal
commit 6bf7bcd3787c61f1882013ab4a1f0070056edf49
Author: Kushal K S V S <address@hidden>
Commit: Kushal K S V S <address@hidden>
Changes to makefile to use compiled version of freetype
---
tests/make_png/README | 11 ++++++++---
tests/make_png/hashes/README | 1 +
tests/make_png/images/README | 1 +
tests/make_png/makefile | 10 ++++++----
4 files changed, 16 insertions(+), 7 deletions(-)
diff --git a/tests/make_png/README b/tests/make_png/README
index 677cf65..d30e359 100644
--- a/tests/make_png/README
+++ b/tests/make_png/README
@@ -1,6 +1,11 @@
+NOTE: First make freetype library (in the ../../ directory)
+ make devel
+ make
+
+
To generate hashes and store it in the ./hashes folder,
-1) sudo make hash
+1) make hash
(set resoluton in DPI by passing argument
example: sudo make DPI=100, if not specified,default is 72)
@@ -18,11 +23,11 @@ To generate hashes and store it in the ./hashes folder,
To generate 32-bit RGBA PNG(s) of all glyphs in a font\n
-1) sudo make png
+1) make png
(set resoluton in DPI by passing argument
example: sudo make DPI=100, if not specified,default is 72)
-2.Usage ./<exe> <font_file> <pt_size> <render_mode>
+2) Usage ./<exe> <font_file> <pt_size> <render_mode>
Images will be saved in a file named
$(font)_$(pt_size)_$(render_mode)_$(glyph_index).png
diff --git a/tests/make_png/hashes/README b/tests/make_png/hashes/README
new file mode 100644
index 0000000..9b6ab80
--- /dev/null
+++ b/tests/make_png/hashes/README
@@ -0,0 +1 @@
+This folder includes all the hashes generated
\ No newline at end of file
diff --git a/tests/make_png/images/README b/tests/make_png/images/README
new file mode 100644
index 0000000..c769f13
--- /dev/null
+++ b/tests/make_png/images/README
@@ -0,0 +1 @@
+This folder includes all the images generated
\ No newline at end of file
diff --git a/tests/make_png/makefile b/tests/make_png/makefile
index 691a6fd..506ebfb 100644
--- a/tests/make_png/makefile
+++ b/tests/make_png/makefile
@@ -4,25 +4,27 @@ SHELL = /bin/sh
SRC_HASH = hash_to_file.c bitmap.c murmur3.c
SRC_PNG = make_png.c bitmap.c murmur3.c
+SRC_LIB = ../../objs/libfreetype.a
OBJS = $(src:.c=.o)
CFLAGS = -Wall -g
CC = gcc
-INCLUDE = -I /usr/local/include/freetype2/
-LIBS = -lfreetype -lpng
+INCLUDE = -I ../../include/
+LIBS = -lpng -lharfbuzz -lbz2
DPI = 72
all: png hash
png:$(SRC_PNG)
- $(CC) $(CFLAGS) $(INCLUDE) -DDPI=$(DPI) -o $@ $(SRC_PNG) $(OBJS)
$(LIBS)
+ $(CC) $(CFLAGS) $(INCLUDE) -DDPI=$(DPI) -o $@ $(SRC_PNG) $(SRC_LIB)
$(OBJS) $(LIBS)
hash:$(SRC_HASH)
- $(CC) $(CFLAGS) $(INCLUDE) -DDPI=$(DPI) -o $@ $(SRC_HASH) $(OBJS)
$(LIBS)
+ $(CC) $(CFLAGS) $(INCLUDE) -DDPI=$(DPI) -o $@ $(SRC_HASH) $(SRC_LIB)
$(OBJS) $(LIBS)
.PHONY: clean
clean:
-rm -f *.o
+
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] GSoC-2017-kushal 6bf7bcd 12/70: Changes to makefile to use compiled version of freetype,
Kushal K S V S <=