Skip to content
This repository was archived by the owner on May 30, 2023. It is now read-only.
This repository was archived by the owner on May 30, 2023. It is now read-only.

Support overriding in Cargo config #32

@kryptan

Description

@kryptan

I have built ffmpeg myself and want to use it with ffmpeg-sys. I'm overriding build script as described here. The issue is that build script in addition to actually building the library also detects its features. If I override the build script I will have to manually specify all these features which is error prone.

To allow overriding I think that ffmpeg-sys must be split into two crates.

  1. ffmpeg-sys-builld will only contain a build script to build ffmpeg (or find an existing installation) and will declare links value in it's Cargo.toml.
  2. ffmpeg-sys will depend on ffmpeg-sys-builld and contain build script which detects features.

This way it will be possible to use overriding mechanism as it will only override the build of ffmpeg (in ffmpeg-sys-builld/build.rs) but feature detection (in ffmpeg-sys/build.rs) will work as usual.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions