ObjectiveCSourceSet

A set of Objective-C source files.

An ObjectiveC source set contains a set of source files, together with an optional set of exported header files.

plugins {
    id 'objective-c'
}

model {
    components {
        main(NativeLibrarySpec) {
            sources {
                objc {
                    source {
                        srcDirs "src/main/objectiveC", "src/shared/objectiveC"
                        include "**/*.m"
                    }
                    exportedHeaders {
                        srcDirs "src/main/include"
                    }
                }
            }
        }
    }
}

Functions

Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
Link copied to clipboard
abstract fun generatedBy(generatorTask: Task)
Link copied to clipboard
Link copied to clipboard
abstract fun getBuildTask(): Task
Link copied to clipboard
abstract fun getDisplayName(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun getLibs(): Collection<out Any>
Link copied to clipboard
abstract fun getName(): String
Link copied to clipboard
abstract fun getParentName(): String
Link copied to clipboard
Link copied to clipboard
abstract fun getProjectPath(): String
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract fun lib(library: Any)
Link copied to clipboard
abstract fun setBuildTask(buildTask: Task)
Link copied to clipboard
abstract fun setPreCompiledHeader(header: String)