Skip to content

Commit 5fbc4a5

Browse files
committed
Revert "Delete generate-flatbuffer-windows.ps1"
This reverts commit af9efbb.
1 parent ebf65b2 commit 5fbc4a5

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

generate-flatbuffer-windows.ps1

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$ErrorActionPreference = "Stop"
2+
3+
# TODO: check flatc version before doing anything
4+
5+
Remove-Item -ErrorAction Ignore -Recurse protocol/java/src
6+
Remove-Item -ErrorAction Ignore -Recurse protocol/cpp/include/solarxr_protocol/generated
7+
Remove-Item -ErrorAction Ignore -Recurse protocol/typescript/src
8+
Remove-Item -ErrorAction Ignore -Recurse protocol/rust/src/generated
9+
Remove-Item -ErrorAction Ignore -Recurse protocol/kotlin/src
10+
11+
12+
& "flatc" --java --gen-object-api --gen-all -o protocol/java/src -I ./schema/ ./schema/all.fbs
13+
& "flatc" --cpp --scoped-enums --gen-all -o protocol/cpp/include/solarxr_protocol/generated -I ./schema/ ./schema/all.fbs
14+
& "flatc" --ts --gen-object-api --gen-all -o protocol/typescript/src -I ./schema/ ./schema/all.fbs
15+
& "flatc" --rust --rust-module-root-file --gen-all -o protocol/rust/src/generated ./schema/all.fbs
16+
& "flatc" --kotlin --gen-jvmstatic --gen-all -o ./protocol/kotlin/src -I ./schema/ ./schema/all.fbs

0 commit comments

Comments
 (0)