submobules update for macos

This commit is contained in:
Mike Renoir 2023-12-06 22:33:19 +04:00
parent 6a41527153
commit a03c9be13b
3 changed files with 10 additions and 3 deletions

View File

@ -13,6 +13,7 @@ let package = Package(
], ],
dependencies: [ dependencies: [
.package(name: "ShelfPack", path: "../Utils/ShelfPack"), .package(name: "ShelfPack", path: "../Utils/ShelfPack"),
.package(name: "TGUIKit", path: "../../../../packages/TGUIKit"),
// Dependencies declare other packages that this package depends on. // Dependencies declare other packages that this package depends on.
// .package(url: /* package url */, from: "1.0.0"), // .package(url: /* package url */, from: "1.0.0"),
], ],
@ -21,7 +22,8 @@ let package = Package(
// Targets can depend on other targets in this package, and on products in packages this package depends on. // Targets can depend on other targets in this package, and on products in packages this package depends on.
.target( .target(
name: "MetalEngine", name: "MetalEngine",
dependencies: [.product(name: "ShelfPack", package: "ShelfPack", condition: nil)], dependencies: [.product(name: "ShelfPack", package: "ShelfPack", condition: nil),
path: "Sources/MetalEngine"), .product(name: "TGUIKit", package: "TGUIKit", condition: nil)],
path: "Sources/"),
] ]
) )

View File

@ -4,8 +4,12 @@ import Metal
#if os(iOS) #if os(iOS)
import Display import Display
import UIKit import UIKit
#else
import AppKit
import TGUIKit
#endif #endif
import IOSurface import IOSurface
import ShelfPack import ShelfPack

View File

@ -23,5 +23,6 @@ let package = Package(
dependencies: [], dependencies: [],
path: ".", path: ".",
publicHeadersPath: "PublicHeaders"), publicHeadersPath: "PublicHeaders"),
] ],
cxxLanguageStandard: .cxx20
) )