mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
As a first step to allowing the build script to build *only* static library versions of the stdlib, change `add_swift_library` such that callers must pass in `SHARED`, `STATIC`, or `OBJECT_LIBRARY`. Ideally, only these flags would be used to determine whether to build shared, static, or object libraries, but that is not currently the case -- `add_swift_library` also checks whether the library `IS_STDLIB` before performing certain additional actions. This will be cleaned up in a future commit.
9 lines
353 B
CMake
9 lines
353 B
CMake
add_swift_library(swiftHomeKit ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY
|
|
HomeKit.swift
|
|
TARGET_SDKS IOS IOS_SIMULATOR TVOS TVOS_SIMULATOR WATCHOS WATCHOS_SIMULATOR
|
|
SWIFT_MODULE_DEPENDS Foundation
|
|
SWIFT_MODULE_DEPENDS_IOS UIKit
|
|
SWIFT_MODULE_DEPENDS_TVOS UIKit
|
|
SWIFT_MODULE_DEPENDS_WATCHOS UIKit
|
|
FRAMEWORK_DEPENDS_WEAK HomeKit)
|