mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 02:00:41 +00:00
51922ea5be
2934af8af0 Added Patreon sponsor link. c8f18b6f0f Getting current program only when required for vglDrawObjects. 4c5d136b0d Added directive to enable vitaShaRK usage from cmd. 4a10df3be5 Minor adjustments and bugfixes. 14a0124acf Added GL_TEXTURE_LOD_BIAS support. 40c8c6205e Added GL_NONE def and fixed glUniform4f impl. 868079c51e Added glUniform4f implementation. 0a682cbad2 Typo fix. be3ce61ae7 Added GL_DEPTH_BITS and GL_STENCIL_BITS support. 21e6d1d330 Added runtime shader compiler support. 696e40bc62 Beautify error handler code. 537b37b110 Added glUniform3fv implementation. 7dd1403015 Fixed GLenum size and added missing types defines. 0c75f27ff1 Moved to NEON optimized memcpy usage. 98951895de Added gluPerspective implementation. 23e0b0b309 Fix for vglInitExtended not working on sys app mode. 4989c33ef5 Run clang-format. 429f1c1d8a Added system mode support. 9231680d02 Initializing sceGxm before free mem checking on vglInitExtended. 091e5e7882 Added vglInitWithCustomSizes. f4c646ea78 Added vglSetParamBufferSize. 1b9a063c41 Beautify some code. 089e81efc5 Fix for duplicated symbols 789dcbf812 Typo fix in readRGBA4444. 1514a4b2cb Disabling lto due to it being broken on vitasdk with gcc 9.1. fca18d9ab7 Added support for RGBA4444 texture format. d449f12808 Added support for RGB565 texture format. git-subtree-dir: deps/vitaGL git-subtree-split: 2934af8af083a9acf598ab75233c518a251c6f0d
208 lines
6.8 KiB
Makefile
208 lines
6.8 KiB
Makefile
include version.all
|
|
|
|
#which compiler to build with - GCC or SNC
|
|
#set to GCC for debug builds for use with debugger
|
|
CELL_BUILD_TOOLS = SNC
|
|
CELL_GPU_TYPE = RSX
|
|
CELL_PSGL_VERSION = opt
|
|
|
|
ASSETS_DIR := media/assets
|
|
|
|
# options
|
|
DOWNLOAD_SHADERS = 1
|
|
STRIPPING_ENABLE = 0
|
|
DEBUG = 0
|
|
HAVE_GCMGL = 0
|
|
HAVE_LOGGER = 0
|
|
HAVE_FREETYPE = 0
|
|
WHOLE_ARCHIVE_LINK = 0
|
|
|
|
CONTENT_ID_FULL = UP0001-SSNE10000_00-0000000000000001
|
|
CONTENT_ID = SSNE10000
|
|
|
|
PC_DEVELOPMENT_IP_ADDRESS = "192.168.1.7"
|
|
PC_DEVELOPMENT_UDP_PORT = 3490
|
|
|
|
CELL_MK_DIR ?= $(CELL_SDK)/samples/mk
|
|
include $(CELL_MK_DIR)/sdk.makedef.mk
|
|
|
|
PPU_TARGET = retroarch_ps3.elf
|
|
SALAMANDER_TARGET = retroarch-salamander_ps3.elf
|
|
|
|
EBOOT_PATH = pkg/ps3/USRDIR/EBOOT.BIN
|
|
CORE_PATH = pkg/ps3/USRDIR/cores/CORE.SELF
|
|
|
|
LDDIRS = -L. -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt
|
|
INCDIRS = -I. \
|
|
-Idefines \
|
|
-Ideps \
|
|
-Ideps/stb \
|
|
-Ideps/rcheevos/include \
|
|
-Ilibretro-common/include \
|
|
-Ilibretro-common/include/compat/zlib
|
|
|
|
# system platform
|
|
system_platform = unix
|
|
ifeq ($(shell uname -a),)
|
|
EXE_EXT = .exe
|
|
system_platform = win
|
|
else ifneq ($(findstring Darwin,$(shell uname -a)),)
|
|
system_platform = osx
|
|
else ifneq ($(findstring MINGW,$(shell uname -a)),)
|
|
system_platform = win
|
|
endif
|
|
|
|
PKG_SCRIPT = tools/ps3/ps3py/pkg.py
|
|
ifeq ($(shell uname), Linux)
|
|
PKG_FINALIZE = package_finalize
|
|
MAKE_SELF_WC = make_self_wc
|
|
MAKE_SELF = make_self_npdrm
|
|
PYTHON2 = python2
|
|
GIT = git
|
|
else
|
|
PKG_FINALIZE = package_finalize.exe
|
|
MAKE_SELF_WC = make_self_wc.exe
|
|
MAKE_SELF = make_self_npdrm.exe
|
|
PYTHON2 = python2.exe
|
|
GIT = git.exe
|
|
endif
|
|
|
|
PPU_SRCS = griffin/griffin.c
|
|
|
|
DEFINES += -DHAVE_VIDEO_LAYOUT
|
|
DEFINES += -DHAVE_MENU -DHAVE_CONFIGFILE -DHAVE_PATCH -DHAVE_CHEATS -DHAVE_GFX_WIDGETS -DHAVE_RGUI -DHAVE_XMB -DHAVE_OZONE -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DHAVE_SCREENSHOTS -DHAVE_REWIND -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER -DHAVE_STB_VORBIS -DHAVE_STB_FONT -DHAVE_RUNAHEAD -DHAVE_DR_MP3 -DHAVE_DR_FLAC
|
|
DEFINES += -DHAVE_ONLINE_UPDATER -DHAVE_UPDATE_ASSETS -DHAVE_UPDATE_CORES
|
|
|
|
ifeq ($(DEX_BUILD), 1)
|
|
DEFINES += -DDEX_BUILD
|
|
endif
|
|
|
|
ifeq ($(CEX_BUILD), 1)
|
|
DEFINES += -DCEX_BUILD
|
|
endif
|
|
|
|
ifeq ($(ODE_BUILD), 1)
|
|
DEFINES += -DODE_BUILD
|
|
endif
|
|
|
|
ifeq ($(HAVE_GCMGL), 1)
|
|
DEFINES += -DHAVE_GCMGL
|
|
GL_LIBS := -L. -lrgl_ps3
|
|
else
|
|
GL_LIBS := -L$(CELL_SDK)/target/ppu/lib/PSGL/RSX/ultra-opt -lPSGL -lPSGLcgc
|
|
endif
|
|
|
|
ifeq ($(HAVE_FREETYPE), 1)
|
|
DEFINES += -DHAVE_FREETYPE
|
|
FONT_LIBS := -lfontFT_stub -lfreetype_stub
|
|
endif
|
|
|
|
ifeq ($(CELL_BUILD_TOOLS), SNC)
|
|
PPU_CXXLD = $(CELL_SDK)/host-win32/sn/bin/ps3ppuld.exe
|
|
PPU_CXX = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
|
PPU_CC = $(CELL_SDK)/host-win32/sn/bin/ps3ppusnc.exe
|
|
else ifneq ($(system_platform), win)
|
|
PPU_CXX = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-g++.exe
|
|
PPU_CC = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-gcc.exe
|
|
PPU_CXXLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
|
|
PPU_CCLD = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ld.exe
|
|
endif
|
|
|
|
ifeq ($(WHOLE_ARCHIVE_LINK), 1)
|
|
WHOLE_START := -Wl, --whole-archive
|
|
WHOLE_END := -Wl, --no-whole-archive
|
|
endif
|
|
|
|
PPU_LDLIBS = $(FONT_LIBS) $(GL_LIBS) $(WHOLE_START) -lretro_ps3 $(WHOLE_END) -lcgc -lgcm_cmdasm -lgcm_sys_stub -lresc_stub -lm -lio_stub -lfs_stub -lsysutil_stub -lsysutil_game_stub -lsysutil_screenshot_stub -lsysutil_np_stub -lpngdec_stub -lsysmodule_stub -laudio_stub -lnet_stub -lnetctl_stub -lpthread
|
|
|
|
PPU_RANLIB = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-ranlib.exe
|
|
|
|
DEFINES += -DHAVE_THREADS -DRARCH_CONSOLE -DHAVE_OPENGL -DHAVE_HEADSET -DHAVE_LANGEXTRA -DHAVE_OPENGLES -DHAVE_OPENGLES1 -DHAVE_PSGL -DHAVE_CG -DHAVE_CG_RUNTIME_COMPILER -DHAVE_SYSMODULES -DHAVE_SYSUTILS -DHAVE_RARCH_EXEC -DHAVE_RSOUND -DHAVE_ZLIB -DHAVE_RPNG -DHAVE_RJPEG -DHAVE_RBMP -DHAVE_RTGA -DHAVE_7Z -D__CELLOS_LV2__ -DHAVE_NETWORKING=1 -DHAVE_SOCKET_LEGACY=1 -DHAVE_MOUSE -DHAVE_GRIFFIN=1 -DHAVE_MULTIMAN=1 -DPC_DEVELOPMENT_IP_ADDRESS=\"$(PC_DEVELOPMENT_IP_ADDRESS)\" -DPC_DEVELOPMENT_UDP_PORT=$(PC_DEVELOPMENT_UDP_PORT) -DHAVE_FILTERS_BUILTIN -DHAVE_CHEEVOS -DRC_DISABLE_LUA -DHAVE_DSP_FILTER -DHAVE_VIDEO_FILTER
|
|
|
|
#DEFINES += -DHAVE_IMAGEVIEWER
|
|
|
|
ifeq ($(DEBUG), 1)
|
|
PPU_OPTIMIZE_LV := -O0 -g
|
|
else
|
|
PPU_OPTIMIZE_LV := -O2 -g
|
|
endif
|
|
|
|
ifeq ($(HAVE_LOGGER), 1)
|
|
DEFINES += -DHAVE_LOGGER
|
|
endif
|
|
|
|
PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
|
PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCDIRS) $(DEFINES)
|
|
|
|
EXIST_EBOOT_WILDCARD := $(wildcard $(EBOOT_PATH))
|
|
EXIST_CORE_WILDCARD := $(wildcard $(CORE_PATH))
|
|
|
|
EBOOT_EXISTS = 1
|
|
CORE_EXISTS = 1
|
|
|
|
ifneq ($(strip $(EXIST_EBOOT_WILDCARD)),)
|
|
EBOOT_EXISTS = 0
|
|
endif
|
|
|
|
ifneq ($(strip $(EXIST_CORE_WILDCARD)),)
|
|
CORE_EXISTS = 0
|
|
endif
|
|
|
|
include $(CELL_MK_DIR)/sdk.target.mk
|
|
|
|
MAKE_FSELF = $(CELL_SDK)/host-win32/bin/make_fself.exe
|
|
MAKE_FSELF_NPDRM = $(CELL_SDK)/host-win32/bin/make_fself_npdrm.exe
|
|
MAKE_PACKAGE_NPDRM = $(CELL_SDK)/host-win32/bin/make_package_npdrm.exe
|
|
|
|
.PHONY: create-npdrm-core create-core create-npdrm-salamander create-shaders clean-selfs create-salamander
|
|
|
|
create-npdrm-core:
|
|
$(MAKE_FSELF_NPDRM) $(PPU_TARGET) $(CORE_PATH)
|
|
|
|
create-core:
|
|
$(MAKE_SELF_WC) $(PPU_TARGET) $(CORE_PATH)
|
|
|
|
create-npdrm-salamander:
|
|
$(MAKE_FSELF_NPDRM) $(SALAMANDER_TARGET) $(EBOOT_PATH)
|
|
|
|
create-salamander:
|
|
$(MAKE_SELF) $(SALAMANDER_TARGET) $(EBOOT_PATH) $(CONTENT_ID_FULL)
|
|
|
|
copy-media-files:
|
|
@cp -r $(ASSETS_DIR)/glui pkg/ps3/USRDIR/cores/assets
|
|
@cp -r $(ASSETS_DIR)/xmb pkg/ps3/USRDIR/cores/assets
|
|
|
|
create-shaders:
|
|
make -f Makefile.griffin platform=ps3 shaders-deploy
|
|
|
|
pkg: $(PPU_TARGET) create-shaders copy-media-files create-npdrm-salamander create-npdrm-core
|
|
$(MAKE_PACKAGE_NPDRM) pkg/ps3/package.conf pkg/ps3
|
|
|
|
pkg-signed: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
|
|
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
|
|
|
|
pkg-signed-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
|
|
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
|
|
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
|
|
|
|
pkg-signed-cfw: $(PPU_TARGET) create-shaders copy-media-files create-salamander create-core
|
|
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
|
|
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
|
|
|
|
pkg-signed-cfw-standalone: $(PPU_TARGET) create-shaders copy-media-files create-core
|
|
$(MAKE_SELF) $(PPU_TARGET) $(EBOOT_PATH) $(CONTENT_ID)
|
|
$(PYTHON2) $(PKG_SCRIPT) --contentid $(CONTENT_ID_FULL) pkg/ps3 retroarch-ps3-cfw-$(PACKAGE_VERSION).pkg
|
|
$(PKG_FINALIZE) retroarch-ps3-cfw-$(PACKAGE_VERSION)-kmeaw.pkg
|
|
|
|
clean-selfs:
|
|
ifeq ($(EBOOT_EXISTS),1)
|
|
@echo "WARNING: Couldn't find file to delete: [$(EBOOT_PATH)], skipping this step."
|
|
else
|
|
rm $(EBOOT_PATH)
|
|
endif
|
|
ifeq ($(CORE_EXISTS),1)
|
|
@echo "WARNING: Couldn't find file to delete: [$(CORE_PATH)], skipping this step."
|
|
else
|
|
rm $(CORE_PATH)
|
|
endif
|