|
@@ -193,7 +193,10 @@ def configure_msvc(env, manual_msvc_config):
|
|
env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
|
|
env.AppendUnique(CCFLAGS=['/MT', '/Gd', '/GR', '/nologo'])
|
|
env.AppendUnique(CXXFLAGS=['/TP']) # assume all sources are C++
|
|
env.AppendUnique(CXXFLAGS=['/TP']) # assume all sources are C++
|
|
if manual_msvc_config: # should be automatic if SCons found it
|
|
if manual_msvc_config: # should be automatic if SCons found it
|
|
- env.Append(CPPPATH=[os.getenv("WindowsSdkDir") + "/Include"])
|
|
|
|
|
|
+ if os.getenv("WindowsSdkDir") is not None:
|
|
|
|
+ env.Append(CPPPATH=[os.getenv("WindowsSdkDir") + "/Include"])
|
|
|
|
+ else:
|
|
|
|
+ print("Missing environment variable: WindowsSdkDir")
|
|
|
|
|
|
env.AppendUnique(CPPDEFINES = ['WINDOWS_ENABLED', 'OPENGL_ENABLED',
|
|
env.AppendUnique(CPPDEFINES = ['WINDOWS_ENABLED', 'OPENGL_ENABLED',
|
|
'RTAUDIO_ENABLED', 'WASAPI_ENABLED',
|
|
'RTAUDIO_ENABLED', 'WASAPI_ENABLED',
|
|
@@ -211,7 +214,10 @@ def configure_msvc(env, manual_msvc_config):
|
|
env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in LIBS])
|
|
env.Append(LINKFLAGS=[p + env["LIBSUFFIX"] for p in LIBS])
|
|
|
|
|
|
if manual_msvc_config:
|
|
if manual_msvc_config:
|
|
- env.Append(LIBPATH=[os.getenv("WindowsSdkDir") + "/Lib"])
|
|
|
|
|
|
+ if os.getenv("WindowsSdkDir") is not None:
|
|
|
|
+ env.Append(LIBPATH=[os.getenv("WindowsSdkDir") + "/Lib"])
|
|
|
|
+ else:
|
|
|
|
+ print("Missing environment variable: WindowsSdkDir")
|
|
|
|
|
|
## LTO
|
|
## LTO
|
|
|
|
|