Create Build Rules for Apple Frameworks

PiperOrigin-RevId: 493426040
This commit is contained in:
Sebastian Schmidt
2022-12-06 15:18:45 -08:00
committed by Copybara-Service
parent 9bc7b120de
commit fca0f5806b
5 changed files with 134 additions and 91 deletions
+73
View File
@@ -0,0 +1,73 @@
# Build rules to inject Apple Frameworks
package(default_visibility = ["//visibility:public"])
cc_library(
name = "CoreGraphics",
linkopts = ["-framework CoreGraphics"],
)
cc_library(
name = "CoreMedia",
linkopts = ["-framework CoreMedia"],
)
cc_library(
name = "UIKit",
linkopts = ["-framework UIKit"],
)
cc_library(
name = "Accelerate",
linkopts = ["-framework Accelerate"],
)
cc_library(
name = "CoreVideo",
linkopts = ["-framework CoreVideo"],
)
cc_library(
name = "Metal",
linkopts = ["-framework Metal"],
)
cc_library(
name = "MetalPerformanceShaders",
linkopts = ["-framework MetalPerformanceShaders"],
)
cc_library(
name = "AVFoundation",
linkopts = ["-framework AVFoundation"],
)
cc_library(
name = "Foundation",
linkopts = ["-framework Foundation"],
)
cc_library(
name = "CoreImage",
linkopts = ["-framework CoreImage"],
)
cc_library(
name = "XCTest",
linkopts = ["-framework XCTest"],
)
cc_library(
name = "GLKit",
linkopts = ["-framework GLKit"],
)
cc_library(
name = "OpenGLES",
linkopts = ["-framework OpenGLES"],
)
cc_library(
name = "QuartzCore",
linkopts = ["-framework QuartzCore"],
)