Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions generate-flatbuffer-windows.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
$ErrorActionPreference = "Stop"

# TODO: check flatc version before doing anything

Remove-Item -ErrorAction Ignore -Recurse protocol/java/src
Remove-Item -ErrorAction Ignore -Recurse protocol/cpp/include/solarxr_protocol/generated
Remove-Item -ErrorAction Ignore -Recurse protocol/typescript/src
Remove-Item -ErrorAction Ignore -Recurse protocol/rust/src/generated
Remove-Item -ErrorAction Ignore -Recurse protocol/kotlin/src


& "flatc" --java --gen-object-api --gen-all -o protocol/java/src -I ./schema/ ./schema/all.fbs
& "flatc" --cpp --scoped-enums --gen-all -o protocol/cpp/include/solarxr_protocol/generated -I ./schema/ ./schema/all.fbs
& "flatc" --ts --gen-object-api --gen-all -o protocol/typescript/src -I ./schema/ ./schema/all.fbs
& "flatc" --rust --rust-module-root-file --gen-all -o protocol/rust/src/generated ./schema/all.fbs
& "flatc" --kotlin --gen-jvmstatic --gen-all -o ./protocol/kotlin/src -I ./schema/ ./schema/all.fbs
Loading