feat: move .a lib
This commit is contained in:
19
__ffi/dotalib/README.md
Normal file
19
__ffi/dotalib/README.md
Normal file
@@ -0,0 +1,19 @@
|
||||
|
||||
Install cbindgen:
|
||||
https://github.com/eqrion/cbindgen
|
||||
|
||||
C++
|
||||
```shell
|
||||
cbindgen --config cbindgen.toml --crate dotalib --output dotalib.h
|
||||
```
|
||||
|
||||
C
|
||||
```shell
|
||||
cbindgen --config cbindgen.toml --crate dotalib --lang c --output dotalib.h
|
||||
```
|
||||
|
||||
Compile
|
||||
```shell
|
||||
cargo build
|
||||
gcc -Ltarget/debug/ -ldota test.c
|
||||
```
|
||||
Reference in New Issue
Block a user