mirror of
https://gitlab.com/veilid/veilid.git
synced 2025-08-01 11:16:09 -04:00
prep for plugin interface
This commit is contained in:
parent
5cb2463a31
commit
cbffc381c1
13 changed files with 854 additions and 195 deletions
|
@ -51,11 +51,18 @@ fn main() {
|
|||
.unwrap()
|
||||
.join("lib")
|
||||
.join("bridge_generated.dart");
|
||||
let c_path = Path::new(&manifest_dir)
|
||||
.parent()
|
||||
.unwrap()
|
||||
.join("ios")
|
||||
.join("Classes")
|
||||
.join("bridge_generated.h");
|
||||
let llvm_path = resolve_llvm_path();
|
||||
|
||||
eprintln!("input_path: {:?}", input_path);
|
||||
eprintln!("output_path: {:?}", output_path);
|
||||
eprintln!("llvm_path: {:?}", llvm_path);
|
||||
//eprintln!("input_path: {:?}", input_path);
|
||||
//eprintln!("output_path: {:?}", output_path);
|
||||
//eprintln!("c_path: {:?}", c_path);
|
||||
//eprintln!("llvm_path: {:?}", llvm_path);
|
||||
|
||||
let mut command = Command::new("flutter_rust_bridge_codegen");
|
||||
if let Some(llvm_path) = llvm_path {
|
||||
|
@ -64,6 +71,8 @@ fn main() {
|
|||
input_path.as_os_str(),
|
||||
OsStr::new("--dart-output"),
|
||||
output_path.as_os_str(),
|
||||
OsStr::new("--c-output"),
|
||||
c_path.as_os_str(),
|
||||
OsStr::new("--llvm-path"),
|
||||
llvm_path.as_os_str(),
|
||||
]);
|
||||
|
@ -73,6 +82,8 @@ fn main() {
|
|||
input_path.as_os_str(),
|
||||
OsStr::new("--dart-output"),
|
||||
output_path.as_os_str(),
|
||||
OsStr::new("--c-output"),
|
||||
c_path.as_os_str(),
|
||||
]);
|
||||
}
|
||||
|
||||
|
@ -83,5 +94,5 @@ fn main() {
|
|||
.wait()
|
||||
.expect("flutter_rust_bridge_codegen was not running");
|
||||
|
||||
println!("cargo:rerun-if-changed={}", input_path.to_str().unwrap());
|
||||
//println!("cargo:rerun-if-changed={}", input_path.to_str().unwrap());
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue