servo: HarfBuzz bindings, y'all

Source-Repo: https://github.com/servo/servo
Source-Revision: 1cab10d8ba0cc92b8b18ea2680dc364a02b61664
This commit is contained in:
Brian Anderson 2012-05-11 14:49:02 -07:00
Родитель 4d591e8114
Коммит 28fa1739d8
3 изменённых файлов: 24 добавлений и 3 удалений

Просмотреть файл

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

Просмотреть файл

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

Просмотреть файл

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