Added the build script for font renderer

This commit is contained in:
George Sokianos 2021-12-21 17:55:37 +00:00
parent c155f797cf
commit e13efe91b4
1 changed files with 14 additions and 0 deletions

14
lib/font_renderer/os4build.sh Executable file
View File

@ -0,0 +1,14 @@
#!/bin/bash
cxxcompiler="g++"
cxxflags="-Wall -O3 -g -std=c++03 -fno-exceptions -fno-rtti -Isrc -Ilib/font_renderer -DFONT_RENDERER_HEIGHT_HACK -lagg -lfreetype -I/sdk/local/common/include/agg"
echo "compiling font renderer library..."
g++ -c $cxxflags agg_font_freetype.cpp -o agg_font_freetype.o
g++ -c $cxxflags font_renderer.cpp -o font_renderer.o
ar -rcs libfontrenderer.a *.o
rm *.o
echo "font renderer library created"