From a23935b3c5e87271b85b422b29567e7210b94d7b Mon Sep 17 00:00:00 2001 From: Emery Hemingway Date: Mon, 6 Sep 2021 18:25:35 +0200 Subject: [PATCH] Add Tupfile for generating protocol code --- src/syndicate/protocols/schemas/EntityRef.nim | 2 ++ src/syndicate/protocols/schemas/Tupfile | 5 +++++ 2 files changed, 7 insertions(+) create mode 100644 src/syndicate/protocols/schemas/EntityRef.nim create mode 100644 src/syndicate/protocols/schemas/Tupfile diff --git a/src/syndicate/protocols/schemas/EntityRef.nim b/src/syndicate/protocols/schemas/EntityRef.nim new file mode 100644 index 0000000..0aac8ed --- /dev/null +++ b/src/syndicate/protocols/schemas/EntityRef.nim @@ -0,0 +1,2 @@ +type Cap* = object + discard diff --git a/src/syndicate/protocols/schemas/Tupfile b/src/syndicate/protocols/schemas/Tupfile new file mode 100644 index 0000000..ab46249 --- /dev/null +++ b/src/syndicate/protocols/schemas/Tupfile @@ -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}