xmake.lua 797 B

123456789101112131415161718
  1. package("eabase")
  2. set_kind("library", {headeronly = true})
  3. set_homepage("https://github.com/electronicarts/EABase")
  4. set_description("EABase is a small set of header files that define platform-independent data types and platform feature macros.")
  5. set_license("BSD-3-Clause")
  6. add_urls("https://github.com/electronicarts/EABase/archive/$(version).tar.gz")
  7. add_versions("2.09.05", "f85b98c96f1976aa013c8d6016c5e37a409633ac3fce843cd4ec0b89c67e6b7a")
  8. on_install("windows", "linux", "macosx", function (package)
  9. os.cp("include/Common/EABase", package:installdir("include"))
  10. end)
  11. on_test(function (package)
  12. assert(package:has_cxxfuncs("EA_LIMITS_DIGITS_U(int)",
  13. {configs = {languages = "c++17"}, includes = "EABase/eabase.h"}))
  14. end)