xmake.lua 832 B

1234567891011121314151617181920212223
  1. package("inifile-cpp")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/Rookfighter/inifile-cpp")
  4. set_description("A header-only and easy to use Ini file parser for C++.")
  5. set_license("MIT")
  6. add_urls("https://github.com/Rookfighter/inifile-cpp.git")
  7. add_versions("2022.06.25", "e7ba25eede111e76e176a341ea12a47e9948627c")
  8. add_versions("2025.02.11", "7e49789411beba98ca2c98940c40f7ca7e4b23b5")
  9. on_install(function (package)
  10. os.cp("include", package:installdir())
  11. end)
  12. on_test(function (package)
  13. assert(package:check_cxxsnippets({test = [[
  14. #include <inicpp.h>
  15. void test() {
  16. ini::IniFile myIni;
  17. myIni.load("some/ini/path");
  18. }
  19. ]]}, {configs = {languages = "c++11"}}))
  20. end)