MAKE: updated target for sdl2 update
parent
511b0e66d1
commit
b4e7e6a9fc
|
@ -59,8 +59,6 @@ option(THUMBNAILER "Builds thumbnailer" ON)
|
|||
option(VOXCONVERT "Builds voxconvert" ON)
|
||||
option(MAPVIEW "Builds mapview" ON)
|
||||
option(NOISETOOL "Builds noisetool" ON)
|
||||
set(GIT_EXECUTABLE "git" CACHE STRING "The git binary to use for the update-libs target")
|
||||
set(HG_EXECUTABLE "hg" CACHE STRING "The mercurial binary to use for the update-libs target")
|
||||
option(USE_CCACHE "Use ccache" ON)
|
||||
option(USE_GPROF "Use gprof - will become slow" OFF)
|
||||
option(USE_GCOV "Use gcov - will become slow" OFF)
|
||||
|
|
10
Makefile
10
Makefile
|
@ -60,14 +60,6 @@ define UPDATE_GIT
|
|||
fi;
|
||||
endef
|
||||
|
||||
define UPDATE_HG
|
||||
$(Q)if [ ! -d $(UPDATEDIR)/$(1).sync ]; then \
|
||||
hg clone $(2) $(UPDATEDIR)/$(1).sync; \
|
||||
else \
|
||||
cd $(UPDATEDIR)/$(1).sync && hg pull && hg update; \
|
||||
fi;
|
||||
endef
|
||||
|
||||
update-libuv:
|
||||
$(call UPDATE_GIT,libuv,https://github.com/libuv/libuv.git)
|
||||
rm -rf contrib/libs/libuv/include/uv/*.[ch]
|
||||
|
@ -140,7 +132,7 @@ update-glm:
|
|||
rm contrib/libs/glm/glm/CMakeLists.txt
|
||||
|
||||
update-sdl2:
|
||||
$(call UPDATE_HG,sdl2,https://hg.libsdl.org/SDL)
|
||||
$(call UPDATE_GIT,sdl2,https://github.com/libsdl-org/SDL.git)
|
||||
rm -rf contrib/libs/sdl2/src/* contrib/libs/sdl2/include/* contrib/libs/sdl2/cmake/*
|
||||
cp -r $(UPDATEDIR)/sdl2.sync/src/* contrib/libs/sdl2/src
|
||||
cp -r $(UPDATEDIR)/sdl2.sync/wayland-protocols/* contrib/libs/sdl2/wayland-protocols
|
||||
|
|
Loading…
Reference in New Issue