HarfBuzz bindings, y'all

This commit is contained in:
Brian Anderson 2012-05-11 14:49:02 -07:00
parent 783f702ccf
commit 1cab10d8ba
5 changed files with 28 additions and 3 deletions

3
.gitmodules vendored
View file

@ -16,6 +16,9 @@
[submodule "src/harfbuzz"] [submodule "src/harfbuzz"]
path = src/harfbuzz path = src/harfbuzz
url = git://github.com/brson/harfbuzz-servo.git url = git://github.com/brson/harfbuzz-servo.git
[submodule "src/rust-harfbuzz"]
path = src/rust-harfbuzz
url = git://github.com/brson/rust-harfbuzz.git
[submodule "src/ragel"] [submodule "src/ragel"]
path = src/ragel path = src/ragel
url = git://github.com/brson/ragel-dist.git url = git://github.com/brson/ragel-dist.git

View file

@ -14,6 +14,7 @@ ifeq ($(UNAME),Linux)
endif endif
RUSTFLAGS += \ RUSTFLAGS += \
-L src/rust-harfbuzz \
-L src/rust-mozjs \ -L src/rust-mozjs \
-L src/rust-azure \ -L src/rust-azure \
-L src/rust-sdl \ -L src/rust-sdl \
@ -38,13 +39,14 @@ ifeq ($(OSTYPE),darwin)
endif endif
SERVO_DEPS += \ SERVO_DEPS += \
src/harfbuzz/src/libharfbuzz.la \ src/rust-harfbuzz/libharfbuzz.dummy \
src/rust-mozjs/libmozjs.dummy \ src/rust-mozjs/libmozjs.dummy \
src/rust-azure/libazure.dummy \ src/rust-azure/libazure.dummy \
src/rust-sdl/libsdl.dummy \ src/rust-sdl/libsdl.dummy \
$(NULL) $(NULL)
CHECK_DEPS += \ CHECK_DEPS += \
check-rust-harfbuzz \
check-rust-mozjs \ check-rust-mozjs \
check-rust-sdl \ check-rust-sdl \
check-rust-azure \ check-rust-azure \
@ -54,6 +56,7 @@ CHECK_DEPS += \
CLEAN_DEPS += \ CLEAN_DEPS += \
clean-ragel \ clean-ragel \
clean-harfbuzz \ clean-harfbuzz \
clean-rust-harfbuzz \
clean-rust-mozjs \ clean-rust-mozjs \
clean-rust-sdl \ clean-rust-sdl \
clean-rust-azure \ clean-rust-azure \
@ -72,12 +75,15 @@ servo-test: $(SERVO_DEPS)
src/ragel/ragel/ragel: src/ragel/ragel/ragel:
$(MAKE) -C src/ragel $(MAKE) -C src/ragel
src/harfbuzz/src/libharfbuzz.la: src/ragel/ragel/ragel src/harfbuzz/src/.libs/libharfbuzz.a: src/ragel/ragel/ragel
$(MAKE) -C src/harfbuzz PATH=$(PATH):$(BUILD_DIR)/src/ragel/ragel $(MAKE) -C src/harfbuzz PATH=$(PATH):$(BUILD_DIR)/src/ragel/ragel CXXFLAGS=-fPIC LDFLAGS=-fPIC
src/mozjs/libjs_static.a: src/mozjs/libjs_static.a:
$(MAKE) -C src/mozjs $(MAKE) -C src/mozjs
src/rust-harfbuzz/libharfbuzz.dummy: src/harfbuzz/src/.libs/libharfbuzz.a
$(MAKE) -C src/rust-harfbuzz RUSTFLAGS="-L ../harfbuzz/src/.libs/"
src/rust-mozjs/libmozjs.dummy: src/mozjs/libjs_static.a src/rust-mozjs/libmozjs.dummy: src/mozjs/libjs_static.a
$(MAKE) -C src/rust-mozjs RUSTFLAGS="-L ../mozjs/" $(MAKE) -C src/rust-mozjs RUSTFLAGS="-L ../mozjs/"
@ -95,6 +101,10 @@ check: $(CHECK_DEPS)
check-servo: servo-test check-servo: servo-test
./servo-test ./servo-test
.PHONY: check-rust-harfbuzz
check-rust-harfbuzz: src/harfbuzz/src/.libs/libharfbuzz.a
$(MAKE) check -C src/rust-harfbuzz RUSTFLAGS="-L ../harfbuzz/src/.libs/"
.PHONY: check-rust-mozjs .PHONY: check-rust-mozjs
check-rust-mozjs: src/mozjs/libjs_static.a check-rust-mozjs: src/mozjs/libjs_static.a
$(MAKE) check -C src/rust-mozjs RUSTFLAGS="-L ../mozjs/" $(MAKE) check -C src/rust-mozjs RUSTFLAGS="-L ../mozjs/"
@ -118,6 +128,14 @@ clean: $(CLEAN_DEPS)
clean-ragel: clean-ragel:
$(MAKE) clean -C src/ragel $(MAKE) clean -C src/ragel
.PHONY: clean-harfbuzz
clean-harfbuzz:
$(MAKE) clean -C src/harfbuzz
.PHONY: clean-rust-harfbuzz
clean-rust-harfbuzz:
$(MAKE) clean -C src/rust-harfbuzz
.PHONY: clean-rust-mozjs .PHONY: clean-rust-mozjs
clean-rust-mozjs: clean-rust-mozjs:
$(MAKE) clean -C src/rust-mozjs $(MAKE) clean -C src/rust-mozjs

