Add version 0.2 to dynareadout (#1392)

pull/1393/head
PucklaMotzer09 2 years ago committed by GitHub
parent f310de6615
commit b55734381b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 4
      packages/d/dynareadout/xmake.lua

@ -6,6 +6,7 @@ package("dynareadout")
add_urls("https://github.com/PucklaMotzer09/dynareadout/archive/refs/tags/$(version).tar.gz", add_urls("https://github.com/PucklaMotzer09/dynareadout/archive/refs/tags/$(version).tar.gz",
"https://github.com/PucklaMotzer09/dynareadout.git") "https://github.com/PucklaMotzer09/dynareadout.git")
add_versions("0.1", "833c8516c77ab57c56e942692e1fea2c96c50b7adfebd7f6f633ed43aaf46a56") add_versions("0.1", "833c8516c77ab57c56e942692e1fea2c96c50b7adfebd7f6f633ed43aaf46a56")
add_versions("0.2", "47c147f1af092b8f2aad1b883d92e6fa76f0096b911b0d4cca2ed675d4f445bd")
add_configs("cpp", {description = "Build the C++ bindings", default = true, type = "boolean"}) add_configs("cpp", {description = "Build the C++ bindings", default = true, type = "boolean"})
@ -18,7 +19,10 @@ package("dynareadout")
on_test(function (package) on_test(function (package)
assert(package:has_cfuncs("binout_open", {includes = "binout.h", configs = {languages = "ansi"}})) assert(package:has_cfuncs("binout_open", {includes = "binout.h", configs = {languages = "ansi"}}))
assert(package:has_cfuncs("d3plot_open", {includes = "d3plot.h", configs = {languages = "ansi"}}))
if package:config("cpp") then if package:config("cpp") then
assert(package:has_cxxtypes("dro::Binout", {includes = "binout.hpp", configs = {languages = "cxx17"}})) assert(package:has_cxxtypes("dro::Binout", {includes = "binout.hpp", configs = {languages = "cxx17"}}))
assert(package:has_cxxtypes("dro::D3plot", {includes = "d3plot.hpp", configs = {languages = "cxx17"}}))
assert(package:has_cxxtypes("dro::Array<int32_t>", {includes = {"array.hpp", "cstdint"}, configs = {languages = "cxx17"}}))
end end
end) end)

Loading…
Cancel
Save