xmake.lua 894 B

1234567891011121314151617181920212223
  1. package("plf_indiesort")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://plflib.org/indiesort.htm")
  4. 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.")
  5. set_license("zlib")
  6. add_urls("https://github.com/mattreecebentley/plf_indiesort.git")
  7. add_versions("v1.41", "fce3d54ed1a43e9e7008703f79c4f4d2e5259176")
  8. on_install(function (package)
  9. os.cp("plf_indiesort.h", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <vector>
  14. #include <plf_indiesort.h>
  15. void test() {
  16. std::vector<int> vec;
  17. plf::indiesort(vec);
  18. }
  19. ]]}, {configs = {languages = "c++17"}}))
  20. end)