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

Support overriding in Cargo config #32

Open
kryptan opened this issue Sep 14, 2016 · 1 comment
Open

Support overriding in Cargo config #32

kryptan opened this issue Sep 14, 2016 · 1 comment

Comments

@kryptan
Copy link
Contributor

kryptan commented Sep 14, 2016

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.

@bacek
Copy link
Contributor

bacek commented May 11, 2018

Second it. I would like to link with system ffmpeg packages instead of building ffmpeg from scratch.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants