summaryrefslogtreecommitdiff
path: root/tools/amalgamate.py
diff options
context:
space:
mode:
authorJosh Haberman <jhaberman@gmail.com>2018-03-07 16:30:21 -0800
committerJosh Haberman <jhaberman@gmail.com>2018-03-07 16:30:21 -0800
commitcea737028f7d34e6415c0de5d34587245624db2b (patch)
tree981332e74e56a8d025c6402de0f515b6ca2bd6eb /tools/amalgamate.py
parent6edcf6a82a1d49d784302c152735e4bdba6d643e (diff)
Added google/protobuf/descriptor.upb.* to core.
This is in preparation for making upb_def capable of parsing binary descriptors directly. We leave upb/descriptor/descriptor.upbdefs.* in place for now, because upb/descriptor/reader.* still depends on it. Also removed a bit of cruft from the codegen.
Diffstat (limited to 'tools/amalgamate.py')
-rwxr-xr-xtools/amalgamate.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tools/amalgamate.py b/tools/amalgamate.py
index 6fd8033..b496f24 100755
--- a/tools/amalgamate.py
+++ b/tools/amalgamate.py
@@ -24,7 +24,8 @@ class Amalgamator:
def _process_file(self, infile_name, outfile):
for line in open(infile_name):
include = parse_include(line)
- if include is not None and include.startswith("upb"):
+ if include is not None and (include.startswith("upb") or
+ include.startswith("google")):
if include not in self.included:
self.included.add(include)
self._add_header(self.include_path + include)
generated by cgit on debian on lair
contact matthew@masot.net with questions or feedback