c78a42b444
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>
27 lines
784 B
Python
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)
|