Repository navigation
Conversation
mrobinson
left a comment
There was a problem hiding this comment.
Great work. I really like the use of an enum to store the configuration value. Just a couple changes requested. We should also run this by the community to make sure the change is acceptable to everyone.
|
|
||
| if self.media_stack.is_dummy() and "--no-default-features" not in cargo_args: | ||
| args += ["--no-default-features"] |
There was a problem hiding this comment.
Hrm. There is an issue here and it's that using the dummy media stack disables the "max_log_level", "native-bluetooth", and "webdriver" features. Perhaps we should make these features non-configurable? I'm not sure what the right thing to do here is.
There was a problem hiding this comment.
Ah, that's why I wanted ports so I could detect which features to enable. Webdriver should probably be hidden behind pref.
We could also move gstreamer enabling into cargo per target, then mach would only need to handle cross and forced dummy cases.
inspiration: https://stackoverflow.com/questions/57972355/enable-a-cargo-feature-by-default-when-the-target-arch-is-wasm
|
so... update? |
|
I think @mukilan is now working on this issue and can hopefully revive this change using Cargo featuresets. Sorry for letting it sit so long, but hopefully there will be movement soon. |
This change enables GStreamer by default on all platforms other than Android and OHOS in an effort to try to make `./mach build` do the same thing as `cargo build`. There is more work to do here, but this is an important step. Testing: There really isn't any automated testing for this kind of change. Closes: servo#30420. Signed-off-by: Martin Robinson <[email protected]>
Try run: https://github.com/sagudev/servo/actions/runs/6289052004
./mach build -ddoes not report any errors./mach test-tidydoes not report any errors