View file

@ -6,6 +6,7 @@ sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
mkdir -p src/ragel || exit $? mkdir -p src/ragel || exit $?
mkdir -p src/harfbuzz || exit $? mkdir -p src/harfbuzz || exit $?
mkdir -p src/mozjs || exit $? mkdir -p src/mozjs || exit $?
mkdir -p src/rust-harfbuzz || exit $?
mkdir -p src/rust-mozjs || exit $? mkdir -p src/rust-mozjs || exit $?
mkdir -p src/rust-sdl || exit $? mkdir -p src/rust-sdl || exit $?
mkdir -p src/rust-azure || exit $? mkdir -p src/rust-azure || exit $?
@ -14,6 +15,7 @@ mkdir -p src/rust-cocoa || exit $?
(cd src/ragel && sh ${SRCDIR}/src/ragel/configure) || exit $? (cd src/ragel && sh ${SRCDIR}/src/ragel/configure) || exit $?
(cd src/harfbuzz && sh ${SRCDIR}/src/harfbuzz/configure --enable-static) || exit $? (cd src/harfbuzz && sh ${SRCDIR}/src/harfbuzz/configure --enable-static) || exit $?
(cd src/mozjs && sh ${SRCDIR}/src/mozjs/js/src/configure) || exit $? (cd src/mozjs && sh ${SRCDIR}/src/mozjs/js/src/configure) || exit $?
(cd src/rust-harfbuzz && sh ${SRCDIR}/src/rust-harfbuzz/configure) || exit $?
(cd src/rust-mozjs && sh ${SRCDIR}/src/rust-mozjs/configure) || exit $? (cd src/rust-mozjs && sh ${SRCDIR}/src/rust-mozjs/configure) || exit $?
(cd src/rust-sdl && sh ${SRCDIR}/src/rust-sdl/configure) || exit $? (cd src/rust-sdl && sh ${SRCDIR}/src/rust-sdl/configure) || exit $?
(cd src/rust-azure && sh ${SRCDIR}/src/rust-azure/configure) || exit $? (cd src/rust-azure && sh ${SRCDIR}/src/rust-azure/configure) || exit $?

1
src/rust-harfbuzz Submodule

@ -0,0 +1 @@
Subproject commit 80272a985fd3ec3cd6430402e25551096eb43722

View file

@ -10,6 +10,7 @@ use std;
use sdl; use sdl;
use azure; use azure;
use js; use js;
use harfbuzz;
mod dom { mod dom {
mod base; mod base;