xmake.lua 1.0 KB

1234567891011121314151617181920212223
  1. package("ade")
  2. set_homepage("https://github.com/opencv/ade")
  3. set_description("ADE Framework is a graph construction, manipulation, and processing framework.")
  4. set_license("Apache-2.0")
  5. add_urls("https://github.com/opencv/ade/archive/refs/tags/$(version).tar.gz",
  6. "https://github.com/opencv/ade.git")
  7. add_versions("v0.1.2d", "edefba61a33d6cd4b78a9976cb3309c95212610a81ba6dade09882d1794198ff")
  8. add_deps("cmake")
  9. on_install(function (package)
  10. local configs = {}
  11. table.insert(configs, "-DCMAKE_BUILD_TYPE=" .. (package:is_debug() and "Debug" or "Release"))
  12. table.insert(configs, "-DBUILD_SHARED_LIBS=" .. (package:config("shared") and "ON" or "OFF"))
  13. table.insert(configs, "-DBUILD_WITH_STATIC_CRT=" .. (package:has_runtime("MT") and "ON" or "OFF"))
  14. import("package.tools.cmake").install(package, configs)
  15. end)
  16. on_test(function (package)
  17. assert(package:has_cxxtypes("ade::Graph", {configs = {languages = "c++11"}, includes = "ade/graph.hpp"}))
  18. end)