Skip to content

Commit

Permalink
add FreeType library build script
Browse files Browse the repository at this point in the history
  • Loading branch information
uchan-nos committed Mar 23, 2020
1 parent ac58215 commit 5152f23
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
Binary file modified devenv/OVMF_VARS.fd
Binary file not shown.
2 changes: 1 addition & 1 deletion devenv/buildenv.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# Usage: source buildenv.sh

BASEDIR="$HOME/osbook/devenv/x86_64-elf"
export CPPFLAGS="-I$BASEDIR/include/c++/v1 -I$BASEDIR/include -nostdlibinc -D__ELF__ -D_LDBL_EQ_DBL -D_GNU_SOURCE -D_POSIX_TIMERS"
export CPPFLAGS="-I$BASEDIR/include/c++/v1 -I$BASEDIR/include -I$BASEDIR/include/freetype2 -nostdlibinc -D__ELF__ -D_LDBL_EQ_DBL -D_GNU_SOURCE -D_POSIX_TIMERS"
export LDFLAGS="-L$BASEDIR/lib"
2 changes: 1 addition & 1 deletion devenv_src/stdlib/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,6 @@ WORKDIR /usr/local/src

ADD . /usr/local/src

RUN apt-get update && apt-get install -y --no-install-recommends git-core subversion make cmake clang python ca-certificates
RUN apt-get update && apt-get install -y --no-install-recommends git-core subversion make cmake clang python ca-certificates wget

CMD ["/usr/local/src/build-stdlib.sh"]
14 changes: 14 additions & 0 deletions devenv_src/stdlib/build-stdlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -73,3 +73,17 @@ cmake -G "Unix Makefiles" \

make -j4
make install

cd $BASEDIR
wget https://download.savannah.gnu.org/releases/freetype/freetype-2.10.1.tar.gz
tar xf freetype-2.10.1.tar.gz

cd $BASEDIR
mkdir build_freetype
cd build_freetype
../freetype-2.10.1/configure \
CC=$CC \
CFLAGS="-fPIC -I$PREFIX/include $COMMON_CFLAGS" \
--host=$TARGET_TRIPLE --prefix=$PREFIX
make -j 4
make install

0 comments on commit 5152f23

Please sign in to comment.