package An official xmake package repository
https://xrepo.xmake.io/
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
24 lines
894 B
24 lines
894 B
8 months ago
|
package("plf_indiesort")
|
||
|
set_kind("library", {headeronly = true})
|
||
|
set_homepage("https://plflib.org/indiesort.htm")
|
||
|
set_description("A sort wrapper enabling both use of random-access sorting on non-random access containers, and increased performance for the sorting of large types.")
|
||
|
set_license("zlib")
|
||
|
|
||
|
add_urls("https://github.com/mattreecebentley/plf_indiesort.git")
|
||
|
add_versions("v1.41", "fce3d54ed1a43e9e7008703f79c4f4d2e5259176")
|
||
|
|
||
|
on_install(function (package)
|
||
|
os.cp("plf_indiesort.h", package:installdir("include"))
|
||
|
end)
|
||
|
|
||
|
on_test(function (package)
|
||
|
assert(package:check_cxxsnippets({test = [[
|
||
|
#include <vector>
|
||
|
#include <plf_indiesort.h>
|
||
|
void test() {
|
||
|
std::vector<int> vec;
|
||
|
plf::indiesort(vec);
|
||
|
}
|
||
|
]]}, {configs = {languages = "c++17"}}))
|
||
|
end)
|