Skip to content

ui-sys does not recompile if a libui file changes #98

Open
@LoganDark

Description

@LoganDark

I think you are missing a .parse_callbacks(Box::new(bindgen::CargoCallbacks)) when you're making the builder, like so:

    // Generate libui bindings on the fly
    let bindings = BindgenBuilder::default()
        .header("wrapper.h")
        .opaque_type("max_align_t") // For some reason this ends up too large
        //.rustified_enum(".*")
        .trust_clang_mangling(false) // clang sometimes wants to treat these functions as C++
        .parse_callbacks(Box::new(bindgen::CargoCallbacks)) // HERE
        .generate()
        .expect("Unable to generate bindings");

You're also missing some println!("cargo:rerun-if-changed={}", src_path(filename)) all over the place after you do base_config.file(src_path(filename)).

Metadata

Metadata

Assignees

No one assigned

    Labels

    c-bugBug - some feature is not working as expectedk-buildprocessIssues with building the cratep-mediumMedium Priority

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions