|
|
|
@ -11,9 +11,9 @@ package("spdlog") |
|
|
|
|
|
|
|
|
|
add_deps("cmake") |
|
|
|
|
|
|
|
|
|
add_configs("header_only", {description = "Use header only", default = true, type = "boolean"}) |
|
|
|
|
add_configs("fmt_external", {description = "Use external fmt library instead of bundled", default = false, type = "boolean"}) |
|
|
|
|
add_configs("noexcept", {description = "Compile with -fno-exceptions. Call abort() on any spdlog exceptions", default = false, type = "boolean"}) |
|
|
|
|
add_configs("header_only", { description = "Use header only", default = true, type = "boolean"}) |
|
|
|
|
add_configs("fmt_external", { description = "Use external fmt library instead of bundled", default = false, type = "boolean"}) |
|
|
|
|
add_configs("noexcept", { description = "Compile with -fno-exceptions. Call abort() on any spdlog exceptions", default = false, type = "boolean"}) |
|
|
|
|
|
|
|
|
|
on_load(function (package) |
|
|
|
|
if not package:config("header_only") then |
|
|
|
@ -32,7 +32,7 @@ package("spdlog") |
|
|
|
|
|
|
|
|
|
local configs = {} |
|
|
|
|
if package:config("shared") and is_plat("windows") then |
|
|
|
|
print("spdlog shared lib is not yet supported under windows") |
|
|
|
|
raise("spdlog shared lib is not yet supported under windows!") |
|
|
|
|
end |
|
|
|
|
table.insert(configs, "-DSPDLOG_BUILD_SHARED=" .. (package:config("shared") and "ON" or "OFF")) |
|
|
|
|
table.insert(configs, "-DSPDLOG_FMT_EXTERNAL=" .. (package:config("fmt_external") and "ON" or "OFF")) |
|
|
|
|