added mupdf to Makefile, and updated README.md
This commit is contained in:
parent
ca97d03042
commit
93b0ea80c9
14
Makefile
14
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
|
# list of directories containing libraries, this must be the top level containing
|
||||||
# include and lib
|
# 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
|
# 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)
|
export NROFLAGS += --romfsdir=$(CURDIR)/$(ROMFS)
|
||||||
endif
|
endif
|
||||||
|
|
||||||
.PHONY: $(BUILD) clean all
|
.PHONY: $(BUILD) clean all mupdf
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
all: $(BUILD)
|
all: $(BUILD)
|
||||||
|
@ -181,6 +181,14 @@ else
|
||||||
@rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf
|
@rm -fr $(BUILD) $(TARGET).nsp $(TARGET).nso $(TARGET).npdm $(TARGET).elf
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
mupdf-clean:
|
||||||
|
@echo cleaning mupdf ...
|
||||||
|
@$(MAKE) -C $(CURDIR)/mupdf clean
|
||||||
|
|
||||||
|
#---------------------------------------------------------------------------------
|
||||||
|
mupdf:
|
||||||
|
@$(MAKE) -f $(CURDIR)/Makefile.mupdf
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------
|
||||||
else
|
else
|
||||||
|
@ -227,4 +235,4 @@ $(OFILES_SRC) : $(HFILES_BIN)
|
||||||
|
|
||||||
#---------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------
|
||||||
endif
|
endif
|
||||||
#---------------------------------------------------------------------------------------
|
#---------------------------------------------------------------------------------------
|
||||||
|
|
18
README.md
18
README.md
|
@ -10,13 +10,14 @@ This is a project I've recently just started working on again. Currently its usi
|
||||||
* Portrait reading view
|
* Portrait reading view
|
||||||
|
|
||||||
### Current State:
|
### 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:
|
### 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.
|
* 2 pages side by side in landscape.
|
||||||
* Touch screen for going to next page.
|
* Touch screen for going to next page.
|
||||||
* Hardware lock to prevent accidental touches (maybe Vol- ?) (?).
|
* Hardware lock to prevent accidental touches (maybe Vol- ?) (?).
|
||||||
|
* Save orientation, and dark mode settings.
|
||||||
|
|
||||||
### Screen Shots:
|
### Screen Shots:
|
||||||
|
|
||||||
|
@ -43,3 +44,16 @@ Dark Mode Book Selection:
|
||||||
Light Mode Landscape Reading:
|
Light Mode Landscape Reading:
|
||||||
<br></br>
|
<br></br>
|
||||||
<img src="screenshots/lightModeLandscape.jpg" width="512" height="288">
|
<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.
|
||||||
|
|
Loading…
Reference in New Issue