-
Notifications
You must be signed in to change notification settings - Fork 0
/
compile.sh
57 lines (44 loc) · 1.02 KB
/
compile.sh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
#!/bin/bash
#if ! [ -x "$(command -v flatc)" ]; then
# echo 'Error: flatc is not available.' >&2
# exit 1
#else
# flatc --version
#fi
echo Compiling PPX to C++...
rm -rf cpp
./flatc --cpp -o cpp ppx.fbs
echo Compiling PPX to C#...
rm -rf csharp
./flatc --csharp -o csharp ppx.fbs
echo Compiling PPX to Dart...
rm -rf dart
./flatc --dart -o dart ppx.fbs
echo Compiling PPX to Go...
rm -rf go
./flatc --go -o go ppx.fbs
echo Compiling PPX to Java...
rm -rf java
./flatc --java -o java ppx.fbs
echo Compiling PPX to JavaScript...
rm -rf js
./flatc --js -o js ppx.fbs
echo Compiling PPX to Lobster...
rm -rf lobster
./flatc --lobster -o lobster ppx.fbs
echo Compiling PPX to Lua...
rm -rf lua
./flatc --lua -o lua ppx.fbs
echo Compiling PPX to PHP...
rm -rf php
./flatc --php -o php ppx.fbs
echo Compiling PPX to Python...
rm -rf python
./flatc --python -o python ppx.fbs
echo Compiling PPX to Rust...
rm -rf rust
./flatc --rust -o rust ppx.fbs
echo Compiling PPX to TypeScript...
rm -rf ts
./flatc --ts -o ts ppx.fbs
echo Done.