2021-07-04 15:31:33 +00:00
|
|
|
|
|
|
|
[tasks.pb]
|
2021-07-05 07:33:39 +00:00
|
|
|
dependencies = ["gen_pb_file"]
|
2021-07-04 15:31:33 +00:00
|
|
|
|
|
|
|
[tasks.gen_pb_file]
|
|
|
|
script = [
|
|
|
|
"""
|
2021-07-08 05:47:11 +00:00
|
|
|
flowy_tool=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/scripts/flowy-tool/Cargo.toml
|
2021-07-04 15:31:33 +00:00
|
|
|
rust_source=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/
|
2021-07-05 07:33:39 +00:00
|
|
|
rust_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib
|
|
|
|
flutter_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages
|
2021-07-04 15:31:33 +00:00
|
|
|
|
2021-07-05 07:33:39 +00:00
|
|
|
derive_meta=${rust_lib}/flowy-derive/src/derive_cache/derive_cache.rs
|
2021-07-06 01:08:24 +00:00
|
|
|
flutter_package_lib=${flutter_lib}/flowy_sdk/lib
|
2021-07-05 07:33:39 +00:00
|
|
|
|
|
|
|
cargo run \
|
2021-07-08 05:47:11 +00:00
|
|
|
--manifest-path ${flowy_tool} pb-gen \
|
2021-07-05 07:33:39 +00:00
|
|
|
--rust_source=${rust_source} \
|
|
|
|
--derive_meta=${derive_meta} \
|
2021-07-06 01:08:24 +00:00
|
|
|
--flutter_package_lib=${flutter_package_lib}
|
2021-07-04 15:31:33 +00:00
|
|
|
""",
|
|
|
|
]
|
|
|
|
script_runner = "@shell"
|
2021-07-08 05:47:11 +00:00
|
|
|
|
|
|
|
|
2021-11-17 13:45:18 +00:00
|
|
|
[tasks.gen_pb_file.windows]
|
|
|
|
script = [
|
|
|
|
"""
|
|
|
|
flowy_tool=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/scripts/flowy-tool/Cargo.toml
|
|
|
|
rust_source=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/
|
|
|
|
rust_lib=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib
|
|
|
|
flutter_lib=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages
|
|
|
|
|
|
|
|
derive_meta=set ${rust_lib}/flowy-derive/src/derive_cache/derive_cache.rs
|
|
|
|
flutter_package_lib=set ${flutter_lib}/flowy_sdk/lib
|
|
|
|
|
|
|
|
exec cmd /c cargo run \
|
|
|
|
--manifest-path ${flowy_tool} pb-gen \
|
|
|
|
--rust_source=${rust_source} \
|
|
|
|
--derive_meta=${derive_meta} \
|
|
|
|
--flutter_package_lib=${flutter_package_lib}
|
|
|
|
""",
|
|
|
|
]
|
|
|
|
script_runner = "@duckscript"
|
|
|
|
|
|
|
|
|
2021-07-08 05:47:11 +00:00
|
|
|
[tasks.gen_dart_event]
|
|
|
|
script = [
|
|
|
|
"""
|
|
|
|
flowy_tool=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/scripts/flowy-tool/Cargo.toml
|
|
|
|
flutter_lib=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages
|
|
|
|
|
|
|
|
rust_source=${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/
|
|
|
|
output=${flutter_lib}/flowy_sdk/lib/dispatch/code_gen.dart
|
|
|
|
|
|
|
|
cargo run \
|
|
|
|
--manifest-path ${flowy_tool} dart-event \
|
|
|
|
--rust_source=${rust_source} \
|
|
|
|
--output=${output}
|
|
|
|
""",
|
|
|
|
]
|
|
|
|
script_runner = "@shell"
|
2021-11-17 13:45:18 +00:00
|
|
|
|
|
|
|
[tasks.gen_dart_event.windows]
|
|
|
|
script = [
|
|
|
|
"""
|
|
|
|
flowy_tool=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/scripts/flowy-tool/Cargo.toml
|
|
|
|
flutter_lib=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/app_flowy/packages
|
|
|
|
|
|
|
|
rust_source=set ${CARGO_MAKE_WORKSPACE_WORKING_DIRECTORY}/rust-lib/
|
|
|
|
output=set ${flutter_lib}/flowy_sdk/lib/dispatch/code_gen.dart
|
|
|
|
|
|
|
|
exec cmd.exe /c cargo run \
|
|
|
|
--manifest-path ${flowy_tool} dart-event \
|
|
|
|
--rust_source=${rust_source} \
|
|
|
|
--output=${output}
|
|
|
|
""",
|
|
|
|
]
|
|
|
|
script_runner = "@duckscript"
|