use of com.android.builder.model.NativeFile in project android by JetBrains.
the class NativeAndroidLibraryNode method getSourceFiles.
@NotNull
private static List<VirtualFile> getSourceFiles(@NotNull NativeArtifact artifact) {
List<File> sourceFiles = Lists.newArrayList();
for (NativeFile sourceFile : artifact.getSourceFiles()) {
File source = sourceFile.getFilePath();
sourceFiles.add(source);
for (String extension : HEADER_FILE_EXTENSIONS) {
sourceFiles.add(new File(source.getParentFile(), getNameWithoutExtension(source) + "." + extension));
}
}
return convertToVirtualFiles(sourceFiles);
}
Aggregations