mirror of
https://github.com/servo/servo.git
synced 2025-08-02 04:00:32 +01:00
style: Update style build script for bindgen changes.
This commit is contained in:
parent
46b360cb75
commit
1254cbf313
1 changed files with 2 additions and 9 deletions
|
@ -406,11 +406,7 @@ mod bindings {
|
||||||
fn generate_structs() {
|
fn generate_structs() {
|
||||||
let builder = Builder::get_initial_builder()
|
let builder = Builder::get_initial_builder()
|
||||||
.enable_cxx_namespaces()
|
.enable_cxx_namespaces()
|
||||||
.with_codegen_config(CodegenConfig {
|
.with_codegen_config(CodegenConfig::TYPES | CodegenConfig::VARS);
|
||||||
types: true,
|
|
||||||
vars: true,
|
|
||||||
..CodegenConfig::nothing()
|
|
||||||
});
|
|
||||||
let mut fixups = vec![];
|
let mut fixups = vec![];
|
||||||
let builder = BuilderWithConfig::new(builder, CONFIG["structs"].as_table().unwrap())
|
let builder = BuilderWithConfig::new(builder, CONFIG["structs"].as_table().unwrap())
|
||||||
.handle_common(&mut fixups)
|
.handle_common(&mut fixups)
|
||||||
|
@ -500,10 +496,7 @@ mod bindings {
|
||||||
fn generate_bindings() {
|
fn generate_bindings() {
|
||||||
let builder = Builder::get_initial_builder()
|
let builder = Builder::get_initial_builder()
|
||||||
.disable_name_namespacing()
|
.disable_name_namespacing()
|
||||||
.with_codegen_config(CodegenConfig {
|
.with_codegen_config(CodegenConfig::FUNCTIONS);
|
||||||
functions: true,
|
|
||||||
..CodegenConfig::nothing()
|
|
||||||
});
|
|
||||||
let config = CONFIG["bindings"].as_table().unwrap();
|
let config = CONFIG["bindings"].as_table().unwrap();
|
||||||
let mut structs_types = HashSet::new();
|
let mut structs_types = HashSet::new();
|
||||||
let mut fixups = vec![];
|
let mut fixups = vec![];
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue