mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-25 11:52:32 +01:00
- added raspberry-pi
option for premake
This commit is contained in:
parent
1ef19ddb70
commit
6e84a034e0
@ -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
|
||||||
{
|
{
|
||||||
|
2
src_rebuild/gen_gmake2_rpi.sh
Normal file
2
src_rebuild/gen_gmake2_rpi.sh
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
./premake5 gmake2 --raspberry-pi
|
@ -15,12 +15,24 @@ 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 {
|
||||||
"-Wno-narrowing",
|
"-Wno-narrowing",
|
||||||
|
Loading…
Reference in New Issue
Block a user