forked from swiftlang/swift
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update master to build with Xcode 9 beta 1, OS X 10.13, iOS 11, tvOS …
…11, and watchOS 4 SDKs.
- Loading branch information
1 parent
a31e2bd
commit c5ff1f2
Showing
78 changed files
with
2,856 additions
and
584 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,61 @@ | ||
Name: Accelerate | ||
Enumerators: | ||
- Name: BNNSDataTypeFloatBit | ||
Availability: nonswift | ||
- Name: BNNSDataTypeIntBit | ||
Availability: nonswift | ||
- Name: BNNSDataTypeUIntBit | ||
Availability: nonswift | ||
- Name: BNNSDataTypeIndexedBit | ||
Availability: nonswift | ||
- Name: BNNSDataTypeFloat16 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeFloat32 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeInt8 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeInt16 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeInt32 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeUInt8 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeUInt16 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeUInt32 | ||
SwiftPrivate: true | ||
- Name: BNNSDataTypeIndexed8 | ||
SwiftPrivate: true | ||
|
||
- Name: BNNSPoolingFunctionMax | ||
SwiftPrivate: true | ||
- Name: BNNSPoolingFunctionAverage | ||
SwiftPrivate: true | ||
|
||
- Name: BNNSActivationFunctionIdentity | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionRectifiedLinear | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionLeakyRectifiedLinear | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionSigmoid | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionTanh | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionScaledTanh | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionAbs | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionLinear | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionClamp | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionIntegerLinearSaturate | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionIntegerLinearSaturatePerChannel | ||
SwiftPrivate: true | ||
- Name: BNNSActivationFunctionSoftmax | ||
SwiftPrivate: true | ||
|
||
- Name: BNNSFlagsUseClientPtr | ||
SwiftPrivate: true |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,5 @@ | ||
set(SWIFT_API_NOTES_INPUTS | ||
Accelerate | ||
AVFoundation | ||
AVKit | ||
AppKit | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,57 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
@_exported import ARKit | ||
|
||
@available(iOS, introduced: 11.0) | ||
extension ARCamera { | ||
/** | ||
A value describing the camera's tracking state. | ||
*/ | ||
public enum TrackingState { | ||
public enum Reason { | ||
/** Tracking is limited due to a excessive motion of the camera. */ | ||
case excessiveMotion | ||
|
||
/** Tracking is limited due to a lack of features visible to the camera. */ | ||
case insufficientFeatures | ||
} | ||
|
||
/** Tracking is not available. */ | ||
case notAvailable | ||
|
||
/** Tracking is limited. See tracking reason for details. */ | ||
case limited(Reason) | ||
|
||
/** Tracking is normal. */ | ||
case normal | ||
} | ||
|
||
/** | ||
The tracking state of the camera. | ||
*/ | ||
public var trackingState: TrackingState { | ||
switch __trackingState { | ||
case .notAvailable: return .notAvailable | ||
case .normal: return .normal | ||
case .limited: | ||
let reason: TrackingState.Reason | ||
|
||
switch __trackingStateReason { | ||
case .excessiveMotion: reason = .excessiveMotion | ||
default: reason = .insufficientFeatures | ||
} | ||
|
||
return .limited(reason) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
cmake_minimum_required(VERSION 3.4.3) | ||
include("../../../../cmake/modules/StandaloneOverlay.cmake") | ||
|
||
add_swift_library(swiftARKit ${SWIFT_SDK_OVERLAY_LIBRARY_BUILD_TYPES} IS_SDK_OVERLAY | ||
ARKit.swift | ||
|
||
SWIFT_COMPILE_FLAGS "${SWIFT_RUNTIME_SWIFT_COMPILE_FLAGS}" | ||
LINK_FLAGS "${SWIFT_RUNTIME_SWIFT_LINK_FLAGS}" | ||
TARGET_SDKS IOS IOS_SIMULATOR | ||
SWIFT_MODULE_DEPENDS_IOS Darwin AVFoundation CoreAudio CoreFoundation CoreGraphics CoreImage CoreMedia Dispatch Foundation GLKit ObjectiveC QuartzCore SceneKit simd SpriteKit UIKit # auto-updated | ||
FRAMEWORK_DEPENDS_WEAK ARKit | ||
|
||
DEPLOYMENT_VERSION_IOS ${SWIFTLIB_DEPLOYMENT_VERSION_ARKIT_IOS} | ||
) |
38 changes: 38 additions & 0 deletions
38
stdlib/public/SDK/AVFoundation/AVCaptureSynchronizedDataCollection.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
//===----------------------------------------------------------------------===// | ||
// | ||
// This source file is part of the Swift.org open source project | ||
// | ||
// Copyright (c) 2014 - 2017 Apple Inc. and the Swift project authors | ||
// Licensed under Apache License v2.0 with Runtime Library Exception | ||
// | ||
// See https://swift.org/LICENSE.txt for license information | ||
// See https://swift.org/CONTRIBUTORS.txt for the list of Swift project authors | ||
// | ||
//===----------------------------------------------------------------------===// | ||
|
||
@_exported import AVFoundation // Clang module | ||
import Foundation | ||
|
||
|
||
#if os(iOS) | ||
@available(iOS, introduced: 11.0) | ||
extension AVCaptureSynchronizedDataCollection : Sequence { | ||
public func makeIterator() -> Iterator { | ||
return Iterator(self) | ||
} | ||
|
||
public struct Iterator : IteratorProtocol { | ||
internal var fastIterator: NSFastEnumerationIterator | ||
|
||
internal init(_ collection: AVCaptureSynchronizedDataCollection) { | ||
self.fastIterator = NSFastEnumerationIterator(collection) | ||
} | ||
|
||
public mutating func next() -> AVCaptureSynchronizedData? { | ||
guard let nextAny = fastIterator.next() else { return nil } | ||
return nextAny as! AVCaptureSynchronizedData | ||
} | ||
} | ||
} | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.