SConscript 343 B

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