private void createSupportFilesHelper(@NonNull File rawFolder,
@NonNull Abi[] abis,
@NonNull CommandLineLauncher launcher,
@NonNull Map<String, String> env
) throws IOException, InterruptedException{
SourceSearcher searcher = new SourceSearcher(Collections.singletonList(rawFolder), EXT_BC);
FileGatherer fileGatherer = new FileGatherer();
searcher.search(fileGatherer);
for (File bcFile : fileGatherer.getFiles()) {
String name = bcFile.getName();
String objName = name.replaceAll("\\.bc", ".o");
String soName = "librs." + name.replaceAll("\\.bc", ".so");
for (Abi abi : abis) {
if (mLibClCore.get(abi.mDevice) == null) {
continue;
}
File objFile = createSupportObjFile(bcFile, abi, objName, launcher, env);
createSupportLibFile(objFile, abi, soName, launcher, env);
}
}
}