package An official xmake package repository https://xrepo.xmake.io/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
699 B

add_rules("mode.debug", "mode.release")
option("collect_static_var_data", {description = "Collect data also on static variable memory allocation", default = false, type = "boolean"})
if is_plat("linux", "macosx") then
add_requires("libbacktrace")
end
target("memplumber")
set_kind("$(kind)")
set_languages("cxx11")
add_files("memplumber.cpp")
add_headerfiles("(memplumber.h)", "memplumber-internals.h")
if is_plat("linux", "macosx") then
add_packages("libbacktrace")
elseif is_plat("windows", "mingw") then
add_defines("_WIN32")
end
if has_config("collect_static_var_data") then
add_defines("COLLECT_STATIC_VAR_DATA")
end