chore: update cli_windows project

This commit is contained in:
Nick Fisher
2024-11-02 16:29:36 +08:00
parent 671880b405
commit 9c555c9ec0
2 changed files with 25 additions and 1 deletions

View File

@@ -11,6 +11,8 @@ void main(List<String> 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<String> args) async {
dartBuildFiles: ['hook/build.dart'],
);
await cbuilder.run(
buildConfig: config,
buildOutput: output,

View File

@@ -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:
- '.*'