Skip to content

Compile Proto

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

NameDescription
compile_proto.add_api_macroPrefix Unreal *_API macros on generated gRPC Service virtual methods.
compile_proto.add_third_party_include_guardsWrap generated protobuf / gRPC #include blocks for Unreal Engine.
compile_proto.default_warningsDefault MSVC warning numbers to silence in generated gRPC C++.
compile_proto.disable_warningsInsert MSVC #pragma warning(disable: …) lines into generated C++ sources.
compile_proto.ensure_ue_verify_macro_sandboxUE defines verify as a macro; Abseil’s btree containers use a member named verify.
compile_proto.fix_importsRewrite plain protobuf imports to schola.generated package paths.
compile_proto.get_expected_generated_filesCompute expected generated basenames for the current .proto set.
compile_proto.get_filesList regular files in a directory (non-recursive).
compile_proto.get_generated_cpp_file_typesClassify generated C++ protobuf / gRPC outputs in a folder.
compile_proto.get_generated_python_file_typesClassify generated Python _pb2 and _pb2_grpc modules.
compile_proto.get_proto_filesList *.proto files in a directory.
compile_proto.make_grpc_filesRun protoc with the gRPC C++ plugin for each .proto service.
compile_proto.make_proto_filesRun protoc for each .proto to emit Python and C++ stubs.
compile_proto.move_filesMove a list of files from src_folder into target_folder.
compile_proto.remove_stale_generated_filesDelete generated artifacts in folder that are not in expected_files.