33 lines
878 B
Dart
33 lines
878 B
Dart
import 'package:logging/logging.dart';
|
|
import 'package:native_assets_cli/native_assets_cli.dart';
|
|
import 'package:native_toolchain_c/native_toolchain_c.dart';
|
|
import 'package:path/path.dart' as path;
|
|
|
|
void main(List<String> args) async {
|
|
final logger = Logger("")
|
|
..level = Level.ALL
|
|
..onRecord.listen((record) => print(
|
|
record.message + "\n"));
|
|
await build(args, (input, output) async {
|
|
final cbuilder = CBuilder.library(
|
|
name: input.packageName,
|
|
language: Language.cpp,
|
|
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(
|
|
input: input,
|
|
output: output,
|
|
logger: logger,
|
|
);
|
|
|
|
});
|
|
}
|
|
|