mirror of
https://github.com/servo/servo.git
synced 2025-06-25 09:34:32 +01:00
Build fixes for latest rustc changes.
This commit is contained in:
parent
18506978ca
commit
57a231ff94
11 changed files with 22 additions and 21 deletions
|
@ -90,7 +90,7 @@ src/ragel/ragel/ragel:
|
||||||
$(MAKE) -C src/ragel
|
$(MAKE) -C src/ragel
|
||||||
|
|
||||||
src/harfbuzz/src/.libs/libharfbuzz.a: 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 CXXFLAGS=-fPIC LDFLAGS=-fPIC
|
$(MAKE) -C src/harfbuzz PATH=$(PATH):$(BUILD_DIR)/src/ragel/ragel CXXFLAGS=-fPIC LDFLAGS="-fPIC -lstdc++"
|
||||||
|
|
||||||
src/mozjs/libjs_static.a:
|
src/mozjs/libjs_static.a:
|
||||||
$(MAKE) -C src/mozjs
|
$(MAKE) -C src/mozjs
|
||||||
|
@ -133,7 +133,7 @@ check-rust-mozjs: src/mozjs/libjs_static.a
|
||||||
|
|
||||||
.PHONY: check-rust-azure
|
.PHONY: check-rust-azure
|
||||||
check-rust-azure: $(AZURE_DEPS)
|
check-rust-azure: $(AZURE_DEPS)
|
||||||
RUSTFLAGS="-L ../rust-cocoa" $(MAKE) check -C src/rust-azure
|
RUSTFLAGS="-L ../rust-cocoa -L ../rust-geom" $(MAKE) check -C src/rust-azure
|
||||||
|
|
||||||
.PHONY: check-rust-sdl
|
.PHONY: check-rust-sdl
|
||||||
check-rust-sdl:
|
check-rust-sdl:
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit 3c378322f2e61526e8f9dd5925b764c4420a2211
|
Subproject commit 1e811d44daaf00a8b8ebf0e7ea3f39056da133da
|
|
@ -1 +1 @@
|
||||||
Subproject commit a326b982dfde133ea558a1025deb9c14d88265d2
|
Subproject commit 2764790c7956b789af13f35568f3096b698cb501
|
|
@ -1 +1 @@
|
||||||
Subproject commit b6eb91692604522fb2823158bb570c025c878019
|
Subproject commit e1ce2a3bef67f28ea6ddea68ac2cbba281b186c9
|
|
@ -1 +1 @@
|
||||||
Subproject commit 72d6aaed46caaef92f998fa2a90eed7745fcff12
|
Subproject commit 4da8eb3717aa01daba896a736012e67585b90803
|
|
@ -1 +1 @@
|
||||||
Subproject commit 49e1fe02095136615fd913903d084f515d2064c0
|
Subproject commit 1f1f49d6e32116734f1f45cb64498340e5e367ff
|
|
@ -1 +1 @@
|
||||||
Subproject commit 455bb644ba20c36ce8de9fd82b94f477eea6db75
|
Subproject commit 2d87ae88486ee1a438fa71d1199dd7bc987b17fa
|
|
@ -284,13 +284,13 @@ mod platform {
|
||||||
#debug("getting osmain fptr: %?", fptr);
|
#debug("getting osmain fptr: %?", fptr);
|
||||||
|
|
||||||
unsafe {
|
unsafe {
|
||||||
// FIXME: We probably don't want to run the main routine in a crust function
|
// FIXME: We probably don't want to run the main routine in a foreign function
|
||||||
(*fptr)();
|
(*fptr)();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create(f: fn()) -> id {
|
fn create(f: fn()) -> id {
|
||||||
let NSObject = str::as_c_str("NSObject", |s| ojc::objc_getClass(s));
|
let NSObject = str::as_c_str("NSObject", |s| objc::objc_getClass(s));
|
||||||
let MainObj = str::as_c_str("MainObj", |s| {
|
let MainObj = str::as_c_str("MainObj", |s| {
|
||||||
objc::objc_allocateClassPair(NSObject, s, 0 as libc::size_t)
|
objc::objc_allocateClassPair(NSObject, s, 0 as libc::size_t)
|
||||||
});
|
});
|
||||||
|
|
|
@ -222,7 +222,7 @@ mod cocoa {
|
||||||
}
|
}
|
||||||
|
|
||||||
#[cfg(target_os = "macos")]
|
#[cfg(target_os = "macos")]
|
||||||
fn get_cairo_face(buf: &[u8]) -> (*cairo_font_face_t, fn@()) {
|
fn get_cairo_face(buf: &~[u8]) -> (*cairo_font_face_t, fn@()) {
|
||||||
import unsafe::reinterpret_cast;
|
import unsafe::reinterpret_cast;
|
||||||
import libc::size_t;
|
import libc::size_t;
|
||||||
import cocoa::cocoa;
|
import cocoa::cocoa;
|
||||||
|
@ -296,7 +296,7 @@ fn should_get_glyph_advance() {
|
||||||
fn should_be_able_to_create_instances_in_multiple_threads() {
|
fn should_be_able_to_create_instances_in_multiple_threads() {
|
||||||
#[test];
|
#[test];
|
||||||
|
|
||||||
iter::repeat(10u, || task::spawn(|| {create_test_font();}));
|
for iter::repeat(10u) {do task::spawn {create_test_font();}}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn get_cairo_face_should_fail_and_not_leak_if_font_cant_be_created() {
|
fn get_cairo_face_should_fail_and_not_leak_if_font_cant_be_created() {
|
||||||
|
|
|
@ -48,12 +48,12 @@ class QuartzNativeFont/& {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn create(buf: &[u8]) -> result<QuartzNativeFont, ()> {
|
fn create(buf: [u8]) -> result<QuartzNativeFont, ()> {
|
||||||
let fontprov = vec::as_buf(*buf, |cbuf| {
|
let fontprov = vec::as_buf(buf, |cbuf| {
|
||||||
CGDataProviderCreateWithData(
|
CGDataProviderCreateWithData(
|
||||||
null(),
|
null(),
|
||||||
unsafe { reinterpret_cast(cbuf) },
|
unsafe { reinterpret_cast(cbuf) },
|
||||||
(*buf).len() as size_t,
|
buf.len() as size_t,
|
||||||
null())
|
null())
|
||||||
});
|
});
|
||||||
// FIXME: Error handling
|
// FIXME: Error handling
|
||||||
|
@ -70,6 +70,7 @@ fn with_test_native_font(f: fn@(nf: &NativeFont)) {
|
||||||
import unwrap_result = result::unwrap;
|
import unwrap_result = result::unwrap;
|
||||||
|
|
||||||
let buf = test_font_bin();
|
let buf = test_font_bin();
|
||||||
let font = unwrap_result(create(&buf));
|
let res = create(buf);
|
||||||
|
let font = unwrap_result(res);
|
||||||
f(&font);
|
f(&font);
|
||||||
}
|
}
|
||||||
|
|
|
@ -102,11 +102,11 @@ fn shape_text(font: &Font, text: str) -> [Glyph] unsafe {
|
||||||
}
|
}
|
||||||
|
|
||||||
extern fn glyph_func(_font: *hb_font_t,
|
extern fn glyph_func(_font: *hb_font_t,
|
||||||
font_data: *c_void,
|
font_data: *c_void,
|
||||||
unicode: hb_codepoint_t,
|
unicode: hb_codepoint_t,
|
||||||
_variant_selector: hb_codepoint_t,
|
_variant_selector: hb_codepoint_t,
|
||||||
glyph: *mut hb_codepoint_t,
|
glyph: *mut hb_codepoint_t,
|
||||||
_user_data: *c_void) -> hb_bool_t unsafe {
|
_user_data: *c_void) -> hb_bool_t unsafe {
|
||||||
|
|
||||||
let font: *Font = reinterpret_cast(font_data);
|
let font: *Font = reinterpret_cast(font_data);
|
||||||
assert font.is_not_null();
|
assert font.is_not_null();
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue