freebsd-ports/games/freera/files/SConstruct
Alejandro Pulver c78a42b444 This is a rebuild of the (westwood) red alert game engine (based
on FreeCNC). It is a real time strategy game. To play the game with
this engine you need the original game (mix files). The only game
supported is red alert 1 ;)

WWW: http://www.freera.org/

PR:		ports/108678
Submitted by:	Dmitry Marakasov <amdmi3 at amdmi3.ru>
2007-02-05 21:37:09 +00:00

27 lines
784 B
Python

#!/usr/bin/scons
from os import environ
from glob import glob
# Source files
source = ["src/freera.cpp"]
source += glob("src/*/*.cpp")
source += glob("src/*/*/*.cpp")
source += glob("src/lua/*.c")
# This is blatent overkill
exclude = ["src/misc/fibheap.cpp"]
source = filter(lambda x: x not in exclude, source)
env = Environment( CPPPATH = ["#/src/include", "#/src/include/lua"],
LIBS = [ "SDL_mixer"] )
for key in [ 'CC', 'CCFLAGS', 'CXX', 'CXXFLAGS' ]:
if environ.has_key(key):
env.Replace( **{key: environ[key].split(' ')} )
env.Append( CCFLAGS = [ "-Wall", "-Wconversion", "-Wno-unused-parameter" ],
CXXFLAGS = [ "-Wall", "-Wconversion", "-Wno-unused-parameter" ] )
env.ParseConfig("sdl-config --cflags --libs")
env.Program(target = "freera", source = source)