diff --git a/.gitmodules b/.gitmodules index 354e146..1df9da6 100644 --- a/.gitmodules +++ b/.gitmodules @@ -7,3 +7,6 @@ [submodule "unigi/unigi.platform.sdl1"] path = unigi.platform.sdl1 url = https://git.lumen.sh/Fierelier/unigi.platform.sdl1.git +[submodule "unigi.platform.sdl2"] + path = unigi.platform.sdl2 + url = https://git.lumen.sh/Fierelier/unigi.platform.sdl2.git diff --git a/Makefile b/Makefile index 88b1a2d..d69d00b 100644 --- a/Makefile +++ b/Makefile @@ -21,7 +21,7 @@ else endif HALOOLIB = haloo3d/build/haloo3d_full.a -UNIGIPLAT = $(BUILDD)/unigi.platform.sdl1.o +UNIGIPLAT = $(BUILDD)/unigi.platform.sdl2.o UNIGILIB = $(BUILDD)/unigi.a .PHONY: clean @@ -33,7 +33,7 @@ libs: $(UNIGILIB) $(HALOOLIB) $(HALOOLIB): cd haloo3d && $(MAKE) full -$(UNIGIPLAT): unigi.platform.sdl1/main.c +$(UNIGIPLAT): unigi.platform.sdl2/main.c mkdir -p $(BUILDD) $(CC) $(CFLAGS) -I. -c $< -o $@ diff --git a/unigi b/unigi deleted file mode 160000 index cc36d7c..0000000 --- a/unigi +++ /dev/null @@ -1 +0,0 @@ -Subproject commit cc36d7c9da306334e3b7001ad5d60e6fec48958e diff --git a/unigi.platform.sdl2 b/unigi.platform.sdl2 new file mode 160000 index 0000000..f5adfe0 --- /dev/null +++ b/unigi.platform.sdl2 @@ -0,0 +1 @@ +Subproject commit f5adfe0495095576721ab639fe4044147488c473