start removing submodules

This commit is contained in:
Srayan Jana
2025-09-19 21:22:25 -07:00
parent 4e0afdf5f5
commit 9ff65d55c7
4 changed files with 9 additions and 8 deletions

6
.gitmodules vendored
View File

@@ -1,6 +0,0 @@
[submodule "SDL"]
path = vendor/SDL
url = https://github.com/libsdl-org/SDL.git
[submodule "SDL_image"]
path = vendor/SDL_image
url = https://github.com/libsdl-org/SDL_image.git

View File

@@ -3,6 +3,13 @@ open System Lake DSL
package LeanDoomed
-- we can clone directly from main, I'm sure this is fine :)
def sdlGitRepo : String := "https://github.com/libsdl-org/SDL.git"
def sdlRepoDir : FilePath := "vendor/SDL"
def sdlImageGitRepo : String := "https://github.com/libsdl-org/SDL_image.git"
def sdlImageRepoDir : FilePath := "vendor/SDL_image"
input_file sdl.c where
path := "c" / "sdl.c"
text := true
@@ -16,6 +23,8 @@ target sdl.o pkg : FilePath := do
buildO oFile srcJob #[] #["-fPIC", s!"-I{sdlInclude}", s!"-I{sdlImageInclude}", "-D_REENTRANT", s!"-I{leanInclude}"] "cc"
target libleansdl pkg : FilePath := do
let _ IO.Process.run { cmd := "git", args := #["clone", "--depth", "1", "--recursive", sdlGitRepo, "vendor/SDL"] }
let _ IO.Process.run { cmd := "git", args := #["clone", "--depth", "1", "--recursive", sdlImageGitRepo, "vendor/SDL_image"] }
let sdlO sdl.o.fetch
let name := nameToStaticLib "leansdl"
-- manually copy the DLLs we need to .lake/build/bin/ for the game to work

1
vendor/SDL vendored

Submodule vendor/SDL deleted from dc7a3a1219

1
vendor/SDL_image vendored

Submodule vendor/SDL_image deleted from 21167aaec8