docs: add readme with ffigen command for compiler options

This commit is contained in:
Aleksey Kulikov 2021-09-17 21:50:00 +03:00
parent 2fd43f3efe
commit 677457279d
3 changed files with 9 additions and 6 deletions

7
README.md Normal file
View file

@ -0,0 +1,7 @@
## Development
To generate bindings with ffigen use (adjust paths to yours):
```bash
dart run ffigen --compiler-opts "-I/path/to/libgit2dart/libgit2/headers/ -I/lib64/clang/12.0.1/include"
```

View file

@ -7,8 +7,8 @@
#ifndef INCLUDE_sys_git_credential_h__
#define INCLUDE_sys_git_credential_h__
#include "../common.h"
#include "../credential.h"
#include "git2/common.h"
#include "git2/credential.h"
/**
* @file git2/sys/cred.h

View file

@ -23,7 +23,3 @@ ffigen:
comments:
style: any
length: full
llvm-path:
- "/usr/lib64/libclang.so"
compiler-opts:
- "-I/lib64/clang/12.0.1/include"