Skip to content

Commit a91e134

Browse files
committed
feat: explicitly set dependency versions
1 parent f8638f2 commit a91e134

File tree

2 files changed

+12
-10
lines changed

2 files changed

+12
-10
lines changed

src/REX/REX/JSON.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,12 @@ namespace REX::JSON
102102
}
103103
}
104104

105+
struct save_opts : glz::opts
106+
{
107+
static constexpr bool prettify = true;
108+
std::uint8_t indentation_width = 4;
109+
};
110+
105111
void SettingStore::Save()
106112
{
107113
glz::generic output{};
@@ -113,8 +119,7 @@ namespace REX::JSON
113119
setting->Save(&output);
114120
}
115121

116-
constexpr glz::opts opts{ .prettify = true, .indentation_width = 4 };
117-
(void)glz::write_file_json<opts>(output, m_fileBase, std::string{});
122+
(void)glz::write_file_json<save_opts{}>(output, m_fileBase, std::string{});
118123
}
119124
}
120125
#endif

xmake.lua

Lines changed: 5 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,16 +32,13 @@ option("commonlib_xbyak", function()
3232
end)
3333

3434
-- add packages
35-
add_requires("spdlog", { configs = { header_only = false, wchar = true, std_format = true } })
36-
37-
-- add package conf overrides
38-
add_requireconfs("*.cmake", { configs = { override = true, system = false } })
35+
add_requires("spdlog v1.16.0", { configs = { header_only = false, wchar = true, std_format = true } })
3936

4037
-- add config packages
41-
if has_config("commonlib_ini") then add_requires("simpleini") end
42-
if has_config("commonlib_json") then add_requires("glaze") end
43-
if has_config("commonlib_toml") then add_requires("toml11") end
44-
if has_config("commonlib_xbyak") then add_requires("xbyak") end
38+
if has_config("commonlib_ini") then add_requires("simpleini v4.25") end
39+
if has_config("commonlib_json") then add_requires("glaze v7.0.0") end
40+
if has_config("commonlib_toml") then add_requires("toml11 v4.4.0") end
41+
if has_config("commonlib_xbyak") then add_requires("xbyak v7.06") end
4542

4643
target("commonlib-shared", function()
4744
-- set target kind

0 commit comments

Comments
 (0)