[riot-notifications] [RIOT-OS/RIOT] pkg/nanopb: add nanoPb protocol buffers library package (#11565)

benpicco notifications at github.com
Thu Jun 20 18:04:31 CEST 2019


benpicco commented on this pull request.



> +PROTOC_GEN_NANOPB ?= protoc-gen-nanopb
+
+PROTOBUF_FILES ?= $(wildcard *.proto)
+GENSRC   += $(PROTOBUF_FILES:%.proto=$(BINDIR)/$(MODULE)/%.pb.c)
+GENOBJC  := $(GENSRC:%.c=%.o)
+
+ifneq (, $(PROTOBUF_FILES))
+  INCLUDES += -I$(BINDIR)/$(MODULE)
+endif
+
+$(SRC): $(GENSRC)
+
+$(GENSRC): $(PROTOBUF_FILES)
+	$(Q)D=$(BINDIR)/$(MODULE) && \
+	  mkdir -p "$$D" && \
+		cd $(CURDIR) && \

`make -C $(PKGDIRBASE)/nanopb/generator/proto && \`

Doesn't hurt and makes for a smoother user experience.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/11565#pullrequestreview-252387450
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20190620/ccf70f75/attachment.html>


More information about the notifications mailing list