xmake.lua 788 B

123456789101112131415161718192021222324252627282930
  1. add_rules("mode.debug", "mode.release")
  2. option("threads")
  3. set_default(true)
  4. set_showmenu(true)
  5. add_defines("SIMDJSON_THREADS_ENABLE")
  6. if not is_plat("windows") then
  7. add_syslinks("pthread")
  8. end
  9. option("noexceptions")
  10. set_default(false)
  11. set_showmenu(true)
  12. add_defines("SIMDJSON_EXCEPTIONS=0")
  13. option("logging")
  14. set_default(false)
  15. set_showmenu(true)
  16. add_defines("SIMDJSON_VERBOSE_LOGGING")
  17. target("simdjson")
  18. set_languages("c++17")
  19. set_kind("$(kind)")
  20. if is_plat("windows") and is_kind("shared") then
  21. add_defines("SIMDJSON_BUILDING_WINDOWS_DYNAMIC_LIBRARY")
  22. end
  23. add_options("threads", "noexceptions", "logging")
  24. add_files("singleheader/simdjson.cpp")
  25. add_headerfiles("singleheader/simdjson.h")