findStaticLibraryFile function
Implementation
Future<String> findStaticLibraryFile(String libName, String searchDir) async {
final libPath = p.join(searchDir, libName);
if (await File(libPath).exists()) return libPath;
throw FileSystemException(
'No matching static library found for $libName. '
'Ensure xmake installs the static archive.',
libPath,
);
}