From 93b0ea80c98d29c9ff3b13d0cdf019dd9be2a98f Mon Sep 17 00:00:00 2001 From: Moroni Granja Date: Wed, 30 Oct 2019 14:04:07 -0300 Subject: [PATCH] added mupdf to Makefile, and updated README.md --- Makefile | 14 +++++++++++--- README.md | 18 ++++++++++++++++-- 2 files changed, 27 insertions(+), 5 deletions(-) diff --git a/Makefile b/Makefile index 28507c5..12b5816 100644 --- a/Makefile +++ b/Makefile @@ -74,7 +74,7 @@ LIBS := -lstdc++fs -lSDL2_ttf -lSDL2_image -lpng -ljpeg `sdl2-config --libs` # list of directories containing libraries, this must be the top level containing # include and lib #--------------------------------------------------------------------------------- -LIBDIRS := $(PORTLIBS) $(LIBNX) +LIBDIRS := $(PORTLIBS) $(LIBNX) $(CURDIR)/mupdf #--------------------------------------------------------------------------------- # no real need to edit anything past this point unless you need to add additional @@ -163,7 +163,7 @@ ifneq ($(ROMFS),) export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS) endif -.PHONY: $(BUILD) clean all +.PHONY: $(BUILD) clean all mupdf #--------------------------------------------------------------------------------- all: $(BUILD) @@ -181,6 +181,14 @@ else @rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf endif +#--------------------------------------------------------------------------------- +mupdf-clean: + @echo cleaning mupdf ... + @$(MAKE) -C $(CURDIR)/mupdf clean + +#--------------------------------------------------------------------------------- +mupdf: + @$(MAKE) -f $(CURDIR)/Makefile.mupdf #--------------------------------------------------------------------------------- else @@ -227,4 +235,4 @@ $(OFILES_SRC) : $(HFILES_BIN) #--------------------------------------------------------------------------------------- endif -#--------------------------------------------------------------------------------------- \ No newline at end of file +#--------------------------------------------------------------------------------------- diff --git a/README.md b/README.md index 2b115bf..6a3705e 100644 --- a/README.md +++ b/README.md @@ -10,13 +10,14 @@ This is a project I've recently just started working on again. Currently its usi * Portrait reading view ### Current State: -* So far, only **MOST** of the PDF files I've tested works. +* Most PDF files work, and all epub, cbz and xps files I've tested work. ### TODO: -* Fix some PDF crashes and all the other file extentions. +* Do some extra testing on file compatibility. * 2 pages side by side in landscape. * Touch screen for going to next page. * Hardware lock to prevent accidental touches (maybe Vol- ?) (?). +* Save orientation, and dark mode settings. ### Screen Shots: @@ -43,3 +44,16 @@ Dark Mode Book Selection: Light Mode Landscape Reading:

+ +###Building +* Release built with [libnx release v2.4.0](https://github.com/switchbrew/libnx). +* Uses `freetype` and other libs which comes with `switch-portlibs` via `devkitPro pacman`: +``` +pacman -S libnx switch-portlibs +``` +then run: +``` +make mupdf +make +``` +to build.