|
| 1 | +-- compat.apriltag — AprilTag 3.4.5, a visual fiducial detection library. |
| 2 | +-- |
| 3 | +-- Shape A (C-source compat). The upstream CMake target consists of the |
| 4 | +-- detector, pose/thresholding code, all common helpers, and every generated |
| 5 | +-- tag family (including the ArUco families). Keep the source globs aligned |
| 6 | +-- with that target rather than compiling examples or the Python wrapper. |
| 7 | +-- |
| 8 | +-- The same source set builds on Linux, macOS, and Windows. Platform-specific |
| 9 | +-- defines and system libraries mirror the upstream CMake target. |
| 10 | +package = { |
| 11 | + spec = "1", |
| 12 | + namespace = "compat", |
| 13 | + name = "apriltag", |
| 14 | + description = "AprilTag visual fiducial detection library", |
| 15 | + licenses = {"BSD-2-Clause", "MIT"}, |
| 16 | + repo = "https://github.com/AprilRobotics/apriltag", |
| 17 | + type = "package", |
| 18 | + |
| 19 | + xpm = { |
| 20 | + linux = { |
| 21 | + ["3.4.5"] = { |
| 22 | + url = "https://github.com/AprilRobotics/apriltag/archive/refs/tags/v3.4.5.tar.gz", |
| 23 | + sha256 = "3749f48220db78c29c375a373861f4e1f4138e5dbae3c298584e96cfcc556515", |
| 24 | + }, |
| 25 | + }, |
| 26 | + macosx = { |
| 27 | + ["3.4.5"] = { |
| 28 | + url = "https://github.com/AprilRobotics/apriltag/archive/refs/tags/v3.4.5.tar.gz", |
| 29 | + sha256 = "3749f48220db78c29c375a373861f4e1f4138e5dbae3c298584e96cfcc556515", |
| 30 | + }, |
| 31 | + }, |
| 32 | + windows = { |
| 33 | + ["3.4.5"] = { |
| 34 | + url = "https://github.com/AprilRobotics/apriltag/archive/refs/tags/v3.4.5.tar.gz", |
| 35 | + sha256 = "3749f48220db78c29c375a373861f4e1f4138e5dbae3c298584e96cfcc556515", |
| 36 | + }, |
| 37 | + }, |
| 38 | + }, |
| 39 | + |
| 40 | + mcpp = { |
| 41 | + language = "c++23", |
| 42 | + import_std = false, |
| 43 | + c_standard = "c99", |
| 44 | + include_dirs = { "*" }, |
| 45 | + sources = { |
| 46 | + "*/apriltag.c", |
| 47 | + "*/apriltag_pose.c", |
| 48 | + "*/apriltag_quad_thresh.c", |
| 49 | + "*/common/*.c", |
| 50 | + "*/tag*.c", |
| 51 | + "*/aruco/tag*.c", |
| 52 | + }, |
| 53 | + targets = { ["apriltag"] = { kind = "lib" } }, |
| 54 | + linux = { |
| 55 | + cflags = { "-D_GNU_SOURCE" }, |
| 56 | + ldflags = { "-lpthread", "-lm" }, |
| 57 | + }, |
| 58 | + macosx = { |
| 59 | + cflags = { "-D_DARWIN_C_SOURCE" }, |
| 60 | + ldflags = { "-lpthread", "-lm" }, |
| 61 | + }, |
| 62 | + windows = { |
| 63 | + cflags = { |
| 64 | + "-D_USE_MATH_DEFINES", |
| 65 | + "-DWIN32_LEAN_AND_MEAN", |
| 66 | + "-D_CRT_SECURE_NO_WARNINGS", |
| 67 | + "-D_CRT_NONSTDC_NO_DEPRECATE", |
| 68 | + }, |
| 69 | + }, |
| 70 | + deps = { }, |
| 71 | + }, |
| 72 | +} |
0 commit comments