[tvOS] Add platform libraries (#3363)

* [tvOS] Add platform libraries

* [tvOS] Add MetalPerformanceShaders platform library

* [iOS] Enable JavaScriptCore platform library

 - Enable JavaScriptCore
 - Remove MetalPerformanceShaders.def.disabled since we already have
   MetalPerformanceShaders.def
 - Rerun set_depends.sh (CoreAudioKit doesn't depend on CoreMIDI anymore)

* [tvOS] Unify some def-files with iOS

 - Move AudioUnit into AudioToolbox
 - Separate OpenGLES like it is done for iOS
 - Add CommonCrypto

* [watchOS] Add platform libs: CommonCrypto and Intents

* [tests] Don't depend on host platform libs in cross-target tests
This commit is contained in:
Ilya Matveev
2019-09-22 15:11:03 +07:00
committed by Nikolay Igotti
parent 1a2568df38
commit c8252693d6
81 changed files with 743 additions and 19 deletions
+7 -5
View File
@@ -209,10 +209,11 @@ task sanity {
update_external_tests()
}
}
dependsOn(tasksOf(KonanTest.class) {
(it instanceof KonanLocalTest || it instanceof KonanStandaloneTest) &&
!it.getDependsOn().contains(':distPlatformLibs') &&
it.name != "library_mismatch" // This test requires the wasm32 stdlib which is unavailable during a sanity run.
def platformLibsTasks = targetList.collect { "${it}PlatformLibs" } + ["distPlatformLibs"]
dependsOn(tasksOf(KonanTest.class) { task ->
(task instanceof KonanLocalTest || task instanceof KonanStandaloneTest) &&
task.getDependsOn().every { !platformLibsTasks.contains(it) } &&
task.name != "library_mismatch" // This test requires the wasm32 stdlib which is unavailable during a sanity run.
})
dependsOn(tasksOf(KonanTest.class, { it instanceof KonanGTest }))
}
@@ -287,10 +288,11 @@ def createTestTasks(File testRoot, Class<Task> taskType, Closure taskConfigurati
void dependsOnPlatformLibs(Task t) {
if (!useCustomDist) {
t.dependsOn(':distPlatformLibs')
def testTarget = project.testTarget
if (testTarget != null && testTarget != project.hostName) {
t.dependsOn(":${testTarget}PlatformLibs")
} else {
t.dependsOn(':distPlatformLibs')
}
}
}
@@ -1,4 +1,4 @@
depends = AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreMIDI CoreText CoreVideo EAGL FileProvider Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
depends = AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL FileProvider Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.CoreAudioKit
modules = CoreAudioKit
@@ -1,9 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics Foundation Security darwin posix
language = Objective-C
package = platform.JavaScriptCore
headers = JavaScriptCore/JavaScriptCore.h
headerFilter = JavaScriptCore/**
modules = JavaScriptCore
compilerOpts = -framework JavaScriptCore
linkerOpts = -framework JavaScriptCore
@@ -1,8 +0,0 @@
language = Objective-C
package = platform.MetalPerformanceShaders
headers = MetalPerformanceShaders/MetalPerformanceShaders.h
headerFilter = MetalPerformanceShaders/**
compilerOpts = -framework MetalPerformanceShaders
linkerOpts = -framework MetalPerformanceShaders
+3 -2
View File
@@ -1,5 +1,6 @@
depends = posix
package = platform.builtin
headerFilter =
headerFilter = **
language = C
---
// See https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/Builtins.def
@@ -94,4 +95,4 @@ static inline int builtin_popcountll(long long x) {
// This function is used to flush the processor's instruction cache for the region of memory between begin inclusive and end exclusive.
static inline void builtin_clear_cache(void* begin, void* end) {
__builtin___clear_cache(begin, end);
}
}
@@ -0,0 +1,9 @@
depends = AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreMedia CoreVideo EAGL Foundation IOSurface ImageIO MediaToolbox Metal OpenGLESCommon QuartzCore Security darwin posix
language = Objective-C
package = platform.AVFoundation
headers = AVFoundation/AVFoundation.h AVFoundation/AVFAudio.h AVFoundation/AVAudioBuffer.h
headerFilter = AVFoundation/** AVFAudio/**
compilerOpts = -framework AVFoundation
linkerOpts = -framework AVFoundation
+7
View File
@@ -0,0 +1,7 @@
depends = AVFoundation AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreMedia CoreText CoreVideo EAGL Foundation IOSurface ImageIO MediaToolbox Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.AVKit
modules = AVKit
compilerOpts = -framework AVKit
linkerOpts = -framework AVKit
@@ -0,0 +1,7 @@
depends = CoreFoundation CoreGraphics CoreVideo IOSurface darwin posix
language = Objective-C
package = platform.Accelerate
modules = Accelerate
compilerOpts = -framework Accelerate
linkerOpts = -framework Accelerate
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.AdSupport
modules = AdSupport
compilerOpts = -framework AdSupport
linkerOpts = -framework AdSupport
@@ -0,0 +1,7 @@
depends = CFNetwork CoreAudio CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.AudioToolbox
modules = AudioToolbox AudioUnit
compilerOpts = -framework AudioToolbox
linkerOpts = -framework AudioToolbox
@@ -0,0 +1,7 @@
depends = CoreFoundation darwin posix
language = Objective-C
package = platform.CFNetwork
modules = CFNetwork
compilerOpts = -framework CFNetwork
linkerOpts = -framework CFNetwork
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreLocation Foundation Security darwin posix
language = Objective-C
package = platform.CloudKit
modules = CloudKit
compilerOpts = -framework CloudKit
linkerOpts = -framework CloudKit
@@ -0,0 +1,6 @@
depends = darwin posix
language = Objective-C
package = platform.CoreCrypto
modules = CommonCrypto
compilerOpts = -D_XOPEN_SOURCE
@@ -0,0 +1,7 @@
depends = CoreFoundation darwin posix
language = Objective-C
package = platform.CoreAudio
modules = CoreAudio
compilerOpts = -framework CoreAudio
linkerOpts = -framework CoreAudio
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.CoreBluetooth
modules = CoreBluetooth
compilerOpts = -framework CoreBluetooth
linkerOpts = -framework CoreBluetooth
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.CoreData
modules = CoreData
compilerOpts = -framework CoreData
linkerOpts = -framework CoreData
@@ -0,0 +1,7 @@
depends = darwin posix
language = Objective-C
package = platform.CoreFoundation
modules = CoreFoundation
compilerOpts = -framework CoreFoundation
linkerOpts = -framework CoreFoundation
@@ -0,0 +1,7 @@
depends = CoreFoundation darwin posix
language = Objective-C
package = platform.CoreGraphics
modules = CoreGraphics
compilerOpts = -framework CoreGraphics
linkerOpts = -framework CoreGraphics
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon Security darwin posix
language = Objective-C
package = platform.CoreImage
modules = CoreImage
compilerOpts = -framework CoreImage
linkerOpts = -framework CoreImage
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.CoreLocation
modules = CoreLocation
compilerOpts = -framework CoreLocation
linkerOpts = -framework CoreLocation
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreVideo Foundation IOSurface Security darwin posix
language = Objective-C
package = platform.CoreML
modules = CoreML
compilerOpts = -framework CoreML
linkerOpts = -framework CoreML
@@ -0,0 +1,7 @@
depends = AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreVideo Foundation IOSurface Metal OpenGLESCommon Security darwin posix
language = Objective-C
package = platform.CoreMedia
modules = CoreMedia
compilerOpts = -framework CoreMedia
linkerOpts = -framework CoreMedia
@@ -0,0 +1,7 @@
depends = CoreFoundation darwin posix
language = Objective-C
package = platform.CoreServices
modules = CoreServices
compilerOpts = -framework CoreServices
linkerOpts = -framework CoreServices
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.CoreSpotlight
modules = CoreSpotlight
compilerOpts = -framework CoreSpotlight
linkerOpts = -framework CoreSpotlight
@@ -0,0 +1,7 @@
depends = CoreFoundation CoreGraphics darwin posix
language = Objective-C
package = platform.CoreText
modules = CoreText
compilerOpts = -framework CoreText
linkerOpts = -framework CoreText
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics Foundation IOSurface Metal OpenGLESCommon Security darwin posix
language = Objective-C
package = platform.CoreVideo
modules = CoreVideo
compilerOpts = -framework CoreVideo
linkerOpts = -framework CoreVideo
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.DeviceCheck
modules = DeviceCheck
compilerOpts = -framework DeviceCheck
linkerOpts = -framework DeviceCheck
+9
View File
@@ -0,0 +1,9 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.EAGL
headers = OpenGLES/EAGL.h OpenGLES/EAGLDrawable.h
headerFilter = OpenGLES/**
compilerOpts = -framework OpenGLES
linkerOpts = -framework OpenGLES
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.ExternalAccessory
modules = ExternalAccessory
compilerOpts = -framework ExternalAccessory
linkerOpts = -framework ExternalAccessory
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Security darwin posix
language = Objective-C
package = platform.Foundation
modules = Foundation
compilerOpts = -framework Foundation
linkerOpts = -framework Foundation
+7
View File
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal ModelIO OpenGLES2 OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.GLKit
modules = GLKit
compilerOpts = -framework GLKit
linkerOpts = -framework GLKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.GameController
modules = GameController
compilerOpts = -framework GameController
linkerOpts = -framework GameController
@@ -0,0 +1,7 @@
depends = AVFoundation AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreMedia CoreText CoreVideo EAGL Foundation GLKit GameController GameplayKit IOSurface ImageIO MediaToolbox Metal MetalKit ModelIO OpenGLESCommon QuartzCore ReplayKit SceneKit Security SpriteKit UIKit darwin posix
language = Objective-C
package = platform.GameKit
modules = GameKit
compilerOpts = -framework GameKit
linkerOpts = -framework GameKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation GLKit IOSurface ImageIO Metal OpenGLESCommon QuartzCore SceneKit Security SpriteKit UIKit darwin posix
language = Objective-C
package = platform.GameplayKit
modules = GameplayKit
compilerOpts = -framework GameplayKit
linkerOpts = -framework GameplayKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.HomeKit
modules = HomeKit
compilerOpts = -framework HomeKit
linkerOpts = -framework HomeKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.IOSurface
modules = IOSurface
compilerOpts = -framework IOSurface
linkerOpts = -framework IOSurface
@@ -0,0 +1,7 @@
depends = CoreFoundation CoreGraphics darwin posix
language = Objective-C
package = platform.ImageIO
modules = ImageIO
compilerOpts = -framework ImageIO
linkerOpts = -framework ImageIO
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics Foundation Security darwin posix
language = Objective-C
package = platform.JavaScriptCore
modules = JavaScriptCore
compilerOpts = -framework JavaScriptCore
linkerOpts = -framework JavaScriptCore
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreLocation CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.MapKit
modules = MapKit
compilerOpts = -framework MapKit
linkerOpts = -framework MapKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreText EAGL Foundation Metal QuartzCore Security darwin posix
language = Objective-C
package = platform.MediaAccessibility
modules = MediaAccessibility
compilerOpts = -framework MediaAccessibility
linkerOpts = -framework MediaAccessibility
@@ -0,0 +1,9 @@
depends = AVFoundation CFNetwork CoreFoundation CoreGraphics CoreImage CoreMedia CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.MediaPlayer
headers = MediaPlayer/MediaPlayer.h
headerFilter = MediaPlayer/**
compilerOpts = -framework MediaPlayer
linkerOpts = -framework MediaPlayer
@@ -0,0 +1,7 @@
depends = AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreMedia CoreVideo Foundation IOSurface Metal OpenGLESCommon Security darwin posix
language = Objective-C
package = platform.MediaToolbox
modules = MediaToolbox
compilerOpts = -framework MediaToolbox
linkerOpts = -framework MediaToolbox
+7
View File
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation IOSurface Security darwin posix
language = Objective-C
package = platform.Metal
modules = Metal
compilerOpts = -framework Metal
linkerOpts = -framework Metal
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal ModelIO OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.MetalKit
modules = MetalKit
compilerOpts = -framework MetalKit
linkerOpts = -framework MetalKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics Foundation IOSurface Metal Security darwin posix
language = Objective-C
package = platform.MetalPerformanceShaders
modules.arm64 = MetalPerformanceShaders
compilerOpts.arm64 = -framework MetalPerformanceShaders
linkerOpts.arm64 = -framework MetalPerformanceShaders
@@ -0,0 +1,7 @@
depends = CoreFoundation CoreServices darwin posix
language = Objective-C
package = platform.MobileCoreServices
modules = MobileCoreServices
compilerOpts = -framework MobileCoreServices
linkerOpts = -framework MobileCoreServices
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics Foundation Security darwin posix
language = Objective-C
package = platform.ModelIO
modules = ModelIO
compilerOpts = -framework ModelIO
linkerOpts = -framework ModelIO
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.MultipeerConnectivity
modules = MultipeerConnectivity
compilerOpts = -framework MultipeerConnectivity
linkerOpts = -framework MultipeerConnectivity
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreML CoreVideo Foundation IOSurface Security darwin posix
language = Objective-C
package = platform.NaturalLanguage
modules = NaturalLanguage
compilerOpts = -framework NaturalLanguage
linkerOpts = -framework NaturalLanguage
@@ -0,0 +1,7 @@
depends = CoreFoundation Security darwin posix
language = Objective-C
package = platform.Network
modules = Network
compilerOpts = -framework Network
linkerOpts = -framework Network
@@ -0,0 +1,7 @@
depends = posix
language = Objective-C
package = platform.OpenAL
modules = OpenAL
compilerOpts = -framework OpenAL
linkerOpts = -framework OpenAL
@@ -0,0 +1,9 @@
depends = EAGL OpenGLESCommon darwin posix
language = Objective-C
package = platform.gles
headers = OpenGLES/ES1/gl.h OpenGLES/ES1/glext.h
headerFilter = OpenGLES/ES1/**
compilerOpts = -framework OpenGLES
linkerOpts = -framework OpenGLES
@@ -0,0 +1,9 @@
depends = EAGL OpenGLESCommon darwin posix
language = Objective-C
package = platform.gles2
headers = OpenGLES/ES2/gl.h OpenGLES/ES2/glext.h
headerFilter = OpenGLES/ES2/**
compilerOpts = -framework OpenGLES
linkerOpts = -framework OpenGLES
@@ -0,0 +1,9 @@
depends = EAGL OpenGLESCommon darwin posix
language = Objective-C
package = platform.gles3
headers = OpenGLES/ES3/gl.h OpenGLES/ES3/glext.h
headerFilter = OpenGLES/ES3/**
compilerOpts = -framework OpenGLES
linkerOpts = -framework OpenGLES
@@ -0,0 +1,9 @@
depends = posix
language = Objective-C
package = platform.glescommon
headers = OpenGLES/gltypes.h
headerFilter = OpenGLES/gltypes.h
compilerOpts = -framework OpenGLES
linkerOpts = -framework OpenGLES
@@ -0,0 +1,7 @@
depends = AVFoundation AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreLocation CoreMedia CoreText CoreVideo EAGL Foundation IOSurface ImageIO MediaToolbox Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.Photos
modules = Photos
compilerOpts = -framework Photos
linkerOpts = -framework Photos
@@ -0,0 +1,7 @@
depends = AVFoundation AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreLocation CoreMedia CoreText CoreVideo EAGL Foundation IOSurface ImageIO MediaToolbox Metal OpenGLESCommon Photos QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.PhotosUI
modules = PhotosUI
compilerOpts = -framework PhotosUI
linkerOpts = -framework PhotosUI
@@ -0,0 +1,9 @@
depends = CFNetwork CoreFoundation CoreGraphics EAGL Foundation Metal Security darwin posix
language = Objective-C
package = platform.QuartzCore
headers = QuartzCore/QuartzCore.h
headerFilter = QuartzCore/**
compilerOpts = -framework QuartzCore
linkerOpts = -framework QuartzCore
@@ -0,0 +1,7 @@
depends = AVFoundation AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreImage CoreMedia CoreText CoreVideo EAGL Foundation IOSurface ImageIO MediaToolbox Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.ReplayKit
modules = ReplayKit
compilerOpts = -framework ReplayKit
linkerOpts = -framework ReplayKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation GLKit IOSurface ImageIO Metal ModelIO OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.SceneKit
modules = SceneKit
compilerOpts = -framework SceneKit
linkerOpts = -framework SceneKit
@@ -0,0 +1,7 @@
depends = CoreFoundation darwin posix
language = Objective-C
package = platform.Security
modules = Security
compilerOpts = -framework Security
linkerOpts = -framework Security
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation GLKit IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.SpriteKit
modules = SpriteKit
compilerOpts = -framework SpriteKit
linkerOpts = -framework SpriteKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.StoreKit
modules = StoreKit
compilerOpts = -framework StoreKit
linkerOpts = -framework StoreKit
@@ -0,0 +1,7 @@
depends = CoreFoundation darwin posix
language = Objective-C
package = platform.SystemConfiguration
modules = SystemConfiguration
compilerOpts = -framework SystemConfiguration
linkerOpts = -framework SystemConfiguration
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO JavaScriptCore Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.TVMLKit
modules = TVMLKit
compilerOpts = -framework TVMLKit
linkerOpts = -framework TVMLKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics Foundation Security darwin posix
language = Objective-C
package = platform.TVServices
modules = TVServices
compilerOpts = -framework TVServices
linkerOpts = -framework TVServices
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security UIKit darwin posix
language = Objective-C
package = platform.TVUIKit
modules = TVUIKit
compilerOpts = -framework TVUIKit
linkerOpts = -framework TVUIKit
+7
View File
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreText CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon QuartzCore Security darwin posix
language = Objective-C
package = platform.UIKit
modules = UIKit
compilerOpts = -framework UIKit
linkerOpts = -framework UIKit
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation Foundation Security darwin posix
language = Objective-C
package = platform.UserNotifications
modules = UserNotifications
compilerOpts = -framework UserNotifications
linkerOpts = -framework UserNotifications
@@ -0,0 +1,7 @@
depends = CoreFoundation Foundation darwin posix
language = Objective-C
package = platform.VideoSubscriberAccount
modules = VideoSubscriberAccount
compilerOpts = -framework VideoSubscriberAccount
linkerOpts = -framework VideoSubscriberAccount
@@ -0,0 +1,7 @@
depends = AudioToolbox CFNetwork CoreAudio CoreFoundation CoreGraphics CoreMedia CoreVideo Foundation IOSurface Metal OpenGLESCommon Security darwin posix
language = Objective-C
package = platform.VideoToolbox
modules = VideoToolbox
compilerOpts = -framework VideoToolbox
linkerOpts = -framework VideoToolbox
@@ -0,0 +1,7 @@
depends = CFNetwork CoreFoundation CoreGraphics CoreImage CoreML CoreVideo EAGL Foundation IOSurface ImageIO Metal OpenGLESCommon Security darwin posix
language = Objective-C
package = platform.Vision
modules = Vision
compilerOpts = -framework Vision
linkerOpts = -framework Vision
@@ -0,0 +1,98 @@
depends = posix
package = platform.builtin
headerFilter = **
language = C
---
// See https://github.com/llvm-mirror/clang/blob/master/include/clang/Basic/Builtins.def
// TODO: autogenerate from machine format.
// Returns x with the order of the bytes reversed; for example, 0xaabb becomes 0xbbaa. Byte here always means exactly 8 bits.
static inline short builtin_bswap16(short x) {
return __builtin_bswap16(x);
}
static inline int builtin_bswap32(int x) {
return __builtin_bswap32(x);
}
static inline long long builtin_bswap64(long long x) {
return __builtin_bswap64(x);
}
// Returns the number of leading 0-bits in x, starting at the most significant bit position. If x is 0, the result is undefined.
static inline int builtin_clzs(unsigned short x) {
return __builtin_clzs(x);
}
static inline int builtin_clz(unsigned int x) {
return __builtin_clz(x);
}
static inline int builtin_clzl(unsigned long x) {
return __builtin_clzl(x);
}
static inline int builtin_clzll(unsigned long long x) {
return __builtin_clzll(x);
}
// Returns the number of trailing 0-bits in x, starting at the least significant bit position. If x is 0, the result is undefined.
static inline int builtin_ctzs(unsigned short x) {
return __builtin_ctzs(x);
}
static inline int builtin_ctz(unsigned int x) {
return __builtin_ctz(x);
}
static inline int builtin_ctzl(unsigned long x) {
return __builtin_ctzl(x);
}
static inline int builtin_ctzll(unsigned long long x) {
return __builtin_ctzll(x);
}
// Returns one plus the index of the least significant 1-bit of x, or if x is zero, returns zero.
static inline int builtin_ffs(int x) {
return __builtin_ffs(x);
}
static inline int builtin_ffsl(long x) {
return __builtin_ffsl(x);
}
static inline int builtin_ffsll(long long x) {
return __builtin_ffsll(x);
}
// Returns the parity of x, i.e. the number of 1-bits in x modulo 2.
static inline int builtin_parity(int x) {
return __builtin_parity(x);
}
static inline int builtin_parityl(unsigned long x) {
return __builtin_parityl(x);
}
static inline int builtin_parityll(unsigned long long x) {
return __builtin_parityll(x);
}
// Returns the number of 1-bits in x.
static inline int builtin_popcount(int x) {
return __builtin_popcount(x);
}
static inline int builtin_popcountl(long x) {
return __builtin_popcountl(x);
}
static inline int builtin_popcountll(long long x) {
return __builtin_popcountll(x);
}
// This function is used to flush the processor's instruction cache for the region of memory between begin inclusive and end exclusive.
static inline void builtin_clear_cache(void* begin, void* end) {
__builtin___clear_cache(begin, end);
}
+39
View File
@@ -0,0 +1,39 @@
depends = posix
language = Objective-C
package = platform.darwin
headers = AppleTextureEncoder.h AssertMacros.h Availability.h AvailabilityInternal.h \
AvailabilityMacros.h Block.h ConditionalMacros.h MacTypes.h \
TargetConditionals.h __cxxabi_config.h _locale.h _types.h _wctype.h \
aio.h asl.h bitstring.h bzlib.h \
cache.h cache_callbacks.h checkint.h compression.h copyfile.h \
cpio.h ctype.h cxxabi.h db.h \
dns.h dns_sd.h dns_util.h execinfo.h \
fmtmsg.h fstab.h \
gethostuuid.h glob.h ifaddrs.h inttypes.h iso646.h \
langinfo.h \
libgen.h libunwind.h \
membership.h monetary.h mpool.h \
nameser.h ndbm.h nl_types.h \
notify.h notify_keys.h ntsid.h \
printf.h \
readpassphrase.h removefile.h \
runetype.h sandbox.h standards.h \
stringlist.h sysdir.h sysexits.h tar.h \
ttyent.h \
unwind.h util.h utmpx.h vis.h wordexp.h xattr_flags.h \
bank/bank_types.h \
bsm/audit.h \
os/activity.h os/availability.h os/base.h os/lock.h \
os/log.h os/object.h os/overflow.h os/trace.h \
simd/simd.h sys/sysctl.h
headerFilter = **
excludedFunctions = __tg_promote
compilerOpts = -D_XOPEN_SOURCE -DSYSCTL_DEF_ENABLED
linkerOpts = -ldl -lz
---
// menu.h is excluded so far due to interop issues.
+5
View File
@@ -0,0 +1,5 @@
depends = posix
package = platform.iconv
headers = iconv.h
headerFilter = **
linkerOpts = -liconv
+13
View File
@@ -0,0 +1,13 @@
depends = darwin posix
language = Objective-C
package = platform.objc
headers = objc/NSObjCRuntime.h objc/NSObject.h objc/message.h objc/objc-api.h \
objc/objc-exception.h objc/objc-sync.h objc/objc.h objc/runtime.h
headerFilter = objc/**
compilerOpts = -D_XOPEN_SOURCE
linkerOpts = -lobjc
---
// objc-auto.h is excluded so far due to interop issues.
+43
View File
@@ -0,0 +1,43 @@
depends =
package = platform.posix
headers = alloca.h assert.h complex.h dirent.h dlfcn.h err.h errno.h fcntl.h \
fenv.h float.h fnmatch.h fts.h ftw.h getopt.h grp.h inttypes.h libgen.h limits.h \
locale.h math.h memory.h netdb.h paths.h poll.h \
pthread.h pwd.h regex.h resolv.h sched.h search.h semaphore.h setjmp.h signal.h \
stdatomic.h stdint.h stdio.h stdlib.h string.h strings.h syslog.h termios.h \
time.h ucontext.h unistd.h utime.h wchar.h wctype.h xlocale.h \
net/ethernet.h net/if.h \
netinet/icmp6.h netinet/in.h netinet/in_systm.h \
netinet/ip.h netinet/ip6.h netinet/ip_icmp.h netinet/tcp.h netinet/udp.h \
sys/acl.h sys/ioctl.h sys/ipc.h sys/mman.h sys/poll.h \
sys/queue.h sys/select.h sys/shm.h sys/stat.h \
sys/syslimits.h sys/time.h sys/times.h sys/utsname.h sys/wait.h
compilerOpts = -D_XOPEN_SOURCE
linkerOpts = -ldl
---
// Wrapper to access errno variable.
static int posix_errno() {
return errno;
}
static void set_posix_errno(int value) {
errno = value;
}
// Wrapper to access h_errno variable.
static int posix_h_errno() {
return h_errno;
}
static void set_posix_h_errno(int value) {
h_errno = value;
}
static int init_sockets() {
return 0;
}
static void deinit_sockets() {
}
+2
View File
@@ -0,0 +1,2 @@
#!/bin/bash
../../../../dist/bin/run_konan defFileDependencies -target tvos_arm64 -target tvos_x64 *.def
+34
View File
@@ -0,0 +1,34 @@
depends = posix
package = platform.zlib
headers = zconf.h zlib.h
headerFilter = zconf.h zlib.h
compilerOpts = -DByte=uByte -DBytef=uBytef
linkerOpts = -lz
---
#undef deflateInit
static inline int deflateInit(z_streamp strm, int level) {
return deflateInit_(strm, level, ZLIB_VERSION, (int)sizeof(z_stream));
}
#undef deflateInit2
static inline int deflateInit2(z_streamp strm, int level, int method,
int windowBits, int memLevel, int strategy) {
return deflateInit2_(strm, level, method, windowBits, memLevel,
strategy, ZLIB_VERSION, (int)sizeof(z_stream));
}
#undef inflateInit
static inline int inflateInit(z_streamp strm) {
return inflateInit_(strm, ZLIB_VERSION, (int)sizeof(z_stream));
}
#undef inflateInit2
static inline int inflateInit2(z_streamp strm, int windowBits) {
return inflateInit2_(strm, windowBits, ZLIB_VERSION, (int)sizeof(z_stream));
}
#undef inflateBackInit
static inline int inflateBackInit(z_streamp strm, int windowBits, unsigned char *window) {
return inflateBackInit_(strm, windowBits, window, ZLIB_VERSION, (int)sizeof(z_stream));
}
@@ -0,0 +1,6 @@
depends = darwin posix
language = Objective-C
package = platform.CoreCrypto
modules = CommonCrypto
compilerOpts = -D_XOPEN_SOURCE
@@ -0,0 +1,7 @@
depends = CoreFoundation CoreLocation Foundation Security darwin posix
language = Objective-C
package = platform.Intents
modules = Intents
compilerOpts = -framework Intents
linkerOpts = -framework Intents