-
-
Notifications
You must be signed in to change notification settings - Fork 37
/
Package.swift.in
78 lines (76 loc) · 4.34 KB
/
Package.swift.in
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
// swift-tools-version:5.3
import PackageDescription
let package = Package(
name: "Open3D-iOS",
products: [
.library(
name: "Open3D-iOS",
targets: [
"LinkOpen3D",
"Open3DSupport",
"Assimp",
"Faiss",
"IrrXML",
"JPEG",
"jsoncpp",
"libOpen3D_3rdparty_liblzf.a",
"libOpen3D_3rdparty_qhull_r.a",
"libOpen3D_3rdparty_qhullcpp.a",
"libOpen3D_3rdparty_rply.a",
"libOpen3D.a",
"png",
"pybind.a",
"TBB",
]),
],
dependencies: [
.package(url: "https://github.com/kewlbear/NumPy-iOS.git", .branch("main")),
.package(url: "https://github.com/kewlbear/LAPACKE-iOS.git", .branch("main")),
.package(url: "https://github.com/kewlbear/BLAS-LAPACK-AppStore-Workaround.git", .branch("main")),
],
targets: [
.binaryTarget(name: "Assimp", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/Assimp.xcframework.zip", checksum: "Assimp.xcframework_CHECKSUM"),
.binaryTarget(name: "Faiss", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/Faiss.xcframework.zip", checksum: "Faiss.xcframework_CHECKSUM"),
.binaryTarget(name: "IrrXML", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/IrrXML.xcframework.zip", checksum: "IrrXML.xcframework_CHECKSUM"),
.binaryTarget(name: "JPEG", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/JPEG.xcframework.zip", checksum: "JPEG.xcframework_CHECKSUM"),
.binaryTarget(name: "jsoncpp", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/jsoncpp.xcframework.zip", checksum: "jsoncpp.xcframework_CHECKSUM"),
.binaryTarget(name: "libOpen3D_3rdparty_liblzf.a", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/libOpen3D_3rdparty_liblzf.a.xcframework.zip", checksum: "libOpen3D_3rdparty_liblzf.a.xcframework_CHECKSUM"),
.binaryTarget(name: "libOpen3D_3rdparty_qhull_r.a", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/libOpen3D_3rdparty_qhull_r.a.xcframework.zip", checksum: "libOpen3D_3rdparty_qhull_r.a.xcframework_CHECKSUM"),
.binaryTarget(name: "libOpen3D_3rdparty_qhullcpp.a", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/libOpen3D_3rdparty_qhullcpp.a.xcframework.zip", checksum: "libOpen3D_3rdparty_qhullcpp.a.xcframework_CHECKSUM"),
.binaryTarget(name: "libOpen3D_3rdparty_rply.a", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/libOpen3D_3rdparty_rply.a.xcframework.zip", checksum: "libOpen3D_3rdparty_rply.a.xcframework_CHECKSUM"),
.binaryTarget(name: "libOpen3D.a", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/libOpen3D.a.xcframework.zip", checksum: "libOpen3D.a.xcframework_CHECKSUM"),
.binaryTarget(name: "png", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/png.xcframework.zip", checksum: "png.xcframework_CHECKSUM"),
.binaryTarget(name: "pybind.a", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/pybind.a.xcframework.zip", checksum: "pybind.a.xcframework_CHECKSUM"),
.binaryTarget(name: "TBB", url: "https://github.com/kewlbear/Open3D-iOS/releases/download/TAG/TBB.xcframework.zip", checksum: "TBB.xcframework_CHECKSUM"),
.target(
name: "LinkOpen3D",
dependencies: [
"NumPy-iOS",
"LAPACKE-iOS",
"Assimp",
"Faiss",
"IrrXML",
"JPEG",
"jsoncpp",
"libOpen3D_3rdparty_liblzf.a",
"libOpen3D_3rdparty_qhull_r.a",
"libOpen3D_3rdparty_qhullcpp.a",
"libOpen3D_3rdparty_rply.a",
"libOpen3D.a",
"png",
"pybind.a",
"TBB",
"BLAS-LAPACK-AppStore-Workaround",
],
linkerSettings: [
.linkedLibrary("stdc++"),
]
),
.target(
name: "Open3DSupport",
resources: [.copy("site-packages")]),
.testTarget(
name: "Open3D-iOSTests",
dependencies: ["Open3DSupport"]),
]
)