#build #forked #config #toml #src #meson #dovee

meson-next

Forked from meson by dovee

9 stable releases

Uses old Rust 2015

1.2.2 Dec 26, 2022
1.2.1 Dec 24, 2022
1.0.1 Nov 27, 2022

#8 in #forked

Download history 6/week @ 2024-01-11 6/week @ 2024-01-18 23/week @ 2024-01-25 34/week @ 2024-02-01 22/week @ 2024-02-08 81/week @ 2024-02-15 78/week @ 2024-02-22 53/week @ 2024-02-29 45/week @ 2024-03-07 26/week @ 2024-03-14 14/week @ 2024-03-21 13/week @ 2024-03-28 55/week @ 2024-04-04 61/week @ 2024-04-11 49/week @ 2024-04-18 49/week @ 2024-04-25

220 downloads per month
Used in libvmaf-sys

MIT license

5KB
86 lines

Build Example

.
├── build.rs
├── Cargo.toml
├── clib
│   ├── meson.build
│   ├── squid.h
│   └── squid.c
└── src
    └── lib.rs

build.rs:

extern crate meson;
use std::env;
use std::path::PathBuf;

fn main() {
    let build_path = PathBuf::from(env::var("OUT_DIR").unwrap()).join("build");
    let build_path = build_path.to_str().unwrap();
    let config = meson::Config::new()

    println!("cargo:rustc-link-lib=squid");
    println!("cargo:rustc-link-search=native={}", build_path);
    meson::build("clib", build_path,config);
}

Cargo.toml:

# ...

[build-dependencies]
meson = "1.0.0"

meson.build:

project('squid', 'c')
shared_library('squid', 'squid.c')

No runtime deps