xref: /aosp_15_r20/external/cronet/build/android/gyp/proto/README.md (revision 6777b5387eb2ff775bb5750e3f5d96f37fb7352b)
1# Protos
2These protos are generated from Resources.proto and Configuration.proto from the
3Android repo. They are found in the frameworks/base/tools/aapt2/ directory. To
4regenerate these if there are changes, run this command from the root of an
5Android checkout:
6
7   protoc --python_out=some_dir frameworks/base/tools/aapt2/Resources.proto \
8      frameworks/base/tools/aapt2/Configuration.proto
9
10Then copy the resulting \*pb2.py files from some_dir here. To make sure
11Resources_pb2.py is able to import Configuration_pb2.py, replace the
12"from frameworks.base.tools.aapt2" portion of the import statement with
13"from ." so it will instead be imported from the current directory.
14