equal
deleted
inserted
replaced
1 env = Environment() |
1 env = Environment() |
2 env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)}) |
2 env.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)}) |
3 files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj'] |
3 files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj'] |
4 |
4 |
|
5 l = [] |
5 for file in files: |
6 for file in files: |
6 env.Copy('#build/models/'+file, file) |
7 l.append( env.Copy('#build/models/'+file, file) ) |
7 |
8 |
8 Command(Dir('#build/models/ply/'), [], Dir('#models/').abspath+'/download-stanford $TARGET') |
9 env.Alias('local-models', l) |
9 Clean(Dir('#build/models/ply/'), Dir('#build/models/ply/')) |
10 |
|
11 plydir = Dir('#build/models/ply/') |
|
12 Command(plydir, [], Dir('#models/').abspath+'/download-stanford $TARGET') |
|
13 Clean(plydir, plydir) |
|
14 |
|
15 env.Alias('download-models', plydir) |
|
16 |
|
17 env.Alias('models', ['local-models', 'download-models']) |