models/SConscript
author Radek Brich <radek.brich@devl.cz>
Tue, 26 Jul 2016 17:41:36 +0200
branchpyrit
changeset 103 3b3257a410fe
parent 99 f3abdaa2e8fb
permissions -rw-r--r--
Updated to compile: - KdTree+Octree: max_depth changed to static const (this should be configured at compile time) - wget tool replaced by curl, which is now more widespread - added CMakeLists (to eventually replace SCons) - various fixes

Import('env')

myenv = Environment()
myenv.Append(BUILDERS = {'Copy':Builder(action=Copy('$TARGET','$SOURCE'), single_source=True)})
files = ['lwo/Nissan300ZX.lwo', 'obj/cube.obj', 'obj/sphere.obj', 'obj/monkey.obj']

l = []
for file in files:
	l.append( myenv.Copy('#build/models/'+file, file) )

env.Alias('local-models', l)

plydir = Dir('#build/models/ply/')

import os
env.Command(plydir, [],
  '"'+Dir('#models/').abspath+os.sep+'download-stanford" $TARGET',
  ENV = {'PATH':os.environ['PATH']})
Clean(plydir, plydir)

env.Alias('download-models', plydir)

env.Alias('models', ['local-models', 'download-models'])