ci: build windows

This commit is contained in:
liwei committed 2022-11-02 21:58:34 +08:00
1 parent 39aec19471
commit be75b50521
7 files changed
+126 -41

No files matched your search

@@ -70,14 +70,17 @@ class LibgopeedBootNative implements LibgopeedBoot {
}
_ffiInit() {
var libName = "libgopeed.";
if (Platform.isWindows) {
libName += "dll";
}
if (Platform.isMacOS) {
_libgopeed =
LibgopeedFFi(LibgopeedBind(DynamicLibrary.open('libgopeed.dylib')));
libName += "dylib";
}
if (Platform.isLinux) {
_libgopeed =
LibgopeedFFi(LibgopeedBind(DynamicLibrary.open('libgopeed.so')));
libName += "so";
}
_libgopeed = LibgopeedFFi(LibgopeedBind(DynamicLibrary.open(libName)));
}
// FFI run in isolate