added mupdf to Makefile, and updated README.md

This commit is contained in:
Moroni Granja 2019-10-30 14:04:07 -03:00
parent ca97d03042
commit 93b0ea80c9
2 changed files with 27 additions and 5 deletions

View File

@ -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
#---------------------------------------------------------------------------------------
#---------------------------------------------------------------------------------------

View File

@ -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:
<br></br>
<img src="screenshots/lightModeLandscape.jpg" width="512" height="288">
###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.