Skip to content

Commit 3632c0a

Browse files
authored
chore(deps): bzlmodify more deps (#104)
1 parent 80e4e74 commit 3632c0a

File tree

2 files changed

+14
-29
lines changed

2 files changed

+14
-29
lines changed

MODULE.bazel

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,17 @@ module(name = "ecsact_parse")
22

33
bazel_dep(name = "rules_cc", version = "0.0.8")
44
bazel_dep(name = "bazel_skylib", version = "1.4.2")
5+
bazel_dep(name = "lexy")
6+
bazel_dep(name = "magic_enum")
7+
8+
git_override(
9+
module_name = "lexy",
10+
remote = "https://github.com/zaucy/lexy",
11+
commit = "6be29cc1b26f93c35b987979ab304ade7a506400",
12+
)
13+
14+
git_override(
15+
module_name = "magic_enum",
16+
remote = "https://github.com/Neargye/magic_enum",
17+
commit = "745bf36a64962aa113bd04fb9d2d377e7878d2ef",
18+
)

repositories.bzl

Lines changed: 0 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,6 @@
11
load("@bazel_tools//tools/build_defs/repo:http.bzl", _http_archive = "http_archive")
22
load("@bazel_tools//tools/build_defs/repo:utils.bzl", "maybe")
33

4-
_LEXY_BUILD_FILE_CONTENT = """
5-
load("@rules_cc//cc:defs.bzl", "cc_library")
6-
load("@ecsact_parse//bazel:copts.bzl", "copts")
7-
8-
cc_library(
9-
name = "lexy",
10-
visibility = ["//visibility:public"],
11-
includes = ["include"],
12-
hdrs = glob(["include/**/*.hpp"]),
13-
srcs = ["src/input/file.cpp"],
14-
strip_include_prefix = "include",
15-
copts = copts,
16-
)
17-
"""
18-
194
def http_archive(name, **kwargs):
205
maybe(_http_archive, name = name, **kwargs)
216

@@ -33,17 +18,3 @@ def ecsact_parse_dependencies():
3318
strip_prefix = "ecsact_runtime-5cbf7257d7cbc42762d22e7604bc5bc0efb837fe",
3419
url = "https://github.com/ecsact-dev/ecsact_runtime/archive/5cbf7257d7cbc42762d22e7604bc5bc0efb837fe.zip",
3520
)
36-
37-
http_archive(
38-
name = "lexy",
39-
build_file_content = _LEXY_BUILD_FILE_CONTENT,
40-
sha256 = "de2199f8233ea5ed9d4dbe86a8eaf88d754decd28e28554329a7b29b4d952773",
41-
url = "https://github.com/foonathan/lexy/releases/download/v2022.05.1/lexy-src.zip",
42-
)
43-
44-
http_archive(
45-
name = "magic_enum",
46-
sha256 = "6b948d1680f02542d651fc82154a9e136b341ce55c5bf300736b157e23f9df11",
47-
strip_prefix = "magic_enum-0.8.1",
48-
url = "https://github.com/Neargye/magic_enum/archive/refs/tags/v0.8.1.tar.gz",
49-
)

0 commit comments

Comments
 (0)