Fix Makefile and Better Document Setup in README

This commit is contained in:
tobid7 2023-03-13 21:34:18 +01:00
parent 780025bb74
commit 805512fbea
2 changed files with 33 additions and 19 deletions

View File

@ -112,17 +112,13 @@ doc:
@doxygen Doxyfile @doxygen Doxyfile
dist-bin: all dist-bin: all
@tar --exclude=*~ -cjf $(TARGET)-$(VERSION).tar.bz2 include lib @tar --exclude=*~ -cjf $(TARGET).tar.bz2 include lib
dist-src: dist-src:
@tar --exclude=*~ -cjf $(TARGET)-src-$(VERSION).tar.bz2 include $(SOURCES) Makefile @tar --exclude=*~ -cjf $(TARGET)-src.tar.bz2 include $(SOURCES) Makefile
dist: dist-src dist-bin dist: dist-src dist-bin
install: dist-bin
mkdir -p $(DEPSDIR)$(DEVKITPRO)/libctru
bzip2 -cd $(TARGET)-$(VERSION).tar.bz2 | tar -xf - -C $(DEPSDIR)$(DEVKITPRO)/libctru
lib: lib:
@[ -d $@ ] || mkdir -p $@ @[ -d $@ ] || mkdir -p $@

View File

@ -1,20 +1,38 @@
# RenderD7 <img alt="LOGO" src="https://github.com/NPI-D7/RenderD7/blob/main/logo.png" height="90"> # <img alt="LOGO" src="https://github.com/NPI-D7/RenderD7/blob/main/logo.png" height="90">
RenderD7 is now LibRenderD7. RenderD7 is now LibRenderD7.
### Installation (Ubuntu) ### Installation
first run this Download a Package From Releses Page
`sudo su` `https://github.com/NPI-D7/RenderD7/releases/download/v0.9.3/renderd7.tar.bz2 -o renderd7.tar.bz2`
then this Then Extract it to your Libraries Path
`bzip2 -cd renderd7.tar.bz2 | tar -xf - -C path_to_your_libs`
Finally put `-lrenderd7` to the First Place and add the path_to_your_libs
``` ```
curl -L https://github.com/NPI-D7/RenderD7/releases/download/v0.8.0-pre1/renderd7-0.8.0.tar.bz2 -o renderd7-0.8.0.tar.bz2 LIBS := -lrenderd7 -lcurl -lstdc++ -lm -lcitro2d -lcitro3d -lctru
mkdir -p /opt/devkitpro/libctru
bzip2 -cd renderd7-0.8.0.tar.bz2 | tar -xf - -C /opt/devkitpro/libctru #---------------------------------------------------------------------------------
# list of directories containing libraries, this must be the top level containing
# include and lib
#---------------------------------------------------------------------------------
LIBDIRS := $(PORTLIBS) $(CTRULIB) ../path_to_your_libs
``` ```
Make sure that `-lrenderd7` is before `-lcitro2d`, `-lcitro3d`, `-lctru`. Make sure that `-lrenderd7` is before `-lcitro2d`, `-lcitro3d`, `-lctru`.
Here an example tree
# RenderD7 (https://npi-d7.github.io/RenderD7/) ```
Simple and Easey to use UI and Graphics helper. Example-App
Create DOCS ├── gfx
├── libs
│   ├── include
│   │   ├── rd7.hpp
│   │   └── renderd7
│   └── lib
│   ├── librenderd7.a
│   └── librenderd7d.a
├── Makefile
├── romfs
│   └── gfx
└── src
└── main.cpp
```
# Credits # Credits
- NPI-D7 - NPI-D7
- Tobi-D7 Main Dev - Tobi-D7 Main Dev