Skip to content

Commit

Permalink
MSW updates to packageRelease.py
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfb committed Mar 28, 2017
1 parent fbe65d4 commit e224e3d
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions tools/scripts/packageRelease.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,9 @@ def printUsage():
def processExport( outputName, compilerName, version ):
print "creating a clean clone of cinder"
baseDir = os.getcwd()
os.system( "git clone --recursive --depth 1 -b master . ../cinder_temp/" )
fileUrl = "file://" + baseDir
fileUrl.replace( os.sep, "/" )
os.system( "git clone --recursive --depth 1 -b master " + fileUrl + " .." + os.sep + "cinder_temp" )
os.chdir( baseDir + os.sep + ".." + os.sep + "cinder_temp" )
outputDir = baseDir + os.sep + ".." + os.sep + "cinder_" + version + "_" + outputName + os.sep
print "performing selective copy to " + outputDir
Expand Down Expand Up @@ -100,14 +102,13 @@ def cleanupMswLibDir( dir ):
outputDir = processExport( "vc2013", "vc2013", sys.argv[1] )
os.chdir( outputDir + "proj\\vc2013" )
os.system( "msbuild cinder.vcxproj /p:platform=win32 /p:configuration=debug" )
shutil.rmtree( outputDir + "proj\\vc2013\\Debug" )
os.system( "msbuild cinder.vcxproj /p:platform=win32 /p:configuration=release" )
shutil.rmtree( outputDir + "proj\\vc2013\\Release" )
shutil.rmtree( outputDir + "proj\\vc2013\\build" )
# os.system( "msbuild cinder.vcxproj /p:platform=x64 /p:configuration=debug" )
# shutil.rmtree( outputDir + "vc2013\\x64\\Debug" )
# os.system( "msbuild cinder.vcxproj /p:platform=x64 /p:configuration=release" )
# shutil.rmtree( outputDir + "vc2013\\x64\\Release" )
cleanupMswLibDir( outputDir + "lib\\msw\\x86" )
cleanupMswLibDir( outputDir + "lib\\msw\\x86\\debug" )
# cleanupMswLibDir( outputDir + "lib\\msw\\x64" )
elif sys.argv[2] == 'vc2015':
gCompiler = 'vc2015'
Expand Down

0 comments on commit e224e3d

Please sign in to comment.