-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* support wasm based bindings * update go version * fix test case * remove debug code
- Loading branch information
Showing
880 changed files
with
36,521 additions
and
1,085,118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,6 @@ | ||
*.o | ||
*.svg | ||
*.png | ||
*.jpg | ||
.DS_Store | ||
bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
export | ||
|
||
CONTAINER_NAME := graphviz-wasm | ||
IMAGE_NAME := graphviz-wasm | ||
GOBIN := $(PWD)/bin | ||
PATH := $(GOBIN):internal/tools/nori/bin:$(PATH) | ||
|
||
.PHONY: tools | ||
tools: nori | ||
go install github.com/bufbuild/buf/cmd/[email protected] | ||
|
||
fmt/buf: | ||
buf format --write | ||
|
||
generate/wasm: container/build | ||
$(eval CONTAINER_ID := $(shell docker create graphviz-wasm)) | ||
docker cp "$(CONTAINER_ID):/work/graphviz.wasm" ./internal/wasm/graphviz.wasm | ||
|
||
container/build: | ||
docker build ./internal/wasm/build -t $(IMAGE_NAME) --build-arg GRAPHVIZ_VERSION=$(shell cat graphviz.version) | ||
|
||
container/prune: | ||
docker container prune | ||
|
||
.PHONY: generate/buf | ||
generate/buf: | ||
$(GOBIN)/buf generate | ||
mv bind.c internal/wasm/build | ||
mv bind.go internal/wasm/ | ||
|
||
.PHONY: nori | ||
nori: | ||
make build -C ./internal/tools/nori |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.