Skip to content

Commit

Permalink
Add pre-generated C header
Browse files Browse the repository at this point in the history
  • Loading branch information
h33p committed Nov 26, 2021
1 parent 635f06f commit ad3df4c
Show file tree
Hide file tree
Showing 6 changed files with 608 additions and 9 deletions.
9 changes: 0 additions & 9 deletions examples/cpp-header/bindgen.sh

This file was deleted.

12 changes: 12 additions & 0 deletions examples/pregen-headers/bindgen.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/sh

OUT_CPP=${PWD}/bindings.hpp
OUT=${PWD}/bindings.h
CFG=${PWD}/cbindgen.toml
CGLUE_CFG=${PWD}/cglue.toml

cd ../plugin-api

../../target/release/cglue-bindgen +nightly -c $CGLUE_CFG -- --config $CFG --crate plugin-api --output $OUT_CPP -l C++

../../target/release/cglue-bindgen +nightly -c $CGLUE_CFG -- --config $CFG --crate plugin-api --output $OUT -l C
Loading

0 comments on commit ad3df4c

Please sign in to comment.