update Dart cli_windows example
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
import 'dart:io';
|
||||
import 'package:archive/archive.dart';
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:native_assets_cli/native_assets_cli.dart';
|
||||
import 'package:native_toolchain_c/native_toolchain_c.dart';
|
||||
@@ -10,23 +8,22 @@ void main(List<String> args) async {
|
||||
..level = Level.ALL
|
||||
..onRecord.listen((record) => print(
|
||||
record.message + "\n"));
|
||||
|
||||
await build(args, (config, output) async {
|
||||
|
||||
await build(args, (input, output) async {
|
||||
final cbuilder = CBuilder.library(
|
||||
name: "thermion_window",
|
||||
name: input.packageName,
|
||||
language: Language.cpp,
|
||||
assetName: 'thermion_window.dart',
|
||||
assetName: 'cli_windows.dart',
|
||||
sources: ['native/thermion_window.cpp'],
|
||||
includes: ['native', '../../../thermion_dart/native/include'],
|
||||
defines: {"UNICODE":"1"},
|
||||
flags:[],
|
||||
dartBuildFiles: ['hook/build.dart'],
|
||||
|
||||
);
|
||||
|
||||
await cbuilder.run(
|
||||
buildConfig: config,
|
||||
buildOutput: output,
|
||||
input: input,
|
||||
output: output,
|
||||
logger: logger,
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user