commit | 27d8d6f44faa61a61c330d032111eee64dd8b8c7 | [log] [tgz] |
---|---|---|
author | José Fonseca <jrfonseca@tungstengraphics.com> | Thu Jul 03 12:42:23 2008 +0900 |
committer | José Fonseca <jrfonseca@tungstengraphics.com> | Thu Jul 03 15:06:24 2008 +0900 |
tree | daa0db92b6ce952196acfc84a7a4e78277a33d65 | |
parent | 1ca23061478868d61b9b2e6a30367e8e1de4a456 [diff] |
scons: Add a env.CodeGenerate method to simplify code generation via python scripts. env.CodeGenerate( target = 'my_source.c', script = 'my_generator.py', source = ['input.txt', 'another.txt'], command = 'python $SCRIPT $SOURCE > $TARGET' ) It will take care generating all appropriate dependencies, including any module imported by the generator script, and the respective .pyc file side effects.