INNER CODE UNIT · Python
main
mosra/magnum-integration · package/ci/make_minimal_ovr_sdk.py:38
def main():
if len(sys.argv) != 2:
print("Usage: python make_minimal_ovr_sdk.py <path to oculus sdk archive>")
return
filename = sys.argv[1]
basedir = filename[:-4]
# Unzip archive
if not os.path.isdir(basedir) or not os.listdir(basedir):
print("Extracting %s into %s" % (filename, basedir))
os.mkdir(basedir)
with zipfile.ZipFile(filename, 'r') as zf:
zf.extractall(basedir)
# Patch RuntimeLibrary property here to link the CRT dynamically like the rest of magnum instead of statically
# See https://docs.microsoft.com/en-us/dotnet/api/microsoft.visualstudio.vcprojectengine.runtimelibraryoption?view=visualstudiosdk-2017
# for possible RuntimeLibrary values.