Search
Setup for Free
S
Silk.NET
•
3y ago
Maxine
why are all the native libs not in a submodule
why are all the native libs not in a submodule
Silk.NET
Join
A Discord server for the Silk.NET - your one-stop-shop for high-speed .NET multimedia, graphics, and compute. FOSS.
1,790
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Similar Threads
Was this page helpful?
Yes
No
© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
M
Maxine
OP
•
8/10/23, 7:12 AM
i had to build silk buildtools locally and even though i wasn
't compiling the entire project i had to pull in 600mb of stuff
L
Lyris the Kitori
•
8/10/23, 7:12 AM
dont worry
L
Lyris the Kitori
•
8/10/23, 7:12 AM
i have 50GB of Silk
.NET clones
L
Lyris the Kitori
•
8/10/23, 7:12 AM
averaging 7gb per clone
M
Maxine
i had to build silk buildtools locally and even though i wasn't compiling the en...
M
Maxine
OP
•
8/10/23, 7:12 AM
i hope those are on LFS
L
Lyris the Kitori
•
8/10/23, 7:13 AM
no
L
Lyris the Kitori
•
8/10/23, 7:13 AM
its commit STRAIGHT to the repo
M
Maxine
OP
•
8/10/23, 7:13 AM
i didn
't know that was even allowed
L
Lyris the Kitori
•
8/10/23, 7:13 AM
what are they gonna do
L
Lyris the Kitori
•
8/10/23, 7:13 AM
tell us to stop
L
Lyris the Kitori
•
8/10/23, 7:14 AM
did we ever figure out how native libs were gonna go in 3
.0
L
Lyris the Kitori
•
8/10/23, 7:14 AM
if not
, i have an idea
M
Maxine
why are all the native libs not in a submodule
P
Perksey
•
8/10/23, 7:14 AM
idk
, silk has always been a monorepo and it not being a monorepo would involve us going to the dotnet gods every time we want to make a repo
L
Lyris the Kitori
did we ever figure out how native libs were gonna go in 3.0
P
Perksey
•
8/10/23, 7:14 AM
so far it
's just the same again because it works
, what did you have in mind
?
L
Lyris the Kitori
•
8/10/23, 7:14 AM
so
P
Perksey
idk, silk has always been a monorepo and it not being a monorepo would involve u...
M
Maxine
OP
•
8/10/23, 7:14 AM
just one repo for binaries and one repo for everything else
L
Lyris the Kitori
•
8/10/23, 7:14 AM
the zig compiler lets us setup fully deterministic and fully reproducable builds relatively easily
M
Maxine
OP
•
8/10/23, 7:15 AM
that way a non recursive clone doesn
't rail the user
L
Lyris the Kitori
•
8/10/23, 7:15 AM
and so
, what we do is we setup a msbuild task magic thing to invoke the zig compiler and actually build the native libs
L
Lyris the Kitori
•
8/10/23, 7:15 AM
on the fly
L
Lyris the Kitori
•
8/10/23, 7:15 AM
when you build the native project
M
Maxine
that way a non recursive clone doesn't rail the user
P
Perksey
•
8/10/23, 7:15 AM
believe me that
's not what bloats the repo
L
Lyris the Kitori
•
8/10/23, 7:15 AM
the 3 copies of LLVM in our submodules bloat it WAY more
P
Perksey
•
8/10/23, 7:15 AM
OH GOD WHAT HAVE I SIGNED UP TO
L
Lyris the Kitori
•
8/10/23, 7:16 AM
--depth 1
--depth 1
L
Lyris the Kitori
•
8/10/23, 7:16 AM
--single-branch
--single-branch
L
Lyris the Kitori
•
8/10/23, 7:16 AM
or better yet
L
Lyris the Kitori
•
8/10/23, 7:16 AM
dont clone with submodules
L
Lyris the Kitori
•
8/10/23, 7:16 AM
its not needed for base Silk
.NET
C
chairclr
•
8/10/23, 7:16 AM
how do i only clone a single folder
M
Maxine
OP
•
8/10/23, 7:16 AM
you can
't
, it
's not svn
:
)
L
Lyris the Kitori
and so, what we do is we setup a msbuild task magic thing to invoke the zig comp...
L
Lyris the Kitori
•
8/10/23, 7:17 AM
but what this would do is let us have our easy
"clone and run
" but without the overhead of commiting it to the repos
M
Maxine
OP
•
8/10/23, 7:18 AM
yall should make buildtools a
.net tool
M
Maxine
OP
•
8/10/23, 7:18 AM
it already basically is
L
Lyris the Kitori
•
8/10/23, 7:18 AM
no
M
Maxine
OP
•
8/10/23, 7:18 AM
:
(
L
Lyris the Kitori
•
8/10/23, 7:18 AM
its not meant for external use
-says me
, a person who uses it externally
M
Maxine
OP
•
8/10/23, 7:18 AM
why do i gotta clone THE ENTIRE THING to generate bindings for an unrelated project
L
Lyris the Kitori
•
8/10/23, 7:18 AM
you dont
L
Lyris the Kitori
•
8/10/23, 7:18 AM
i believe everything needed is publicly exposed on the nuget
M
Maxine
OP
•
8/10/23, 7:18 AM
not the buildtools
, not last i checked
L
Lyris the Kitori
•
8/10/23, 7:19 AM
https://www.nuget.org/packages/Silk.NET.BuildTools
Silk.NET.BuildTools 2.17.1
Silk
.NET is a high
-speed
, advanced library
, providing bindings to popular low
-level APIs such as OpenGL
, OpenCL
, OpenAL
, OpenXR
, GLFW
, SDL
, Vulkan
, Assimp
, and DirectX
.
M
Maxine
OP
•
8/10/23, 7:19 AM
unless i
'm really blind
L
Lyris the Kitori
•
8/10/23, 7:19 AM
you can pull that in over nuget and call into the functions
M
Maxine
OP
•
8/10/23, 7:19 AM
i
think
that
's missing deps
?
M
Maxine
OP
•
8/10/23, 7:19 AM
or something
L
Lyris the Kitori
•
8/10/23, 7:19 AM
i explicitly remember doing patches to make this path possible
M
Maxine
OP
•
8/10/23, 7:19 AM
i
'll try it out later
L
Lyris the Kitori
•
8/10/23, 7:19 AM
may still be broken i dont know
L
Lyris the Kitori
•
8/10/23, 7:19 AM
i have 8 clones of Silk
.NET to choose from
Next page
--depth 1
--depth 1
--single-branch
--single-branch
Similar Threads
.NET 6 Target for all libs
S
Silk.NET / team-talk
5y ago