- added raspberry-pi option for premake

This commit is contained in:
Ilya Shurumov 2021-04-30 02:37:51 +06:00
parent 1ef19ddb70
commit 6e84a034e0
3 changed files with 18 additions and 0 deletions

View File

@ -1,6 +1,10 @@
#ifndef GTEREG_H #ifndef GTEREG_H
#define 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 typedef union
{ {

View File

@ -0,0 +1,2 @@
#!/bin/bash
./premake5 gmake2 --raspberry-pi

View File

@ -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 if not (GAME_REGION == "NTSC_VERSION" or GAME_REGION == "PAL_VERSION") then
error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'") error("'GAME_REGION' should be 'NTSC_VERSION' or 'PAL_VERSION'")
end end
------------------------------------------
newoption {
trigger = "raspberry-pi",
description = "adds specific define for compiling on Raspberry Pi"
}
------------------------------------------
workspace "REDRIVER2" workspace "REDRIVER2"
configurations { "Debug", "Release", "Release_dev" } configurations { "Debug", "Release", "Release_dev" }
platforms { "x86" } --, "x86_64" } platforms { "x86" } --, "x86_64" }
defines { VERSION } defines { VERSION }
configuration "raspberry-pi"
defines { "__RPI__" }
filter "system:Linux" filter "system:Linux"
buildoptions { buildoptions {