From 677457279d6efe5eeabd22e5b9f99a042d029f11 Mon Sep 17 00:00:00 2001 From: Aleksey Kulikov Date: Fri, 17 Sep 2021 21:50:00 +0300 Subject: [PATCH] docs: add readme with ffigen command for compiler options --- README.md | 7 +++++++ libgit2/headers/git2/sys/credential.h | 4 ++-- pubspec.yaml | 4 ---- 3 files changed, 9 insertions(+), 6 deletions(-) create mode 100644 README.md diff --git a/README.md b/README.md new file mode 100644 index 0000000..1e0e3a3 --- /dev/null +++ b/README.md @@ -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" +``` diff --git a/libgit2/headers/git2/sys/credential.h b/libgit2/headers/git2/sys/credential.h index f274c91..bb4c9f9 100644 --- a/libgit2/headers/git2/sys/credential.h +++ b/libgit2/headers/git2/sys/credential.h @@ -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 diff --git a/pubspec.yaml b/pubspec.yaml index e961de8..5b549a7 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -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"