Add Tupfile for generating protocol code

This commit is contained in:
Emery Hemingway 2021-09-06 18:25:35 +02:00
parent fbf48c441e
commit a23935b3c5
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,2 @@
type Cap* = object
discard

View File

@ -0,0 +1,5 @@
PRESERVES_SRC_DIR = ../../../../preserves/src
: $(PRESERVES_SRC_DIR)/preserves/private/preserves_schema_nim.nim |> nim c -o:%o %f |> preserves_schema_nim
: foreach *.prs | preserves_schema_nim |> ./preserves_schema_nim %f; nim check --path:$(PRESERVES_SRC_DIR) %o |> %B.nim {gen}