fixes compile errors with ppc (someone please test), and adds LSB_FIRST option to sdl build script

This commit is contained in:
punkrockguy318 2008-09-24 06:40:35 +00:00
parent a26194a089
commit dd6e38f9a2
1 changed files with 6 additions and 0 deletions

View File

@ -1,10 +1,12 @@
import os import os
import sys import sys
import platform.system
opts = Options() opts = Options()
opts.AddOptions( opts.AddOptions(
BoolOption('FRAMESKIP', 'Enable frameskipping', 1), BoolOption('FRAMESKIP', 'Enable frameskipping', 1),
BoolOption('OPENGL', 'Enable OpenGL support', 1), BoolOption('OPENGL', 'Enable OpenGL support', 1),
BoolOption('LSB_FIRST', 'Least signficant byte first (non-PPC)', 1),
BoolOption('DEBUG', 'Build with debugging symbols', 0), BoolOption('DEBUG', 'Build with debugging symbols', 0),
BoolOption('LUA', 'Enable Lua support', 1), BoolOption('LUA', 'Enable Lua support', 1),
BoolOption('NEWPPU', 'Enable new PPU core', 0) BoolOption('NEWPPU', 'Enable new PPU core', 0)
@ -12,6 +14,10 @@ opts.AddOptions(
env = Environment(options = opts) env = Environment(options = opts)
# LSB_FIRST must be off for PPC to compile
if platform.system == "ppc":
env['LSB_FIRST'] = 0
# Default compiler flags: # Default compiler flags:
env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare', '-O2']) env.Append(CCFLAGS = ['-Wall', '-Wno-write-strings', '-Wno-sign-compare', '-O2'])