skia2/third_party/harfbuzz
Hal Canary 1a5e3e8c2a DEPS: update Harfbuzz to 2.1.1
Change-Id: Ib6f55461a533ebb6dcf4857febd7f008d68bcfc8
Reviewed-on: https://skia-review.googlesource.com/c/171232
Commit-Queue: Ben Wagner <bungeman@google.com>
Reviewed-by: Ben Wagner <bungeman@google.com>
Auto-Submit: Hal Canary <halcanary@google.com>
2018-11-15 23:10:03 +00:00
..
BUILD.gn DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
hb-buffer-deserialize-json.hh DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
hb-buffer-deserialize-text.hh DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
hb-ot-shape-complex-indic-machine.hh DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
hb-ot-shape-complex-myanmar-machine.hh DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
hb-ot-shape-complex-use-machine.hh DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
hb-version.h DEPS: update Harfbuzz to 2.1.1 2018-11-15 23:10:03 +00:00
README

#!/bin/sh
# Some of HarfBuzz's headers are created at build time using the Ragel
# State Machine Compiler.  To reduce complex dependencies, I pre-built
# these files:
#     hb-buffer-deserialize-json.hh
#     hb-buffer-deserialize-text.hh
#     hb-ot-shape-complex-indic-machine.hh
#     hb-ot-shape-complex-myanmar-machine.hh
#     hb-ot-shape-complex-use-machine.hh
# from these sources:
#     ../externals/harfbuzz/src/hb-buffer-deserialize-json.rl
#     ../externals/harfbuzz/src/hb-buffer-deserialize-text.rl
#     ../externals/harfbuzz/src/hb-ot-shape-complex-indic-machine.rl
#     ../externals/harfbuzz/src/hb-ot-shape-complex-myanmar-machine.rl
#     ../externals/harfbuzz/src/hb-ot-shape-complex-use-machine.rl
#
# The files in this directory are created by installing the
# prerequiste packages, checking out a new version of HarfBuzz, doing
# `./autogen.sh && ./configure && make`, then copying the
# autogenerated .h and .hh files to this directory.

set -e
set -x
for package in automake  libtool pkg-config ragel gtk-doc-tools; do
    if ! ( dpkg-query -W -f'${Status}' "$package" 2>/dev/null | \
        grep -q "ok installed" ); then
        sudo apt-get install "$package"
    fi
done
cd "$(dirname "$0")/../externals/harfbuzz"
./autogen.sh
./configure
make -j4
cp src/hb-version.h ../../harfbuzz/
for RAGEL_FILE in src/*.rl; do
    BUILT_HEADER="src/$(basename "$RAGEL_FILE" '.rl').hh"
    if [ -f "$BUILT_HEADER" ]; then
        cp -v "$BUILT_HEADER" ../../harfbuzz/
    fi
done
git clean -fxd