mirror of
https://github.com/servo/servo.git
synced 2025-07-23 15:23:42 +01:00
Start building harfbuzz
This commit is contained in:
parent
28e417ef87
commit
7983f13bee
6 changed files with 31 additions and 18 deletions
2
.gitmodules
vendored
2
.gitmodules
vendored
|
@ -15,7 +15,7 @@
|
||||||
url = git://github.com/brson/rust-mozjs.git
|
url = git://github.com/brson/rust-mozjs.git
|
||||||
[submodule "src/harfbuzz"]
|
[submodule "src/harfbuzz"]
|
||||||
path = src/harfbuzz
|
path = src/harfbuzz
|
||||||
url = git://anongit.freedesktop.org/harfbuzz.git
|
url = git://github.com/brson/harfbuzz-servo.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
|
||||||
|
|
|
@ -4,6 +4,7 @@ RUSTC?=rustc
|
||||||
RUSTFLAGS?=
|
RUSTFLAGS?=
|
||||||
|
|
||||||
UNAME=$(shell uname)
|
UNAME=$(shell uname)
|
||||||
|
BUILD_DIR=$(shell pwd)
|
||||||
|
|
||||||
ifeq ($(UNAME),Darwin)
|
ifeq ($(UNAME),Darwin)
|
||||||
OSTYPE=darwin
|
OSTYPE=darwin
|
||||||
|
@ -37,7 +38,7 @@ ifeq ($(OSTYPE),darwin)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
SERVO_DEPS += \
|
SERVO_DEPS += \
|
||||||
src/ragel/ragel/ragel \
|
src/harfbuzz/src/libharfbuzz.la \
|
||||||
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 \
|
||||||
|
@ -52,6 +53,7 @@ CHECK_DEPS += \
|
||||||
|
|
||||||
CLEAN_DEPS += \
|
CLEAN_DEPS += \
|
||||||
clean-ragel \
|
clean-ragel \
|
||||||
|
clean-harfbuzz \
|
||||||
clean-rust-mozjs \
|
clean-rust-mozjs \
|
||||||
clean-rust-sdl \
|
clean-rust-sdl \
|
||||||
clean-rust-azure \
|
clean-rust-azure \
|
||||||
|
@ -70,6 +72,9 @@ 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
|
||||||
|
$(MAKE) -C src/harfbuzz PATH=$(PATH):$(BUILD_DIR)/src/ragel/ragel
|
||||||
|
|
||||||
src/mozjs/libjs_static.a:
|
src/mozjs/libjs_static.a:
|
||||||
$(MAKE) -C src/mozjs
|
$(MAKE) -C src/mozjs
|
||||||
|
|
||||||
|
|
|
@ -6,6 +6,7 @@ I currently build on OS X and Linux.
|
||||||
|
|
||||||
On OS X:
|
On OS X:
|
||||||
|
|
||||||
|
brew install https://raw.github.com/Homebrew/homebrew-versions/master/autoconf213.rb
|
||||||
brew install sdl cairo
|
brew install sdl cairo
|
||||||
|
|
||||||
On Debian-based Linuxes:
|
On Debian-based Linuxes:
|
||||||
|
|
11
autogen.sh
11
autogen.sh
|
@ -4,14 +4,19 @@
|
||||||
|
|
||||||
if [ ! -z `which autoconf213` ]
|
if [ ! -z `which autoconf213` ]
|
||||||
then
|
then
|
||||||
AUTOCONF=autoconf213
|
AUTOCONF213=autoconf213
|
||||||
fi
|
fi
|
||||||
|
|
||||||
if [ ! -z `which autoconf2.13` ]
|
if [ ! -z `which autoconf2.13` ]
|
||||||
then
|
then
|
||||||
AUTOCONF=autoconf2.13
|
AUTOCONF213=autoconf2.13
|
||||||
fi
|
fi
|
||||||
|
|
||||||
(cd src/mozjs/js/src && $AUTOCONF)
|
if [ -z "$AUTOCONF213" ]
|
||||||
|
then
|
||||||
|
echo "I need autoconf 2.13"
|
||||||
|
fi
|
||||||
|
|
||||||
|
(cd src/mozjs/js/src && $AUTOCONF213) || exit $?
|
||||||
|
|
||||||
cp -f configure.in configure
|
cp -f configure.in configure
|
||||||
|
|
26
configure.in
26
configure.in
|
@ -3,16 +3,18 @@
|
||||||
SRCDIR="$(cd $(dirname $0) && pwd)"
|
SRCDIR="$(cd $(dirname $0) && pwd)"
|
||||||
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
|
sed "s#%VPATH%#${SRCDIR}#" ${SRCDIR}/Makefile.in > Makefile
|
||||||
|
|
||||||
mkdir -p src/ragel
|
mkdir -p src/ragel || exit $?
|
||||||
mkdir -p src/mozjs
|
mkdir -p src/harfbuzz || exit $?
|
||||||
mkdir -p src/rust-mozjs
|
mkdir -p src/mozjs || exit $?
|
||||||
mkdir -p src/rust-sdl
|
mkdir -p src/rust-mozjs || exit $?
|
||||||
mkdir -p src/rust-azure
|
mkdir -p src/rust-sdl || exit $?
|
||||||
mkdir -p src/rust-cocoa
|
mkdir -p src/rust-azure || exit $?
|
||||||
|
mkdir -p src/rust-cocoa || exit $?
|
||||||
|
|
||||||
(cd src/ragel && sh ${SRCDIR}/src/ragel/configure)
|
(cd src/ragel && sh ${SRCDIR}/src/ragel/configure) || exit $?
|
||||||
(cd src/mozjs && sh ${SRCDIR}/src/mozjs/js/src/configure)
|
(cd src/harfbuzz && sh ${SRCDIR}/src/harfbuzz/configure --enable-static) || exit $?
|
||||||
(cd src/rust-mozjs && sh ${SRCDIR}/src/rust-mozjs/configure)
|
(cd src/mozjs && sh ${SRCDIR}/src/mozjs/js/src/configure) || exit $?
|
||||||
(cd src/rust-sdl && sh ${SRCDIR}/src/rust-sdl/configure)
|
(cd src/rust-mozjs && sh ${SRCDIR}/src/rust-mozjs/configure) || exit $?
|
||||||
(cd src/rust-azure && sh ${SRCDIR}/src/rust-azure/configure)
|
(cd src/rust-sdl && sh ${SRCDIR}/src/rust-sdl/configure) || exit $?
|
||||||
(cd src/rust-cocoa && sh ${SRCDIR}/src/rust-cocoa/configure)
|
(cd src/rust-azure && sh ${SRCDIR}/src/rust-azure/configure) || exit $?
|
||||||
|
(cd src/rust-cocoa && sh ${SRCDIR}/src/rust-cocoa/configure) || exit $?
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 2214a03900d32710573a1b05c7665195b3129761
|
Subproject commit bf8d802d1295189f35d49db4dd0e9da5bf676864
|
Loading…
Add table
Add a link
Reference in a new issue