mirror of
https://github.com/spacedriveapp/spacedrive
synced 2024-07-04 11:03:27 +00:00
restrict all swift stuff to macos only (#590)
restrict all swift stuff to macos only
This commit is contained in:
parent
d89240d9e2
commit
29a3123df5
|
@ -1,4 +1,5 @@
|
|||
fn main() {
|
||||
#[cfg(target_os = "macos")]
|
||||
swift_rs::SwiftLinker::new("10.15")
|
||||
.with_package("sd-desktop-macos", "./")
|
||||
.link();
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![cfg(target_os = "macos")]
|
||||
|
||||
use swift_rs::*;
|
||||
|
||||
pub type NSObject = *mut std::ffi::c_void;
|
||||
|
|
|
@ -1,7 +1,6 @@
|
|||
use swift_rs::SwiftLinker;
|
||||
|
||||
fn main() {
|
||||
SwiftLinker::new("10.15")
|
||||
#[cfg(target_os = "macos")]
|
||||
swift_rs::SwiftLinker::new("10.15")
|
||||
.with_package("sd-macos", "./")
|
||||
.link()
|
||||
}
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![cfg(target_os = "macos")]
|
||||
|
||||
use swift_rs::*;
|
||||
|
||||
#[repr(C)]
|
||||
|
|
Loading…
Reference in a new issue