-
-
Notifications
You must be signed in to change notification settings - Fork 144
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add protobuf compilation to build
- Loading branch information
1 parent
305fe82
commit ea2cfb9
Showing
5 changed files
with
948 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,6 +3,7 @@ | |
cmake-build-debug/ | ||
.kdev4/ | ||
.vscode/ | ||
generated/ | ||
|
||
libraries/mono/ | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
rm -rf temp/ generated/ | ||
mkdir -p temp generated | ||
mkdir -p generated | ||
|
||
cp ../../libraries/GameTracking-CS2/Protobufs/*.proto temp/ | ||
|
||
for file in temp/*.proto; do | ||
echo 'syntax = "proto2";' | cat - $file > temp/tempfile && mv temp/tempfile $file | ||
done | ||
|
||
./protoc --cpp_out=../generated -I=temp -I=. temp/*.proto > /dev/null 2>&1 | ||
|
||
rm -r temp |
Oops, something went wrong.