Explorar el Código

add dlib (#689)

* add dlib

* fix tests

* fix tests
ruki hace 3 años
padre
commit
dea3e2293c
Se han modificado 1 ficheros con 20 adiciones y 0 borrados
  1. 20 0
      packages/d/dlib/xmake.lua

+ 20 - 0
packages/d/dlib/xmake.lua

@@ -0,0 +1,20 @@
+package("dlib")
+
+    set_kind("library", {headeronly = true})
+    set_homepage("https://dlib.net")
+    set_description("A toolkit for making real world machine learning and data analysis applications in C++")
+    set_license("Boost")
+
+    add_urls("https://github.com/davisking/dlib/archive/refs/tags/$(version).tar.gz",
+             "https://github.com/davisking/dlib.git")
+    add_versions("v19.22", "5f44b67f762691b92f3e41dcf9c95dd0f4525b59cacb478094e511fdacb5c096")
+
+    add_deps("cmake")
+    on_install("windows", "linux", "macosx", function (package)
+        import("package.tools.cmake").install(package)
+    end)
+
+    on_test(function (package)
+        assert(package:has_cxxtypes("dlib::command_line_parser", {
+            includes = "dlib/cmd_line_parser.h", configs = {languages = "c++11"}}))
+    end)