gradle
8.3

# ObjectiveCSourceSet

@Incubating
interface ObjectiveCSourceSet : HeaderExportingSourceSet, LanguageSourceSet, DependentSourceSet

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"
                        }
                    }
                }
            }
        }
    }

Content copied to clipboard

## Functions

builtBy
Link copied to clipboard
abstract fun builtBy(tasks: Array<Any>)
generatedBy
Link copied to clipboard
abstract fun generatedBy(generatorTask: Task)
getBuildDependencies
Link copied to clipboard
abstract fun getBuildDependencies(): TaskDependency
getBuildTask
Link copied to clipboard
abstract fun getBuildTask(): Task
getDisplayName
Link copied to clipboard
abstract fun getDisplayName(): String
getExportedHeaders
Link copied to clipboard
abstract fun getExportedHeaders(): SourceDirectorySet
getImplicitHeaders
Link copied to clipboard
abstract fun getImplicitHeaders(): SourceDirectorySet
getLibs
Link copied to clipboard
abstract fun getLibs(): Collection<out Any>
getName
Link copied to clipboard
abstract fun getName(): String
getParentName
Link copied to clipboard
abstract fun getParentName(): String
getPreCompiledHeader
Link copied to clipboard
abstract fun getPreCompiledHeader(): String
getProjectPath
Link copied to clipboard
abstract fun getProjectPath(): String
getSource
Link copied to clipboard
abstract fun getSource(): SourceDirectorySet
hasBuildDependencies
Link copied to clipboard
abstract fun hasBuildDependencies(): Boolean
lib
Link copied to clipboard
abstract fun lib(library: Any)
setBuildTask
Link copied to clipboard
abstract fun setBuildTask(buildTask: Task)
setPreCompiledHeader
Link copied to clipboard
abstract fun setPreCompiledHeader(header: String)