add fgviewer/matdbg to build.dart and bump Filament version number

This commit is contained in:
Nick Fisher
2025-03-28 15:51:54 +08:00
parent 667397ad83
commit a26eacb247

View File

@@ -89,7 +89,6 @@ void main(List<String> args) async {
"meshoptimizer", "meshoptimizer",
"mikktspace", "mikktspace",
"geometry", "geometry",
"geometry_combined",
"utils", "utils",
"filabridge", "filabridge",
"gltfio_core", "gltfio_core",
@@ -109,7 +108,8 @@ void main(List<String> args) async {
"smol-v", "smol-v",
"uberarchive", "uberarchive",
"zstd", "zstd",
"basis_transcoder" "basis_transcoder",
if (config.targetOS == OS.macOS) ...["matdbg", "fgviewer"]
]; ];
if (platform == "windows") { if (platform == "windows") {
@@ -124,7 +124,8 @@ void main(List<String> args) async {
final flags = []; //"-fsanitize=address"]; final flags = []; //"-fsanitize=address"];
final defines = <String, String?>{ final defines = <String, String?>{
// "ENABLE_TRACING": "1" // uncomment this to enable (very verbose) trace logging // uncomment this to enable (very verbose) trace logging
// "ENABLE_TRACING": "1"
}; };
var frameworks = []; var frameworks = [];
@@ -232,8 +233,11 @@ void main(List<String> args) async {
compilerPath = compilerPath.substring(1); compilerPath = compilerPath.substring(1);
} }
var ndkRoot = var ndkRoot = File(compilerPath)
File(compilerPath).parent.parent.uri.toFilePath(windows: Platform.isWindows); .parent
.parent
.uri
.toFilePath(windows: Platform.isWindows);
var stlPath = File([ var stlPath = File([
ndkRoot, ndkRoot,
@@ -295,7 +299,7 @@ void main(List<String> args) async {
}); });
} }
String _FILAMENT_VERSION = "v1.56.4"; String _FILAMENT_VERSION = "v1.58.0";
String _getLibraryUrl(String platform, String mode) { String _getLibraryUrl(String platform, String mode) {
return "https://pub-c8b6266320924116aaddce03b5313c0a.r2.dev/filament-${_FILAMENT_VERSION}-${platform}-${mode}.zip"; return "https://pub-c8b6266320924116aaddce03b5313c0a.r2.dev/filament-${_FILAMENT_VERSION}-${platform}-${mode}.zip";
} }