mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
Add char_traits to blacklist
This commit is contained in:
parent
8c8edb8731
commit
3cbc1aa279
1 changed files with 8 additions and 4 deletions
|
@ -429,10 +429,6 @@ mod bindings {
|
|||
"mozilla::dom::Sequence",
|
||||
"mozilla::dom::Optional",
|
||||
"mozilla::dom::Nullable",
|
||||
"nsAString_internal_char_traits",
|
||||
"nsAString_internal_incompatible_char_type",
|
||||
"nsACString_internal_char_traits",
|
||||
"nsACString_internal_incompatible_char_type",
|
||||
"RefPtr_Proxy",
|
||||
"RefPtr_Proxy_member_function",
|
||||
"nsAutoPtr_Proxy",
|
||||
|
@ -461,6 +457,10 @@ mod bindings {
|
|||
"mozilla::StyleAnimationValue",
|
||||
"StyleAnimationValue", // pulls in a whole bunch of stuff we don't need in the bindings
|
||||
];
|
||||
let blacklist = [
|
||||
".*_char_traits",
|
||||
".*_incompatible_char_type",
|
||||
];
|
||||
|
||||
struct MappedGenericType {
|
||||
generic: bool,
|
||||
|
@ -499,6 +499,9 @@ mod bindings {
|
|||
for &ty in opaque_types.iter() {
|
||||
builder = builder.opaque_type(ty);
|
||||
}
|
||||
for &ty in blacklist.iter() {
|
||||
builder = builder.hide_type(ty);
|
||||
}
|
||||
for ty in servo_mapped_generic_types.iter() {
|
||||
let gecko_name = ty.gecko.rsplit("::").next().unwrap();
|
||||
builder = builder.hide_type(ty.gecko)
|
||||
|
@ -722,6 +725,7 @@ pub fn generate() {
|
|||
use self::common::*;
|
||||
use std::fs;
|
||||
use std::thread;
|
||||
println!("cargo:rerun-if-changed=build_gecko.rs");
|
||||
fs::create_dir_all(&*OUTDIR_PATH).unwrap();
|
||||
let threads = vec![
|
||||
thread::spawn(|| bindings::generate_structs(BuildType::Debug)),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue