1Import("env") 2 3# Encode cyclic messages with callback fields 4 5c = Copy("$TARGET", "$SOURCE") 6env.Command("cyclic_callback.proto", "cyclic.proto", c) 7env.NanopbProto(["cyclic_callback", "cyclic_callback.options"]) 8 9enc_callback = env.Program(["encode_cyclic_callback.c", "cyclic_callback.pb.c", "$COMMON/pb_encode.o", "$COMMON/pb_common.o"]) 10 11 12