-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathopencv.lua
More file actions
73 lines (71 loc) · 3.66 KB
/
Copy pathopencv.lua
File metadata and controls
73 lines (71 loc) · 3.66 KB
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
-- Form A descriptor: the public opencv module package ships its own
-- mcpp.toml. mcpp's default lookup finds <verdir>/*/mcpp.toml inside
-- the GitHub source tarball wrap.
--
-- Since 0.0.7 the package is SINGLE-REPO: opencv-m carries both the C++23
-- module layer (import opencv.cv; and the per-module interfaces) and the
-- full OpenCV 5.0.0 source build. The upstream sources are vendored in the
-- release tarball (third_party/opencv-5.0.0/ — pruned import of the official
-- tag, sha256-pinned, patch-free) together with the frozen per-OS configure
-- snapshots (gen/), so no CMake runs on the consumer side and this index no
-- longer carries a compat.opencv descriptor: it was retired in the same
-- change, along with compat.opencv-unifont and tools/compat-opencv/.
--
-- The only remaining external dependency is compat.ffmpeg, declared by the
-- package's own mcpp.toml for the videoio FFmpeg backend.
--
-- Three platforms, one OS-neutral tarball: the per-OS differences live in the
-- package's gen/ snapshots and mcpp.toml, and all three are verified by the
-- package's own CI (linux gcc/llvm/musl-static, macOS llvm, windows llvm).
-- Optional features: `dnn` adds the import opencv.dnn; interface plus the
-- underlying dnn sources (mlas on linux/macOS; the built-in fast_gemm backend
-- on windows, where upstream mlas x86 assembly is GAS/ELF and clang-cl cannot
-- emit COFF from it); `unifont` embeds the CJK font behind FontFace("uni") —
-- `opencv = { features = ["dnn"] }`.
--
-- Requires mcpp >= 0.0.102: per-OS feature semantics (mcpp#253, 0.0.101) plus
-- the windows scan-deps command-line fix (mcpp#261, 0.0.102). As a consumed
-- dependency the package's own TUs compile from under the ~124-char registry
-- xpkgs path rather than a short checkout, which pushed the clang scan-deps
-- command past cmd.exe's 8191-char ceiling under 0.0.101; 0.0.102 drops the
-- `cmd /c` redirect wrapper (clang-scan-deps -o) and restores the 32767 limit.
--
package = {
spec = "1",
name = "opencv",
namespace = "",
description = "C++23 module package for OpenCV 5 (import opencv.cv) — vendored full source build, C++ API unchanged",
licenses = {"MIT"}, -- module layer; the vendored OpenCV itself is Apache-2.0
repo = "https://github.com/Sunrisepeak/opencv-m",
type = "package",
xpm = {
linux = {
["0.0.9"] = {
url = {
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.9.tar.gz",
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.9/opencv-m-0.0.9.tar.gz",
},
sha256 = "888c45ad6b558d4172ac570ff97f3c931c8a3a229e294574da788221938d768a",
},
},
macosx = {
["0.0.9"] = {
url = {
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.9.tar.gz",
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.9/opencv-m-0.0.9.tar.gz",
},
sha256 = "888c45ad6b558d4172ac570ff97f3c931c8a3a229e294574da788221938d768a",
},
},
windows = {
["0.0.9"] = {
url = {
GLOBAL = "https://github.com/Sunrisepeak/opencv-m/archive/refs/tags/v0.0.9.tar.gz",
CN = "https://gitcode.com/mcpp-res/opencv/releases/download/v0.0.9/opencv-m-0.0.9.tar.gz",
},
sha256 = "888c45ad6b558d4172ac570ff97f3c931c8a3a229e294574da788221938d768a",
},
},
},
-- (no `mcpp` field -- default lookup will find <verdir>/*/mcpp.toml)
}