diff options
Diffstat (limited to 'SConstruct')
-rw-r--r-- | SConstruct | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/SConstruct b/SConstruct index 91603ce7724..021d5f7c1f9 100644 --- a/SConstruct +++ b/SConstruct @@ -313,18 +313,23 @@ if not quickie and do_clean: if os.path.exists(B.root_build_dir): print B.bc.HEADER+'Cleaning build dir...'+B.bc.ENDC dirs = os.listdir(B.root_build_dir) - for entry in dirs: - if os.path.isdir(B.root_build_dir + entry) == 1: - print "clean dir %s"%(B.root_build_dir+entry) - shutil.rmtree(B.root_build_dir+entry) - else: # remove file - print "remove file %s"%(B.root_build_dir+entry) - os.remove(B.root_build_dir+entry) + for dir in dirs: + if os.path.isdir(B.root_build_dir + dir) == 1: + print "clean dir %s"%(B.root_build_dir+dir) + shutil.rmtree(B.root_build_dir+dir) for confile in ['extern/ffmpeg/config.mak', 'extern/x264/config.mak', 'extern/xvidcore/build/generic/platform.inc']: if os.path.exists(confile): print "clean file %s"%confile os.remove(confile) + + if platform in ('win32-vc', 'win32-mingw'): + makesdnafile = B.root_build_dir+'makesdna.exe' + else: + makesdnafile = B.root_build_dir+'makesdna' + if os.path.exists(makesdnafile): + print "removing", makesdnafile + os.remove(makesdnafile) print B.bc.OKGREEN+'...done'+B.bc.ENDC else: print B.bc.HEADER+'Already Clean, nothing to do.'+B.bc.ENDC @@ -387,12 +392,15 @@ if env['WITH_BF_PLAYER']: playerlist = B.create_blender_liblist(env, 'player') env.BlenderProg(B.root_build_dir, "blenderplayer", dobj + playerlist + thestatlibs, [], thesyslibs, [B.root_build_dir+'/lib'] + thelibincs, 'blenderplayer') + + ##### Now define some targets #------------ INSTALL #-- binaries + blenderinstall = [] if env['OURPLATFORM']=='darwin': for prg in B.program_list: |