models/SConscript
branchpyrit
changeset 63 440e1ae80459
parent 62 07c2f8084719
child 92 9af5c039b678
equal deleted inserted replaced
62:07c2f8084719 63:440e1ae80459
     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'])