start removing submodules
This commit is contained in:
6
.gitmodules
vendored
6
.gitmodules
vendored
@@ -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
|
||||
|
||||
@@ -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
1
vendor/SDL
vendored
Submodule vendor/SDL deleted from dc7a3a1219
1
vendor/SDL_image
vendored
1
vendor/SDL_image
vendored
Submodule vendor/SDL_image deleted from 21167aaec8
Reference in New Issue
Block a user