mirror of
https://github.com/wgh136/flutter_qjs.git
synced 2025-09-27 13:27:24 +00:00
macos ffi
This commit is contained in:
@@ -53,15 +53,13 @@ final DynamicLibrary qjsLib = Platform.environment['FLUTTER_TEST'] == 'true'
|
||||
? (Platform.isWindows
|
||||
? DynamicLibrary.open("test/build/Debug/ffiquickjs.dll")
|
||||
: Platform.isMacOS
|
||||
? DynamicLibrary.open("macos/flutterqjs.framework/flutterqjs")
|
||||
? DynamicLibrary.open("test/build/Debug/libffiquickjs.dylib")
|
||||
: DynamicLibrary.process())
|
||||
: (Platform.isWindows
|
||||
? DynamicLibrary.open("flutter_qjs_plugin.dll")
|
||||
: Platform.isAndroid
|
||||
? DynamicLibrary.open("libqjs.so")
|
||||
: Platform.isIOS || Platform.isMacOS
|
||||
? DynamicLibrary.open("flutterqjs.framework/flutterqjs")
|
||||
: DynamicLibrary.process());
|
||||
: DynamicLibrary.process());
|
||||
|
||||
/// JSValue *jsThrowInternalError(JSContext *ctx, char *message)
|
||||
final Pointer Function(
|
||||
|
Reference in New Issue
Block a user