2023-04-13 10:53:51 +00:00
|
|
|
fn main() {
|
|
|
|
#[cfg(feature = "dart")]
|
2024-01-29 21:36:27 +00:00
|
|
|
{
|
|
|
|
flowy_codegen::protobuf_file::dart_gen(env!("CARGO_PKG_NAME"));
|
|
|
|
flowy_codegen::dart_event::gen(env!("CARGO_PKG_NAME"));
|
|
|
|
}
|
2023-04-13 10:53:51 +00:00
|
|
|
|
2024-02-03 21:50:23 +00:00
|
|
|
#[cfg(feature = "tauri_ts")]
|
2024-01-29 21:36:27 +00:00
|
|
|
{
|
|
|
|
flowy_codegen::ts_event::gen(env!("CARGO_PKG_NAME"), flowy_codegen::Project::Tauri);
|
2024-02-03 21:50:23 +00:00
|
|
|
flowy_codegen::protobuf_file::ts_gen(
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
flowy_codegen::Project::Tauri,
|
|
|
|
);
|
2024-04-03 11:25:54 +00:00
|
|
|
flowy_codegen::ts_event::gen(env!("CARGO_PKG_NAME"), flowy_codegen::Project::Tauri);
|
|
|
|
flowy_codegen::protobuf_file::ts_gen(
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
flowy_codegen::Project::TauriApp,
|
|
|
|
);
|
2024-02-03 21:50:23 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
#[cfg(feature = "web_ts")]
|
|
|
|
{
|
|
|
|
flowy_codegen::ts_event::gen(
|
|
|
|
"folder",
|
|
|
|
flowy_codegen::Project::Web {
|
|
|
|
relative_path: "../../".to_string(),
|
|
|
|
},
|
|
|
|
);
|
|
|
|
flowy_codegen::protobuf_file::ts_gen(
|
|
|
|
env!("CARGO_PKG_NAME"),
|
|
|
|
"folder",
|
|
|
|
flowy_codegen::Project::Web {
|
|
|
|
relative_path: "../../".to_string(),
|
|
|
|
},
|
|
|
|
);
|
2024-01-29 21:36:27 +00:00
|
|
|
}
|
2023-04-13 10:53:51 +00:00
|
|
|
}
|