mirror of
https://github.com/OpenDriver2/REDRIVER2.git
synced 2024-11-22 02:12:43 +01:00
- added raspberry-pi
option for premake
This commit is contained in:
parent
1ef19ddb70
commit
6e84a034e0
@ -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
|
||||
{
|
||||
|
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'")
|
||||
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 {
|
||||
"-Wno-narrowing",
|
||||
|
Loading…
Reference in New Issue
Block a user