Skip to content
Snippets Groups Projects
Commit 51e264dd authored by Agoston Szepessy's avatar Agoston Szepessy
Browse files

Exclude dirs with no cbindgen.toml

Fixes the panic that occurs on builds.
parent 312b66e5
No related branches found
No related tags found
No related merge requests found
......@@ -63,12 +63,14 @@ all: | headers libs
headers: $(HEADERS_DEPS)
for header in $(HEADERS_UNPARSED); do \
if test -f "src/header/$$header/cbindgen.toml"; then \
out=`echo "$$header" | sed 's/_/\//g'`; \
out="$(TARGET_HEADERS)/$$out.h"; \
cbindgen --output "$$out" \
--config="src/header/$$header/cbindgen.toml" \
"src/header/$$header/mod.rs"; \
sed -i "s/va_list __valist/.../g" "$$out"; \
fi \
done
clean:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment