Skip to content

Instantly share code, notes, and snippets.

@DavidMikeSimon
Created September 20, 2011 03:05
Show Gist options
  • Select an option

  • Save DavidMikeSimon/1228218 to your computer and use it in GitHub Desktop.

Select an option

Save DavidMikeSimon/1228218 to your computer and use it in GitHub Desktop.
SCons Efene mark II
import os
def efene_build(env, sources):
cmds = []
for file in sources:
filename = os.path.basename(str(file))
base, ext = os.path.splitext(filename)
if ext not in [".fn", ".ifn"]:
raise StandardError("Invalid Efene source file extension for %s" % filename)
cmds.append(env.Command(
"ebin/%s.beam" % base,
file,
"fnc -o ebin $SOURCE"
))
return cmds
env = Environment(ENV = os.environ)
env.AddMethod(efene_build, "Efene")
env.Efene(Glob("src/*"))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment