#build #correct #targets #collection #cdylibs #link-line #link-lines

build cdylib-link-lines

Collection of link-lines useful to build correct cdylibs on targets

6 releases

0.1.5 Mar 1, 2024
0.1.4 Jul 6, 2021
0.1.2 Jul 17, 2020
0.1.1 Jun 5, 2019

#144 in Build Utils

Download history 247/week @ 2024-06-11 528/week @ 2024-06-18 1180/week @ 2024-06-25 1229/week @ 2024-07-02 1415/week @ 2024-07-09 888/week @ 2024-07-16 1104/week @ 2024-07-23 1051/week @ 2024-07-30 1040/week @ 2024-08-06 872/week @ 2024-08-13 1229/week @ 2024-08-20 1314/week @ 2024-08-27 1144/week @ 2024-09-03 1333/week @ 2024-09-10 1302/week @ 2024-09-17 1201/week @ 2024-09-24

5,232 downloads per month
Used in 2 crates

MIT license

6KB
72 lines

link-line helper to build correct cdylibs

LICENSE

Supported targets

  • Linux and Android
  • macOS and iOS
  • Windows (gnu)

Usage

build.rs

Add the crate to your build-dependencies, in your build.rs, call metabuild().

[build-dependencies]
cdylib-link-lines = "0.1"
fn main() {
    cdylib_link_lines::metabuild();
}

metabuild

If you are using the metabuild unstable feature

cargo-features = ["metabuild"]

[package]
name = "mypackage"
...
metabuild = ["cdylib-link-lines"]

[build-dependencies]
cdylib-link-lines = "0.1"

Credits

Helper spun off crav1e, contains code written by Luca Barbato and Derek Buitenhuis. Synchronized with the cargo-c 0.9 logic thanks to Ivan Enderlin.

No runtime deps