Skip to content

Commit 6d3c2cb

Browse files
committed
microtar is fetched dynamically.
1 parent b825327 commit 6d3c2cb

2 files changed

Lines changed: 15 additions & 7 deletions

File tree

dep/build.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -898,3 +898,17 @@
898898
),
899899
],
900900
)
901+
902+
clibrary(
903+
name="microtar_lib",
904+
srcs=["dep/r/microtar/src/microtar.c"],
905+
hdrs={"microtar.h":"dep/r/microtar/src/microtar.h"},
906+
deps=[
907+
git_repository(
908+
name="microtar_repo",
909+
url="https://github.com/rxi/microtar",
910+
branch="v0.1.0",
911+
path="dep/r/microtar",
912+
),
913+
]
914+
)

src/gui2/build.py

Lines changed: 1 addition & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ def sources_from(path, except_for=[]):
8181
)
8282

8383

84-
clibrary(
85-
name="libmicrotar",
86-
srcs=sources_from("dep/imhex/lib/third_party/microtar/source"),
87-
hdrs=headers_from("dep/imhex/lib/third_party/microtar/include"),
88-
)
89-
9084
if config.osx:
9185
clibrary(
9286
name="libimhex-utils",
@@ -150,7 +144,7 @@ def sources_from(path, except_for=[]):
150144
".+imgui",
151145
".+libcurl_lib",
152146
".+libimhex-utils",
153-
".+libmicrotar",
147+
"dep+microtar_lib",
154148
".+magic_lib",
155149
".+mbedtls_lib",
156150
"dep+libwolv_lib",

0 commit comments

Comments
 (0)