build system: nicer dist generation process on windows

metadata
Wenzel Jakob 2011-06-05 08:13:19 -07:00
parent 3846cf6d52
commit 61dc6c8034
2 changed files with 4 additions and 2 deletions

View File

@ -122,7 +122,9 @@ elif sys.platform == 'darwin':
if dist:
if sys.platform == 'win32':
distTarget = env.Command("Mitsuba %s.zip" % MTS_VERSION, [], "#data\\windows\\build-dist.bat %s" % MTS_VERSION)
bits = 64 if 'WIN64' in env['CXXFLAGS'] else 32
distCommand = env.GetBuildPath('#data/windows/build-dist.bat')
distTarget = env.Command("Mitsuba %s %ibit.zip" % (MTS_VERSION, bits), [], "%s %s %i" % (distCommand, MTS_VERSION, bits))
Depends(distTarget, installTargets)
elif sys.platform == 'darwin':
distTarget = env.Command("Mitsuba %s.dmg" % MTS_VERSION, [], "#data/darwin/build-dmg.sh %s" % MTS_VERSION)

View File

@ -1,5 +1,5 @@
@echo off
xcopy dist "Mitsuba %1" /e /i /h
del "Mitsuba %1.zip"
7z u -tzip "Mitsuba %1.zip" "Mitsuba %1"
7z u -tzip "Mitsuba %1 %2bit.zip" "Mitsuba %1"
rmdir /s /q "Mitsuba %1"