aboutsummaryrefslogtreecommitdiffhomepage
path: root/Firestore/Protos/build-protos.sh
diff options
context:
space:
mode:
authorGravatar Rich Gowman <rgowman@google.com>2018-02-02 13:54:39 -0500
committerGravatar Rich Gowman <rgowman@google.com>2018-02-06 10:02:30 -0500
commit9a71ce8e677cdd1bff4c8fd21666a074d1e893b7 (patch)
tree7822cfa47465b7c0533f284a43e7ad5693210f25 /Firestore/Protos/build-protos.sh
parent78e16f52a57822dc0b37ae18ca187b7952098400 (diff)
Import "well-known" protos (and generated nanopb files)
For use by nanopb (which otherwise doesn't know what to do with these.)
Diffstat (limited to 'Firestore/Protos/build-protos.sh')
-rwxr-xr-xFirestore/Protos/build-protos.sh4
1 files changed, 4 insertions, 0 deletions
diff --git a/Firestore/Protos/build-protos.sh b/Firestore/Protos/build-protos.sh
index 5c3aa53..ced0ee5 100755
--- a/Firestore/Protos/build-protos.sh
+++ b/Firestore/Protos/build-protos.sh
@@ -27,6 +27,10 @@ pod update
--nanopb_out="--options-file=protos/%s.options:nanopb" \
`find protos -name *.proto -print | xargs`
+# Remove "well-known" protos from objc. (We get these for free. We only need
+# them for nanopb.)
+rm -rf objc/google/protobuf/
+
# If a proto uses a field named 'delete', nanopb happily uses that in the
# message definition. Works fine for C; not so much for C++. Rename uses of this
# to delete_ (which is how protoc does it for c++ files.)