Skip to content

Compile Proto

Compile Schola .proto sources to Python and C++ gRPC stubs.

Name Description
compile_proto.add_api_macro Prefix Unreal *_API macros on generated gRPC Service virtual methods.
compile_proto.add_third_party_include_guards Wrap generated protobuf / gRPC #include blocks for Unreal Engine.
compile_proto.default_warnings Default MSVC warning numbers to silence in generated gRPC C++.
compile_proto.disable_warnings Insert MSVC #pragma warning(disable: …) lines into generated C++ sources.
compile_proto.ensure_ue_verify_macro_sandbox UE defines verify as a macro; Abseil’s btree containers use a member named verify.
compile_proto.fix_imports Rewrite plain protobuf imports to schola.generated package paths.
compile_proto.get_expected_generated_files Compute expected generated basenames for the current .proto set.
compile_proto.get_files List regular files in a directory (non-recursive).
compile_proto.get_generated_cpp_file_types Classify generated C++ protobuf / gRPC outputs in a folder.
compile_proto.get_generated_python_file_types Classify generated Python _pb2 and _pb2_grpc modules.
compile_proto.get_proto_files List *.proto files in a directory.
compile_proto.make_grpc_files Run protoc with the gRPC C++ plugin for each .proto service.
compile_proto.make_proto_files Run protoc for each .proto to emit Python and C++ stubs.
compile_proto.move_files Move a list of files from src_folder into target_folder.
compile_proto.remove_stale_generated_files Delete generated artifacts in folder that are not in expected_files.