diff --git a/Makefile.ps3 b/Makefile.ps3 index b23e55327afa..01cf2a931f24 100644 --- a/Makefile.ps3 +++ b/Makefile.ps3 @@ -65,6 +65,18 @@ PPU_SRCS = griffin/griffin.c DEFINES += -DHAVE_MENU -DHAVE_RGUI -DHAVE_XMB -DHAVE_LIBRETRODB -DHAVE_MATERIALUI -DHAVE_SHADERPIPELINE -DRARCH_INTERNAL -DMSB_FIRST -DHAVE_OVERLAY -DHAVE_CC_RESAMPLER -DHAVE_STB_VORBIS +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 diff --git a/Makefile.ps3.cobra b/Makefile.ps3.cobra index d3f95fee52d8..db6db7db0227 100644 --- a/Makefile.ps3.cobra +++ b/Makefile.ps3.cobra @@ -63,6 +63,18 @@ PPU_SRCS = griffin/griffin.c DEFINES += -DHAVE_RGUI -DHAVE_MATERIALUI -DHAVE_XMB -DHAVE_MENU -DRARCH_INTERNAL +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 diff --git a/Makefile.ps3.salamander b/Makefile.ps3.salamander index 0d716a2e8fa8..49c8c9a71966 100644 --- a/Makefile.ps3.salamander +++ b/Makefile.ps3.salamander @@ -27,6 +27,18 @@ STRIP = $(CELL_SDK)/host-win32/ppu/bin/ppu-lv2-strip.exe INCFLAGS = -I. -Idefines -Ilibretro-common/include -Ideps/libz DEFINES = -D__CELLOS_LV2__ -DIS_SALAMANDER -DRARCH_CONSOLE -DHAVE_SYSUTILS -DHAVE_SYSMODULES -DHAVE_RARCH_EXEC +ifeq ($(DEX_BUILD), 1) +DEFINES += -DDEX_BUILD +endif + +ifeq ($(CEX_BUILD), 1) +DEFINES += -DCEX_BUILD +endif + +ifeq ($(ODE_BUILD), 1) +DEFINES += -DODE_BUILD +endif + PPU_CFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES) PPU_CXXFLAGS := $(PPU_OPTIMIZE_LV) $(INCFLAGS) $(DEFINES) diff --git a/config.def.h b/config.def.h index 50036db322d1..da3cd2d118f1 100644 --- a/config.def.h +++ b/config.def.h @@ -689,6 +689,12 @@ static char buildbot_server_url[] = ""; #endif #elif defined(WIIU) static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/nintendo/wiiu/latest/"; +#elif defined(__CELLOS_LV2__) && defined(DEX_BUILD) +static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/playstation/ps3/latest/dex-ps3"; +#elif defined(__CELLOS_LV2__) && defined(CEX_BUILD) +static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/playstation/ps3/latest/cex-ps3"; +#elif defined(__CELLOS_LV2__) && defined(ODE_BUILD) +static char buildbot_server_url[] = "http://buildbot.libretro.com/nightly/playstation/ps3/latest/ode-ps3"; #else static char buildbot_server_url[] = ""; #endif diff --git a/dist-scripts/dist-cores.sh b/dist-scripts/dist-cores.sh index 03d4c4f88306..7d9b95755636 100755 --- a/dist-scripts/dist-cores.sh +++ b/dist-scripts/dist-cores.sh @@ -73,6 +73,7 @@ elif [ $PLATFORM = "dex-ps3" ] ; then platform=ps3 SALAMANDER=yes EXT=a +OPTS=DEX_BUILD=1 EXE_PATH=${CELL_SDK}/host-win32/bin MAKE_FSELF_NPDRM=${EXE_PATH}/make_fself_npdrm.exe @@ -84,6 +85,7 @@ elif [ $PLATFORM = "cex-ps3" ]; then platform=ps3 SALAMANDER=yes EXT=a +OPTS=CEX_BUILD=1 EXE_PATH=${CELL_SDK}/host-win32/bin SCETOOL_PATH=${PS3TOOLS_PATH}/scetool/scetool.exe @@ -98,6 +100,7 @@ elif [ $PLATFORM = "ode-ps3" ]; then platform=ps3 SALAMANDER=yes EXT=a +OPTS=ODE_BUILD=1 EXE_PATH=${CELL_SDK}/host-win32/bin GENPS3ISO_PATH=${PS3TOOLS_PATH}/ODE/genps3iso_v2.5 @@ -124,7 +127,7 @@ fi # Compile Salamander core if [ $SALAMANDER = "yes" ]; then - make -C ../ -f Makefile.${platform}.salamander || exit 1 + make -C ../ -f Makefile.${platform}.salamander $OPTS || exit 1 if [ $PLATFORM = "psp1" ] ; then mv -f ../EBOOT.PBP ../pkg/${platform}/EBOOT.PBP fi @@ -193,16 +196,16 @@ for f in `ls -v *_${platform}.${EXT}`; do # Compile core if [ $MAKEFILE_GRIFFIN = "yes" ]; then - make -C ../ -f Makefile.griffin platform=${platform} $whole_archive $big_stack -j3 || exit 1 + make -C ../ -f Makefile.griffin $OPTS platform=${platform} $whole_archive $big_stack -j3 || exit 1 elif [ $PLATFORM = "emscripten" ]; then echo "BUILD COMMAND: make -C ../ -f Makefile.emscripten PTHREAD=$pthread ASYNC=$async LTO=$lto -j7 TARGET=${name}_libretro.js" - make -C ../ -f Makefile.emscripten PTHREAD=$pthread ASYNC=$async LTO=$lto -j7 TARGET=${name}_libretro.js || exit 1 + make -C ../ -f Makefile.emscripten $OPTS PTHREAD=$pthread ASYNC=$async LTO=$lto -j7 TARGET=${name}_libretro.js || exit 1 elif [ $PLATFORM = "unix" ]; then make -C ../ -f Makefile LINK=g++ $whole_archive $big_stack -j3 || exit 1 elif [ $PLATFORM = "ctr" ]; then - make -C ../ -f Makefile.${platform} LIBRETRO=$name $whole_archive $big_stack -j3 || exit 1 + make -C ../ -f Makefile.${platform} $OPTS LIBRETRO=$name $whole_archive $big_stack -j3 || exit 1 else - make -C ../ -f Makefile.${platform} $whole_archive $big_stack -j3 || exit 1 + make -C ../ -f Makefile.${platform} $OPTS $whole_archive $big_stack -j3 || exit 1 fi # Do manual executable step