Join GitHub today
GitHub is home to over 50 million developers working together to host and review code, manage projects, and build software together.
Sign upAllow mach build to explicitly set the media stack #23423
Conversation
highfive
commented
May 17, 2019
|
Heads up! This PR modifies the following files:
|
|
The step back is that running raw cargo commands like |
|
Another option would be to build |
|
Another option that would keep the platform logic inside Cargo might be a dummy-media-backend feature, and the cfgs could be |
| @@ -34,6 +34,8 @@ max_log_level = ["log/release_max_level_info"] | |||
| webdriver = ["libservo/webdriver"] | |||
| energy-profiling = ["libservo/energy-profiling"] | |||
| debugmozjs = ["libservo/debugmozjs"] | |||
| media-dummy = ["libservo/servo-media-dummy"] | |||
| media-gstreamer = ["libservo/servo-media-gstreamer"] | |||
This comment has been minimized.
This comment has been minimized.
|
The motivation for this change is so that we have a brute force solution to people who are hitting problems like #21970, which are quite frustrating if you don't need gstreamer. |
afcady
commented
May 17, 2019
|
Note that another solution, or at least workaround, for #21970 is just to specify |
|
Yeah, that works for that particular issue, but we keep hitting build problems with gstreamer, it might be nice to have a workaround. |
|
Thanks @asajeffrey! We definitely need something like this, at least until we have an easier way to setup gstreamer. I like @jdm's suggestion but I suspect that we'd still have the |
|
|
|
@asajeffrey, I have a similar use case and would like to see this in master. Would it help if I attempted a fresh rebase? |
|
@tuncer sure! |
|
@asajeffrey, sorry for the delay: new diff (patch file). Haven't tried to build yet. |
|
Rather annoyingly I don't think github allows me to make you the owner of this PR :( (https://stackoverflow.com/questions/50781553/how-to-take-ownership-of-a-pull-request has the answer "pretty much nope") Can you open a new PR with your changes and reference this one? Also cc me in a comment in the new PR (but not the initial commit as that is a recipe for chaos!) |
|
I don't mind doing that, but have you considered replacing your local branch with the rebased one and running |
|
I could, but it means I have to do that for every edit you make, which I think both of us would find kind of frustrating after a while. |
|
@asajeffrey, done, see #24668. |
Allow build to explicitly set the media stack <!-- Please describe your changes on the following line: --> _[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_ This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because it's build infra <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Allow build to explicitly set the media stack <!-- Please describe your changes on the following line: --> _[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_ This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because it's build infra <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Allow build to explicitly set the media stack <!-- Please describe your changes on the following line: --> _[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_ This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because it's build infra <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Allow build to explicitly set the media stack <!-- Please describe your changes on the following line: --> _[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_ This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because it's build infra <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Allow build to explicitly set the media stack <!-- Please describe your changes on the following line: --> _[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_ This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors <!-- Either: --> - [x] These changes do not require tests because it's build infra <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
Allow build to explicitly set the media stack <!-- Please describe your changes on the following line: --> _[This is based on @asajeffrey's work in #23423, and is a rebase and continuation of that branch]_ This allows `./mach build` to override the media stack, which is currently hard-wired based on the target. To skip gstreamer, run `./mach build -d --media-stack=dummy`. --- <!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: --> - [x] `./mach build -d` does not report any errors - [x] `./mach test-tidy` does not report any errors - [x] These changes fix #23050 (GitHub issue number if applicable) <!-- Either: --> - [x] These changes do not require tests because it's build infra <!-- Also, please make sure that "Allow edits from maintainers" checkbox is checked, so that we can help you if you get stuck somewhere along the way.--> <!-- Pull requests that do not address these steps are welcome, but they will require additional verification as part of the review process. -->
|
Replaced by #24668 |
asajeffrey commentedMay 17, 2019
•
edited by SimonSapin
This allows
./mach buildto override the media stack, which is currently hard-wired based on the target../mach build -ddoes not report any errors./mach test-tidydoes not report any errorsThis change is