diff --git a/src_rebuild/PsyX/include/GTEREG.H b/src_rebuild/PsyX/include/GTEREG.H index 8a0b7de9..550318b0 100644 --- a/src_rebuild/PsyX/include/GTEREG.H +++ b/src_rebuild/PsyX/include/GTEREG.H @@ -1,6 +1,10 @@ #ifndef GTEREG_H #define GTEREG_H +#ifdef Status +// Fix for stupid GLES headers in RPI or MESA, whatever... just get rid of this dumb shit +#undef Status +#endif typedef union { diff --git a/src_rebuild/gen_gmake2_rpi.sh b/src_rebuild/gen_gmake2_rpi.sh new file mode 100644 index 00000000..1617bf8c --- /dev/null +++ b/src_rebuild/gen_gmake2_rpi.sh @@ -0,0 +1,2 @@ +#!/bin/bash +./premake5 gmake2 --raspberry-pi diff --git a/src_rebuild/premake5.lua b/src_rebuild/premake5.lua index 98b3f0ab..d7449119 100644 --- a/src_rebuild/premake5.lua +++ b/src_rebuild/premake5.lua @@ -14,12 +14,24 @@ GAME_REGION = os.getenv("GAME_REGION") or "NTSC_VERSION" -- or PAL_VERSION if not (GAME_REGION == "NTSC_VERSION" or GAME_REGION == "PAL_VERSION") then error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'") end + +------------------------------------------ + +newoption { + trigger = "raspberry-pi", + description = "adds specific define for compiling on Raspberry Pi" +} + +------------------------------------------ workspace "REDRIVER2" configurations { "Debug", "Release", "Release_dev" } platforms { "x86" } --, "x86_64" } defines { VERSION } + + configuration "raspberry-pi" + defines { "__RPI__" } filter "system:Linux" buildoptions {