add decimal_for_cpp 1.19 (#526)

* add decimal_for_cpp 1.19

* License
pull/528/head
jj683 4 years ago committed by GitHub
parent adb3e60d00
commit 8b928fed48
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 18
      packages/d/decimal_for_cpp/xmake.lua

@ -0,0 +1,18 @@
package("decimal_for_cpp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/vpiotr/decimal_for_cpp")
set_description("Decimal data type support, for COBOL-like fixed-point operations on currency/money values.")
set_license("BSD-3-Clause")
add_urls("https://github.com/vpiotr/decimal_for_cpp.git")
add_versions("1.19", "2bcf48af509690579cf2b521af46e7fb0157c8da")
on_install(function (package)
os.cp("include/*.h", package:installdir("include/decimal_for_cpp"))
end)
on_test(function (package)
assert(package:has_cxxtypes("dec::decimal<2>", {configs = {languages = "c++11"}, includes = "decimal_for_cpp/decimal.h"}))
end)
Loading…
Cancel
Save