-
Notifications
You must be signed in to change notification settings - Fork 45
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add an example of extension yaml file
- Loading branch information
1 parent
df5bdea
commit 11eddf5
Showing
5 changed files
with
1,951 additions
and
1 deletion.
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 |
---|---|---|
@@ -0,0 +1 @@ | ||
doc |
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,34 @@ | ||
.PHONY: all all-help-message fix gen gen-check doc | ||
|
||
# default target if you just type `make` | ||
all: all-help-message fix gen doc | ||
|
||
# help message before starting `make all` | ||
all-help-message: help | ||
@echo 'Running default targets: fix gen doc' | ||
|
||
help: | ||
@echo 'Targets are: all, help, fix, gen, gen-check, doc' | ||
|
||
fix: webgpu.yml | ||
go run ../../fix -yaml webgpu-sample-extension.yml | ||
|
||
gen: ../../schema.json webgpu-sample-extension.yml | ||
go run ../../gen -schema ../../schema.json -yaml webgpu-sample-extension.yml -header webgpu-sample-extension.h | ||
|
||
gen-check: fix gen | ||
@git diff --quiet -- webgpu-sample-extension.h || { \ | ||
echo "error: The re-generated header from yml doesn't match the checked-in header"; \ | ||
git diff -- webgpu-sample-extension.h; \ | ||
exit 1; \ | ||
} | ||
@git diff --quiet -- webgpu-sample-extension.yml || { \ | ||
echo "error: Please re-run 'make fix' to format the yml"; \ | ||
git diff -- webgpu-sample-extension.yml; \ | ||
exit 1; \ | ||
} | ||
|
||
doc: webgpu-sample-extension.h Doxyfile | ||
doxygen Doxyfile | ||
# Verify that no ` or :: made it through into the final docs | ||
! grep -RE '`|>::' doc/generated/**/*.html |
Oops, something went wrong.