Conversation
sharkwouter
left a comment
There was a problem hiding this comment.
This looks pretty good, thanks! I would like to request one more change. Could you add the license file to the package? You can just copy that from other packages, since they almost all have an install command for it.
|
At some point we should probably add a pkg config file for Raylib, but I won't require that for the first package. If you feel like it, you can take a go at it, though. |
|
@sharkwouter I could add it if you tell me where to look |
|
Alongside the psp toolchain, this port requires the following libraries to be linked when being consumed by an end user -lraylib -lpng -lz -lglut -lGLU -lGL -lpspvfpu Here is the full Makefile for raylib usage BUILD_PRX = 1
TARGET = raylib
OBJS = main.o
INCDIR =
CFLAGS = -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBDIR =
LDFLAGS =
LIBS= -lraylib -lpng -lz -lglut -lGLU -lGL -lpspvfpu
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = raylib textures bunnymark
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
# --- Move build artifacts into a build/ directory, leaving EBOOT.PBP and PARAM.SFO behind ---
BUILD_DIR := build
.PHONY: postbuild install
# run postbuild automatically after the SDK's all target
all: postbuild
postbuild: $(BUILD_DIR)
@for f in *.o *.prx *.elf; do \
if [ -f "$$f" ]; then \
echo " mv $$f -> $(BUILD_DIR)/"; \
mv -f "$$f" "$(BUILD_DIR)/"; \
fi; \
done
@echo "Done."
$(BUILD_DIR):
@mkdir -p "$(BUILD_DIR)" |
|
I've added them. I copied the .cmake from raylib but removed the if else checks for static/dynamic linking, and replaced them with the static version. |
|
@sharkwouter the build environment doesnt seem to have psp gl |
|
You'll have to add pspgl as a dependency for it to become available during the build. |
|
@sharkwouter I made the changes, hopefully it works as intended now 🤞 (probably wont) |
|
I fixed the hashes which were still missing and merged it now. Thanks for contributing :) |
I've added the PSPBUILD. it's based on the one used in the stb library. I've tested it and it seems to work on my machine. But one thing to note is that:
It depends on the psp toolchain. ie. pspkernel.h pspdisplay, pspgl, and it expects $(PSPDEV) to point to the toolchain.
Here is the list of dependencies