mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
The extensions for supporting NSObjects are in the file: OSLogNSObjectType.swift. This creates a new dependency for the OSLogPrototype overlay on the module: ObjectiveC. However, ObjectiveC is already a dependency for the os module. This patch includes tests for the NSObject extensions. In addition, this patch contains a few other minor changes. 1. It makes the `osLog` function public (so that it can be used by clients directly). 2. It fixes a lifetime-related bug in the osLog function implementation. 3. It improves the OSLogPrototypeExecTest suite by refactoring a few helper functions.
19 lines
590 B
CMake
19 lines
590 B
CMake
add_swift_target_library(swiftOSLogPrototype
|
|
IS_SDK_OVERLAY
|
|
SHARED
|
|
|
|
OSLog.swift
|
|
OSLogMessage.swift
|
|
OSLogIntegerTypes.swift
|
|
OSLogStringTypes.swift
|
|
OSLogNSObjectType.swift
|
|
|
|
SWIFT_MODULE_DEPENDS_IOS Darwin os ObjectiveC
|
|
SWIFT_MODULE_DEPENDS_OSX Darwin os ObjectiveC
|
|
SWIFT_MODULE_DEPENDS_TVOS Darwin os ObjectiveC
|
|
SWIFT_MODULE_DEPENDS_WATCHOS Darwin os ObjectiveC
|
|
TARGET_SDKS ALL_APPLE_PLATFORMS
|
|
SWIFT_COMPILE_FLAGS ${SWIFT_STANDARD_LIBRARY_SWIFT_FLAGS}
|
|
INSTALL_IN_COMPONENT never_install
|
|
DARWIN_INSTALL_NAME_DIR "${SWIFT_DARWIN_STDLIB_PRIVATE_INSTALL_NAME_DIR}")
|