diff --git a/lib/font_renderer/os4build.sh b/lib/font_renderer/os4build.sh new file mode 100755 index 00000000..3f0aa3a9 --- /dev/null +++ b/lib/font_renderer/os4build.sh @@ -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"