mirror of
https://github.com/SkinnyMind/libgit2dart.git
synced 2025-05-04 20:29:08 -04:00
docs: add readme with ffigen command for compiler options
This commit is contained in:
parent
2fd43f3efe
commit
677457279d
3 changed files with 9 additions and 6 deletions
7
README.md
Normal file
7
README.md
Normal 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"
|
||||||
|
```
|
|
@ -7,8 +7,8 @@
|
||||||
#ifndef INCLUDE_sys_git_credential_h__
|
#ifndef INCLUDE_sys_git_credential_h__
|
||||||
#define INCLUDE_sys_git_credential_h__
|
#define INCLUDE_sys_git_credential_h__
|
||||||
|
|
||||||
#include "../common.h"
|
#include "git2/common.h"
|
||||||
#include "../credential.h"
|
#include "git2/credential.h"
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @file git2/sys/cred.h
|
* @file git2/sys/cred.h
|
||||||
|
|
|
@ -23,7 +23,3 @@ ffigen:
|
||||||
comments:
|
comments:
|
||||||
style: any
|
style: any
|
||||||
length: full
|
length: full
|
||||||
llvm-path:
|
|
||||||
- "/usr/lib64/libclang.so"
|
|
||||||
compiler-opts:
|
|
||||||
- "-I/lib64/clang/12.0.1/include"
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue