This commit is contained in:
Antonio Scandurra
2022-09-13 14:10:13 +02:00
parent 6c28b21728
commit 46abb1cbf6
5 changed files with 20 additions and 20 deletions
+1
View File
@@ -1,6 +1,7 @@
use std::{env, path::PathBuf, process::Command};
fn main() {
println!("cargo:rerun-if-changed=/Users/as-cii/Library/Developer/Xcode/DerivedData/LiveKitObjC-ftgpxknhsgkrocbhhgjkyyvkgkbj/Build/Products/Debug/libLiveKitObjC.a");
println!("cargo:rustc-link-search=/Users/as-cii/Library/Developer/Xcode/DerivedData/LiveKitObjC-ftgpxknhsgkrocbhhgjkyyvkgkbj/Build/Products/Debug");
println!("cargo:rustc-link-lib=static=LiveKitObjC");
println!("cargo:rustc-link-lib=framework=ScreenCaptureKit");
+7 -1
View File
@@ -47,8 +47,14 @@ const NSUTF8StringEncoding: NSUInteger = 4;
actions!(capture, [Quit]);
extern "C" {
fn BuildLKRoom() -> *const c_void;
}
fn main() {
class!(LKRoom);
unsafe {
BuildLKRoom();
}
SimpleLogger::init(LevelFilter::Info, Default::default()).expect("could not initialize logger");