55 lines
2.1 KiB
Diff
55 lines
2.1 KiB
Diff
diff --git a/crates/live_kit_client/Cargo.toml b/crates/live_kit_client/Cargo.toml
|
|
index e23c63453e..d0142b83d8 100644
|
|
--- a/crates/live_kit_client/Cargo.toml
|
|
+++ b/crates/live_kit_client/Cargo.toml
|
|
@@ -40,10 +40,10 @@ nanoid = { workspace = true, optional = true}
|
|
parking_lot.workspace = true
|
|
postage.workspace = true
|
|
|
|
-[target.'cfg(target_os = "macos")'.dependencies]
|
|
+[target.'cfg(target_os = "none")'.dependencies]
|
|
core-foundation.workspace = true
|
|
|
|
-[target.'cfg(all(not(target_os = "macos")))'.dependencies]
|
|
+[target.'cfg(all(not(target_os = "none")))'.dependencies]
|
|
async-trait = { workspace = true }
|
|
collections = { workspace = true }
|
|
gpui = { workspace = true }
|
|
diff --git a/crates/live_kit_client/build.rs b/crates/live_kit_client/build.rs
|
|
index 2fdfd982bf..7272614b87 100644
|
|
--- a/crates/live_kit_client/build.rs
|
|
+++ b/crates/live_kit_client/build.rs
|
|
@@ -36,7 +36,7 @@ const MACOS_TARGET_VERSION: &str = "10.15.7";
|
|
|
|
fn main() {
|
|
if cfg!(all(
|
|
- target_os = "macos",
|
|
+ target_os = "none",
|
|
not(any(test, feature = "test-support", feature = "no-webrtc")),
|
|
)) {
|
|
let swift_target = get_swift_target();
|
|
diff --git a/crates/live_kit_client/src/live_kit_client.rs b/crates/live_kit_client/src/live_kit_client.rs
|
|
index 4820a4eedb..6179e6c55a 100644
|
|
--- a/crates/live_kit_client/src/live_kit_client.rs
|
|
+++ b/crates/live_kit_client/src/live_kit_client.rs
|
|
@@ -2,16 +2,16 @@
|
|
|
|
use std::sync::Arc;
|
|
|
|
-#[cfg(all(target_os = "macos", not(any(test, feature = "test-support"))))]
|
|
+#[cfg(all(target_os = "none", not(any(test, feature = "test-support"))))]
|
|
pub mod prod;
|
|
|
|
-#[cfg(all(target_os = "macos", not(any(test, feature = "test-support"))))]
|
|
+#[cfg(all(target_os = "none", not(any(test, feature = "test-support"))))]
|
|
pub use prod::*;
|
|
|
|
-#[cfg(any(test, feature = "test-support", not(target_os = "macos")))]
|
|
+#[cfg(any(test, feature = "test-support", not(target_os = "none")))]
|
|
pub mod test;
|
|
|
|
-#[cfg(any(test, feature = "test-support", not(target_os = "macos")))]
|
|
+#[cfg(any(test, feature = "test-support", not(target_os = "none")))]
|
|
pub use test::*;
|
|
|
|
pub type Sid = String;
|