ade: add package (#4236)

pull/4239/head
star9029 6 months ago committed by GitHub
parent e3022640e2
commit ddfa4d2bdc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
  1. 23
      packages/a/ade/xmake.lua

@ -0,0 +1,23 @@
package("ade")
set_homepage("https://github.com/opencv/ade")
set_description("ADE Framework is a graph construction, manipulation, and processing framework.")
set_license("Apache-2.0")
add_urls("https://github.com/opencv/ade/archive/refs/tags/$(version).tar.gz",
"https://github.com/opencv/ade.git")
add_versions("v0.1.2d", "edefba61a33d6cd4b78a9976cb3309c95212610a81ba6dade09882d1794198ff")
add_deps("cmake")
on_install(function (package)
local configs = {}
table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
table.insert(configs, "-DBUILD_WITH_STATIC_CRT=" .. (package:has_runtime("MT") and "ON" or "OFF"))
import("package.tools.cmake").install(package, configs)
end)
on_test(function (package)
assert(package:has_cxxtypes("ade::Graph", {configs = {languages = "c++11"}, includes = "ade/graph.hpp"}))
end)
Loading…
Cancel
Save