@@ -2094,13 +2094,22 @@ else :
20942094 "work"
20952095 ]
20962096
2097+ if env ["PLATFORM" ] == "win32" :
2098+ pxrVersionHeader = env .FindFile ( "pxr/pxr.h" , dependencyIncludes )
2099+ print ( pxrVersionHeader )
2100+ if pxrVersionHeader is not None and "#define PXR_USE_INTERNAL_BOOST_PYTHON\n " in open ( str ( pxrVersionHeader ) ) :
2101+ usdLibs .append ( "python" )
2102+ print ( usdLibs )
2103+
20972104if usdEnv ["USD_LIB_PREFIX" ] :
20982105 usdLibs = [ usdEnv ["USD_LIB_PREFIX" ] + x for x in usdLibs ]
20992106
21002107usdEnvAppends = {
21012108 "CXXFLAGS" : [
21022109 "-Wno-deprecated" if env ["PLATFORM" ] != "win32" else "" ,
21032110 "/Zc:inline-" if env ["PLATFORM" ] == "win32" else "" ,
2111+ # This warning is already disabled generally for release builds,
2112+ # but also requires disabling for debug builds with USD.
21042113 "/wd4702" if env ["PLATFORM" ] == "win32" else "" ,
21052114 "-DIECoreUSD_EXPORTS" ,
21062115 systemIncludeArgument , "$USD_INCLUDE_PATH" ,
@@ -2155,17 +2164,6 @@ if doConfigure :
21552164 ]
21562165 )
21572166
2158- # replace boost_python with USD's internal equivalent if defined
2159- pxrVersionHeader = env .FindFile ( "pxr/pxr.h" , dependencyIncludes )
2160- if pxrVersionHeader is not None and "#define PXR_USE_INTERNAL_BOOST_PYTHON\n " in open ( str ( pxrVersionHeader ) ) :
2161- usdEnv .Replace (
2162- LIBS = [
2163- usdEnv ["USD_LIB_PREFIX" ] + "python" if x == "boost_python" + boostPythonLibSuffix else x
2164- for x in usdEnv ["LIBS" ]
2165- ]
2166- )
2167- print ( usdEnv ["LIBS" ] )
2168-
21692167 if haveVDB :
21702168 usdEnv .Prepend ( ** vdbEnvPrepends )
21712169 usdEnv .Append (
0 commit comments