From 880551aaa31a4b0346c8ac01b60ee2689e03304e Mon Sep 17 00:00:00 2001 From: Nick Fisher Date: Sat, 12 Oct 2024 15:06:57 +1100 Subject: [PATCH] cleanup --- thermion_dart/hook/build.dart | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/thermion_dart/hook/build.dart b/thermion_dart/hook/build.dart index 2be9edaa..fd374f66 100644 --- a/thermion_dart/hook/build.dart +++ b/thermion_dart/hook/build.dart @@ -150,8 +150,8 @@ void main(List args) async { assetName: 'thermion_dart.dart', sources: platform == "windows" ? [] : sources, - includes:[], // ['native/include', 'native/include/filament'], - defines: {}, //defines, + includes: platform == "windows"? [] : ['native/include', 'native/include/filament'], + defines: platform == "windows" ? {} : defines, flags: [ if (platform == "macos") '-mmacosx-version-min=13.0', if (platform == "ios") '-mios-version-min=13.0', @@ -163,12 +163,11 @@ sources, "-L$libDir", if(platform == "windows") ...[ - "/IF:\\Projects\\thermion\\thermion_dart\\native\\include", "/IF:\\Projects\\thermion\\thermion_dart\\native\\include\\filament", + "/I${config.packageRoot.toFilePath()}\\native\\include", "/I${config.packageRoot.toFilePath()}native\\include\\filament", ...sources, '/link', "/LIBPATH:$libDir", '/DLL', - // '/out:foo.dll', ] ], dartBuildFiles: ['hook/build.dart'],