#cdylib #link #lines #android #ios #linux #helper #build

cdylib-link-lines

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

5 releases

0.1.4 Jul 6, 2021
0.1.3 Jul 5, 2021
0.1.2 Jul 17, 2020
0.1.1 Jun 5, 2019
0.1.0 Jun 4, 2019
Download history 186/week @ 2021-08-10 98/week @ 2021-08-17 106/week @ 2021-08-24 76/week @ 2021-08-31 162/week @ 2021-09-07 126/week @ 2021-09-14 160/week @ 2021-09-21 378/week @ 2021-09-28 350/week @ 2021-10-05 161/week @ 2021-10-12 107/week @ 2021-10-19 74/week @ 2021-10-26 120/week @ 2021-11-02 105/week @ 2021-11-09 86/week @ 2021-11-16 83/week @ 2021-11-23

407 downloads per month

MIT license

6KB
99 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.

Dependencies

~0.7–1.4MB
~33K SLoC

O `