Skip to content

Commit

Permalink
backportcpp: add package (#2885)
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing authored Nov 29, 2023
1 parent 9f7f227 commit 5fafb56
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions packages/b/backportcpp/xmake.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
package("backportcpp")
set_kind("library", {headeronly = true})
set_homepage("https://github.com/bitwizeshift/BackportCpp")
set_description("Library of backported modern C++ types to work with C++11")
set_license("MIT")

add_urls("https://github.com/bitwizeshift/BackportCpp/archive/refs/tags/$(version).tar.gz",
"https://github.com/bitwizeshift/BackportCpp.git")

add_versions("v1.2.0", "8efded40a1d0e6674824336499d8706043a62bd8ae8aef62210c8c215f710b84")

add_deps("cmake")

on_install(function (package)
import("package.tools.cmake").install(package)
end)

on_test(function (package)
assert(package:check_cxxsnippets({test = [[
#include <bpstd/string_view.hpp>
void test() {
bpstd::string_view view;
}
]]}, {configs = {languages = "c++11"}}))
end)

0 comments on commit 5fafb56

Please sign in to comment.