build uchardet on linux/windows

This commit is contained in:
Struma 2021-06-26 13:56:42 -04:00 committed by Roza
parent d10125acc7
commit ce65c10cce
2 changed files with 33 additions and 2 deletions

View file

@ -112,6 +112,22 @@ $(DOWNLOADS)/pixman/autogen.sh:
$(CLONE) $(GITLAB)/mkxp-z/pixman $(DOWNLOADS)/pixman $(CLONE) $(GITLAB)/mkxp-z/pixman $(DOWNLOADS)/pixman
# uchardet
uchardet: init_dirs $(LIBDIR)/libuchardet.a
$(LIBDIR)/libuchardet.a: $(DOWNLOADS)/uchardet/cmakebuild/Makefile
cd $(DOWNLOADS)/uchardet/cmakebuild; \
make -j$(NPROC); make install
$(DOWNLOADS)/uchardet/cmakebuild/Makefile: $(DOWNLOADS)/uchardet/CMakeLists.txt
cd $(DOWNLOADS)/uchardet; \
mkdir cmakebuild; cd cmakebuild; \
$(CMAKE) -DBUILD_SHARED_LIBS=no
$(DOWNLOADS)/uchardet/CMakeLists.txt:
$(CLONE) $(GITHUB)/freedesktop/uchardet $(DOWNLOADS)/uchardet
# PhysFS # PhysFS
physfs: init_dirs $(LIBDIR)/libphysfs.a physfs: init_dirs $(LIBDIR)/libphysfs.a
@ -317,5 +333,5 @@ powerwash: clean-downloads
clean-downloads: clean-downloads:
-rm -rf downloads -rm -rf downloads
deps-core: libvorbis sigcxx pixman libpng libjpeg physfs sdl2 sdl2image sdlsound sdl2ttf openal openssl fluidsynth deps-core: libvorbis sigcxx pixman libpng libjpeg physfs sdl2 sdl2image sdlsound sdl2ttf openal openssl fluidsynth uchardet
everything: deps-core ruby everything: deps-core ruby

View file

@ -145,6 +145,21 @@ $(DOWNLOADS)/libjpeg/cmakebuild/Makefile: $(DOWNLOADS)/libjpeg/CMakeLists.txt
$(DOWNLOADS)/libjpeg/CMakeLists.txt: $(DOWNLOADS)/libjpeg/CMakeLists.txt:
$(CLONE) $(GITLAB)/mkxp-z/libjpeg-turbo $(DOWNLOADS)/libjpeg $(CLONE) $(GITLAB)/mkxp-z/libjpeg-turbo $(DOWNLOADS)/libjpeg
# uchardet
uchardet: init_dirs $(LIBDIR)/libuchardet.a
$(LIBDIR)/libuchardet.a: $(DOWNLOADS)/uchardet/cmakebuild/Makefile
cd $(DOWNLOADS)/uchardet/cmakebuild; \
make -j$(NPROC); make install
$(DOWNLOADS)/uchardet/cmakebuild/Makefile: $(DOWNLOADS)/uchardet/CMakeLists.txt
cd $(DOWNLOADS)/uchardet; \
mkdir cmakebuild; cd cmakebuild; \
$(CMAKE) -DBUILD_SHARED_LIBS=no
$(DOWNLOADS)/uchardet/CMakeLists.txt:
$(CLONE) $(GITHUB)/freedesktop/uchardet $(DOWNLOADS)/uchardet
# SDL2 # SDL2
sdl2: init_dirs $(LIBDIR)/libSDL2.a sdl2: init_dirs $(LIBDIR)/libSDL2.a
@ -305,5 +320,5 @@ powerwash: clean-downloads
clean-downloads: clean-downloads:
-rm -rf downloads -rm -rf downloads
deps-core: libvorbis pixman libpng libjpeg physfs sdl2 sdl2image sdlsound sdl2ttf openal openssl fluidsynth deps-core: libvorbis pixman libpng libjpeg physfs sdl2 sdl2image sdlsound sdl2ttf openal openssl fluidsynth uchardet
everything: deps-core ruby everything: deps-core ruby