mirror of
https://github.com/ichmagmaus111/ghostgram.git
synced 2026-11-02 22:04:28 +01:00
Ghostgram for iOS, rebuilt from scratch on Telegram iOS 13.0. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
63 lines
1.4 KiB
Python
63 lines
1.4 KiB
Python
load("@build_bazel_rules_swift//swift:swift.bzl", "swift_library")
|
|
load(
|
|
"@build_bazel_rules_apple//apple:resources.bzl",
|
|
"apple_resource_bundle",
|
|
"apple_resource_group",
|
|
)
|
|
load("//build-system/bazel-utils:plist_fragment.bzl",
|
|
"plist_fragment",
|
|
)
|
|
|
|
filegroup(
|
|
name = "CameraMetalResources",
|
|
srcs = glob([
|
|
"MetalResources/**/*.*",
|
|
]),
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
plist_fragment(
|
|
name = "CameraBundleInfoPlist",
|
|
extension = "plist",
|
|
template =
|
|
"""
|
|
<key>CFBundleIdentifier</key>
|
|
<string>org.telegram.Camera</string>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>en</string>
|
|
<key>CFBundleName</key>
|
|
<string>Camera</string>
|
|
"""
|
|
)
|
|
|
|
apple_resource_bundle(
|
|
name = "CameraBundle",
|
|
infoplists = [
|
|
":CameraBundleInfoPlist",
|
|
],
|
|
resources = [
|
|
":CameraMetalResources",
|
|
],
|
|
visibility = ["//visibility:public"],
|
|
)
|
|
|
|
swift_library(
|
|
name = "Camera",
|
|
module_name = "Camera",
|
|
srcs = glob([
|
|
"Sources/**/*.swift",
|
|
]),
|
|
copts = [
|
|
"-warnings-as-errors",
|
|
],
|
|
deps = [
|
|
"//submodules/SSignalKit/SwiftSignalKit:SwiftSignalKit",
|
|
"//submodules/Utils/DeviceModel",
|
|
# GHOST: Ghostgram camera pipeline (frame processor, round video settings)
|
|
"//Ghostgram/Features/CameraMasks:GGCameraPipeline",
|
|
],
|
|
visibility = [
|
|
"//visibility:public",
|
|
],
|
|
)
|