2
0

xmake.lua 757 B

12345678910111213141516171819202122
  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. on_install(function (package)
  9. os.cp("include", package:installdir())
  10. end)
  11. on_test(function (package)
  12. assert(package:check_cxxsnippets({test = [[
  13. #include <inicpp.h>
  14. void test() {
  15. ini::IniFile myIni;
  16. myIni.load("some/ini/path");
  17. }
  18. ]]}, {configs = {languages = "c++11"}}))
  19. end)