cdylib-link-lines

Crates.iocdylib-link-lines
lib.rscdylib-link-lines
version0.1.5
sourcesrc
created_at2019-06-04 19:37:02.132698
updated_at2024-03-01 12:01:40.039732
descriptionCollection of link-lines useful to build correct cdylibs on targets
homepage
repositoryhttps://github.com/lu-zero/cdylib-link-lines
max_upload_size
id138996
size6,136
Luca Barbato (lu-zero)

documentation

README

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.

Commit count: 13

cargo fmt