xmake.lua 496 B

12345678910111213141516
  1. add_rules("mode.debug", "mode.release")
  2. target("mallocvis")
  3. set_languages("c++17")
  4. set_kind("$(kind)")
  5. if is_plat("windows", "mingw") then
  6. add_syslinks("dbghelp")
  7. elseif is_plat("linux", "bsd") then
  8. add_syslinks("pthread")
  9. end
  10. add_files("malloc_hook.cpp", "plot_actions.cpp")
  11. add_headerfiles("*.hpp|debug.hpp")
  12. if is_plat("windows") and is_kind("shared") then
  13. add_rules("utils.symbols.export_all")
  14. end
  15. add_defines("HAS_THREADS=1")