Search in sources :

Example 1 with NativeFile

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);
}
Also used : NativeFile(com.android.builder.model.NativeFile) VirtualFile(com.intellij.openapi.vfs.VirtualFile) NativeFile(com.android.builder.model.NativeFile) File(java.io.File) NotNull(org.jetbrains.annotations.NotNull)

Aggregations

NativeFile (com.android.builder.model.NativeFile)1 VirtualFile (com.intellij.openapi.vfs.VirtualFile)1 File (java.io.File)1 NotNull (org.jetbrains.annotations.NotNull)1