Skip to content

compile_proto.add_third_party_include_guards

Full path: schola.scripts.utils.compile_proto.add_third_party_include_guards

Wrap generated protobuf / gRPC #include blocks for Unreal Engine.

add_third_party_include_guards(folder, file_paths, include_prefix,
port_def_include, port_undef_include)

Parameters

  • folder (pathlib.Path) - Base directory containing file_paths.

  • file_paths (list) - Basenames of generated .pb / .grpc.pb C++ sources or headers.

  • include_prefix (str) - Prefix of the first third-party #include line to anchor the start guard (e.g. ‘#include “google/protobuf/’ or ‘#include <grpcpp/’).

  • port_def_include (str) - Exact #include line for port_def.inc / ports_def.inc.

  • port_undef_include (str) - Exact #include line for port_undef.inc / ports_undef.inc.