diff options
author | Martin Robinson <mrobinson@igalia.com> | 2024-01-02 16:23:12 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-02 15:23:12 +0000 |
commit | bbadef3365e0565fca96e9a0c2e2cb014f8d60e8 (patch) | |
tree | 37a0ae2fe60f5bbc0c958f998b8164dd96a1caaa /ports/gstplugin/build.rs | |
parent | 5b0c03801a4a52252ccf0b6add7f8ea76187b0d8 (diff) | |
download | servo-bbadef3365e0565fca96e9a0c2e2cb014f8d60e8.tar.gz servo-bbadef3365e0565fca96e9a0c2e2cb014f8d60e8.zip |
Remove the servo-gst-plugin (#30976)
The CI doesn't build this by default and it's currently unused. It is
one thing that's currently making it a bit trickier to allow for
non-mach builds of Servo.
Diffstat (limited to 'ports/gstplugin/build.rs')
-rw-r--r-- | ports/gstplugin/build.rs | 25 |
1 files changed, 0 insertions, 25 deletions
diff --git a/ports/gstplugin/build.rs b/ports/gstplugin/build.rs deleted file mode 100644 index bf58fffa32f..00000000000 --- a/ports/gstplugin/build.rs +++ /dev/null @@ -1,25 +0,0 @@ -/* This Source Code Form is subject to the terms of the Mozilla Public - * License, v. 2.0. If a copy of the MPL was not distributed with this - * file, You can obtain one at https://mozilla.org/MPL/2.0/. */ - -use std::error::Error; -use std::path::Path; - -fn main() -> Result<(), Box<dyn Error>> { - // Cargo does not expose the profile name to crates or their build scripts, - // but we can extract it from OUT_DIR and set a custom cfg() ourselves. - let out = std::env::var("OUT_DIR")?; - let out = Path::new(&out); - let krate = out.parent().unwrap(); - let build = krate.parent().unwrap(); - let profile = build.parent().unwrap(); - if profile.file_name().unwrap() == "production" { - println!("cargo:rustc-cfg=servo_production"); - } else { - println!("cargo:rustc-cfg=servo_do_not_use_in_production"); - } - - gst_plugin_version_helper::get_info(); - - Ok(()) -} |