Skip to content

Commit

Permalink
fix: module deps
Browse files Browse the repository at this point in the history
  • Loading branch information
0-Sacha committed Oct 29, 2024
1 parent 6c5738c commit 9e5b44e
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 7 deletions.
4 changes: 2 additions & 2 deletions BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ cc_test(
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [ "@StreamFormat//:StreamFormat", ":LittleECS" ],
deps = [ "@streamformat//:StreamFormat", ":LittleECS" ],
visibility = ["//visibility:public"],
)

Expand All @@ -39,6 +39,6 @@ cc_test(
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [ "@StreamFormat//:StreamFormat", ":LittleECS" ],
deps = [ "@streamformat//:StreamFormat", ":LittleECS" ],
visibility = ["//visibility:public"],
)
3 changes: 3 additions & 0 deletions Examples/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,12 +9,15 @@ module(
git_override(module_name="bazel_utilities", remote="https://github.com/0-Sacha/bazel_utilities.git", commit="7f6c3585c41278918428ed48d45b12413c197fc0")
git_override(module_name="bazel_buildbuddy", remote="https://github.com/0-Sacha/bazel_buildbuddy.git", commit="b60314cac7826edb87efe285b032b877ad725f84")
git_override(module_name="bazel_winlibs", remote="https://github.com/0-Sacha/bazel_winlibs.git", commit="e2cc97b61cb9115fbc2b7169dc9d1cb36b351935")
git_override(module_name="streamformat", remote="https://github.com/0-Sacha/StreamFormat.git", commit="6faa20c9176b14e81903d0d65ad06e6a6e36332b")
local_path_override(module_name = "littleecs", path = "../")

bazel_dep(name = "rules_cc", version = "0.0.10")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "bazel_utilities", version = "0.0.1")
bazel_dep(name = "bazel_winlibs", version = "0.0.1")

bazel_dep(name = "streamformat", version = "0.1")
bazel_dep(name = "littleecs")

winlibs_toolchain_extension = use_extension("@bazel_winlibs//:rules.bzl", "winlibs_toolchain_extension")
Expand Down
2 changes: 1 addition & 1 deletion Examples/Workflow/BUILD.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,6 @@ cc_binary(
"@rules_cc//cc/compiler:msvc-cl": ["/std:c++20"],
"//conditions:default": ["-std=c++20"],
}),
deps = [ "@StreamFormat//:StreamFormat", "@littleecs//:LittleECS" ],
deps = [ "@streamformat//:StreamFormat", "@littleecs//:LittleECS" ],
visibility = ["//visibility:public"],
)
3 changes: 3 additions & 0 deletions MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,16 @@ module(
git_override(module_name="bazel_utilities", remote="https://github.com/0-Sacha/bazel_utilities.git", commit="7f6c3585c41278918428ed48d45b12413c197fc0")
git_override(module_name="bazel_buildbuddy", remote="https://github.com/0-Sacha/bazel_buildbuddy.git", commit="b60314cac7826edb87efe285b032b877ad725f84")
git_override(module_name="bazel_winlibs", remote="https://github.com/0-Sacha/bazel_winlibs.git", commit="e2cc97b61cb9115fbc2b7169dc9d1cb36b351935")
git_override(module_name="streamformat", remote="https://github.com/0-Sacha/StreamFormat.git", commit="6faa20c9176b14e81903d0d65ad06e6a6e36332b")

bazel_dep(name = "rules_cc", version = "0.0.10")
bazel_dep(name = "platforms", version = "0.0.10")
bazel_dep(name = "bazel_utilities", version = "0.0.1")
bazel_dep(name = "bazel_buildbuddy", version = "0.0.1")
bazel_dep(name = "bazel_winlibs", version = "0.0.1")

bazel_dep(name = "streamformat", version = "0.1")

bazel_dep(name = "hedron_compile_commands", dev_dependency = True)
git_override(
module_name = "hedron_compile_commands",
Expand Down
5 changes: 3 additions & 2 deletions src/LittleECS/Detail/ComponentId.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,11 @@ namespace LECS
namespace StreamFormat::FMT
{
template<typename FormatterContext>
struct FormatterType<LECS::ComponentId, FormatterContext> {
struct FormatterType<LECS::ComponentId, FormatterContext>
{
static void Format(LECS::ComponentId typeId, FormatterContext& context)
{
FormatterType<Detail::ForwardAsUInt<typename LECS::ComponentId::Type>, FormatterContext>::Format(typeId, context);
FormatterType<typename LECS::ComponentId::Type, FormatterContext>::Format(typeId, context);
}
};
}
5 changes: 3 additions & 2 deletions src/LittleECS/Detail/EntityId.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,11 @@ namespace LECS
namespace StreamFormat::FMT
{
template<typename FormatterContext>
struct FormatterType<LECS::EntityId, FormatterContext> {
struct FormatterType<LECS::EntityId, FormatterContext>
{
static void Format(LECS::EntityId typeId, FormatterContext& context)
{
FormatterType<Detail::ForwardAsUInt<typename LECS::EntityId::Type>, FormatterContext>::Format(typeId, context);
FormatterType<typename LECS::EntityId::Type, FormatterContext>::Format(typeId, context);
}
};
}
Expand Down

0 comments on commit 9e5b44e

Please sign in to comment.