lets try it again!
This commit is contained in:
parent
698d000f11
commit
c2a7c08c31
2 changed files with 11 additions and 2 deletions
|
|
@ -44,11 +44,14 @@
|
||||||
go
|
go
|
||||||
olm
|
olm
|
||||||
git
|
git
|
||||||
|
llvm
|
||||||
|
clang
|
||||||
flutter
|
flutter
|
||||||
];
|
];
|
||||||
|
|
||||||
env = {
|
env = {
|
||||||
LD_LIBRARY_PATH = "${pkgs.llvmPackages.libclang.lib}/lib:./build/native_assets/linux";
|
LIBCLANG_PATH = "${pkgs.libclang.lib}/lib";
|
||||||
|
LD_LIBRARY_PATH = "./build/native_assets/linux";
|
||||||
CPATH = lib.makeSearchPath "include" [ pkgs.glibc.dev ];
|
CPATH = lib.makeSearchPath "include" [ pkgs.glibc.dev ];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -25,6 +25,8 @@ void main(List<String> args) async {
|
||||||
}
|
}
|
||||||
|
|
||||||
print("Generating FFI Bindings...");
|
print("Generating FFI Bindings...");
|
||||||
|
|
||||||
|
final libclangPath = Platform.environment["LIBCLANG_PATH"];
|
||||||
FfiGenerator(
|
FfiGenerator(
|
||||||
output: Output(
|
output: Output(
|
||||||
dartFile: Platform.script.resolve("../lib/src/third_party/gomuks.g.dart"),
|
dartFile: Platform.script.resolve("../lib/src/third_party/gomuks.g.dart"),
|
||||||
|
|
@ -34,6 +36,10 @@ void main(List<String> args) async {
|
||||||
compilerOptions: ["--no-warnings"],
|
compilerOptions: ["--no-warnings"],
|
||||||
),
|
),
|
||||||
functions: Functions.includeAll,
|
functions: Functions.includeAll,
|
||||||
).generate();
|
).generate(
|
||||||
|
libclangDylib: libclangPath == null
|
||||||
|
? null
|
||||||
|
: Uri.file(join(libclangPath, "libclang.so")),
|
||||||
|
);
|
||||||
print("Done!");
|
print("Done!");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue