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