Created
September 20, 2011 03:05
-
-
Save DavidMikeSimon/1228218 to your computer and use it in GitHub Desktop.
SCons Efene mark II
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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