mirror of
https://github.com/apple/swift.git
synced 2025-12-21 12:14:44 +01:00
This ended up being easiest with a runtime function. I couldn't push this into the standard library because the standard library doesn't know about NSObject, and I couldn't compile the ObjectiveC module as -parse-stdlib because it uses standard library types and doesn't otherwise know how to find the "swift" module. Swift SVN r7581
10 lines
219 B
CMake
10 lines
219 B
CMake
# Build the swiftObjC dylib.
|
|
set(SHARED_LIBRARY ON)
|
|
add_swift_library(swiftObjectiveC INSTALL
|
|
ObjectiveC.swift
|
|
BridgeObjectiveC.mm
|
|
DEPENDS swift_stdlib_core)
|
|
|
|
add_subdirectory(Foundation)
|
|
add_subdirectory(AppKit)
|