From 9c555c9ec05e386101a26059fbfae2b96d43d11a Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 2 Nov 2024 16:29:36 +0800 Subject: [PATCH] chore: update cli_windows project --- examples/dart/cli_windows/hook/build.dart | 4 ++++ examples/dart/cli_windows/pubspec.yaml | 22 +++++++++++++++++++++- 2 files changed, 25 insertions(+), 1 deletion(-) diff --git a/examples/dart/cli_windows/hook/build.dart b/examples/dart/cli_windows/hook/build.dart index e4adc929..e68e027a 100644 --- a/examples/dart/cli_windows/hook/build.dart +++ b/examples/dart/cli_windows/hook/build.dart @@ -11,6 +11,8 @@ void main(List args) async { ..onRecord.listen((record) => print( record.message + "\n")); + + await build(args, (config, output) async { final cbuilder = CBuilder.library( name: "thermion_window", @@ -23,6 +25,8 @@ void main(List args) async { dartBuildFiles: ['hook/build.dart'], ); + + await cbuilder.run( buildConfig: config, buildOutput: output, diff --git a/examples/dart/cli_windows/pubspec.yaml b/examples/dart/cli_windows/pubspec.yaml index 6b398062..ee9d29e6 100644 --- a/examples/dart/cli_windows/pubspec.yaml +++ b/examples/dart/cli_windows/pubspec.yaml @@ -10,9 +10,29 @@ environment: dependencies: args: ^2.5.0 thermion_dart: - path: F:\Projects\thermion\thermion_dart + path: ../../../thermion_dart ffi: ^2.1.3 + vector_math: ^2.1.4 + native_toolchain_c: ^0.4.2 + native_assets_cli: ^0.6.1 dev_dependencies: lints: ^5.0.0 test: ^1.24.0 + ffigen: ^13.0.0 +ffigen: + output: 'lib/thermion_window.g.dart' + headers: + entry-points: + - 'native/thermion_window.h' + include-directives: + - 'native/thermion_window.h' + ffi-native: + assetId: package:thermion_window/thermion_window.dart + ignore-source-errors: true + functions: + leaf: + include: + - '.*' + +