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
1 merge request!486Exclude dirs during build with no cbindgen.toml
...@@ -63,12 +63,14 @@ all: | headers libs ...@@ -63,12 +63,14 @@ all: | headers libs
headers: $(HEADERS_DEPS) headers: $(HEADERS_DEPS)
for header in $(HEADERS_UNPARSED); do \ for header in $(HEADERS_UNPARSED); do \
if test -f "src/header/$$header/cbindgen.toml"; then \
out=`echo "$$header" | sed 's/_/\//g'`; \ out=`echo "$$header" | sed 's/_/\//g'`; \
out="$(TARGET_HEADERS)/$$out.h"; \ out="$(TARGET_HEADERS)/$$out.h"; \
cbindgen --output "$$out" \ cbindgen --output "$$out" \
--config="src/header/$$header/cbindgen.toml" \ --config="src/header/$$header/cbindgen.toml" \
"src/header/$$header/mod.rs"; \ "src/header/$$header/mod.rs"; \
sed -i "s/va_list __valist/.../g" "$$out"; \ sed -i "s/va_list __valist/.../g" "$$out"; \
fi \
done done
clean: 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