ClangModule
ClangModule.swift:19final class ClangModule
final class ClangModule
import PackageModel
class Module
protocol CustomStringConvertible
A type with a customized textual representation.
protocol Equatable
A type that can be compared for value equality.
protocol Hashable : Equatable
A type that can be hashed into a Hasher
to produce an integer hash value.
init(name: String, potentialBundleName: String? = nil, cLanguageStandard: String?, cxxLanguageStandard: String?, includeDir: AbsolutePath, moduleMapType: ModuleMapType, headers: [AbsolutePath] = [], type: Kind, path: AbsolutePath, sources: Sources, resources: [Resource] = [], ignored: [AbsolutePath] = [], others: [AbsolutePath] = [], dependencies: [Module.Dependency] = [], buildSettings: BuildSettings.AssignmentTable = .init(), buildSettingsDescription: [TargetBuildSettingDescription.Setting] = [], usesUnsafeFlags: Bool) throws
static let defaultPublicHeadersComponent: String
The default public include directory component.
override class var typeDescription: String { get }
Description of the module type used in swift package describe
output. Preserved for backwards compatibility.
let cLanguageStandard: String?
The C language standard flag.
let cxxLanguageStandard: String?
The C++ language standard flag.
let headers: [AbsolutePath]
The headers present in the target.
let includeDir: AbsolutePath
The path to include directory.
let isCXX: Bool
True if this is a C++ target.
let moduleMapType: ModuleMapType
The target’s module map type, which determines whether this target vends a custom module map, a generated module map, or no module map at all.
import PackageLoading
protocol Copyable
A type whose values can be implicitly or explicitly copied.
protocol Escapable
var moduleMapPath: AbsolutePath { get }