@@ -56,8 +56,8 @@ SConsignFile()
5656
5757ieCoreMilestoneVersion = 10 # for announcing major milestones - may contain all of the below
5858ieCoreMajorVersion = 4 # backwards-incompatible changes
59- ieCoreMinorVersion = 2 # new backwards-compatible features
60- ieCorePatchVersion = 1 # bug fixes
59+ ieCoreMinorVersion = 3 # new backwards-compatible features
60+ ieCorePatchVersion = 0 # bug fixes
6161ieCoreVersionSuffix = "" # used for alpha/beta releases. Example: "a1", "b2", etc.
6262
6363###########################################################################################
@@ -260,6 +260,10 @@ o.Add(
260260 "" ,
261261)
262262
263+ o .Add (
264+ BoolVariable ( "WITH_OIIO_UTIL" , "Build with OpenImageIO_Util" , True ),
265+ )
266+
263267# Blosc options
264268
265269o .Add (
@@ -1861,13 +1865,14 @@ imageEnvPrepends = {
18611865 ],
18621866 "LIBS" : [
18631867 "OpenImageIO$OIIO_LIB_SUFFIX" ,
1864- "OpenImageIO_Util$OIIO_LIB_SUFFIX" ,
18651868 ],
18661869 "CXXFLAGS" : [
18671870 "-DIECoreImage_EXPORTS" ,
18681871 systemIncludeArgument , "$OIIO_INCLUDE_PATH"
18691872 ]
18701873}
1874+ if imageEnv .get ( "WITH_OIIO_UTIL" , True ):
1875+ imageEnvPrepends ["LIBS" ].append ( "OpenImageIO_Util$OIIO_LIB_SUFFIX" )
18711876
18721877imageEnv .Prepend ( ** imageEnvPrepends )
18731878# Windows uses PATH for to find libraries, we must append to it to make sure we don't overwrite existing PATH entries.
@@ -2219,11 +2224,12 @@ if env["WITH_GL"] and doConfigure :
22192224 os .path .basename ( imageEnv .subst ( "$INSTALL_LIB_NAME" ) ),
22202225 os .path .basename ( sceneEnv .subst ( "$INSTALL_LIB_NAME" ) ),
22212226 "OpenImageIO$OIIO_LIB_SUFFIX" ,
2222- "OpenImageIO_Util$OIIO_LIB_SUFFIX" ,
22232227 "GLEW$GLEW_LIB_SUFFIX" ,
22242228 "boost_wave$BOOST_LIB_SUFFIX" ,
22252229 ]
22262230 )
2231+ if glEnv .get ( "WITH_OIIO_UTIL" , True ):
2232+ glEnv .Append ( LIBS = [ "OpenImageIO_Util$OIIO_LIB_SUFFIX" , ] )
22272233
22282234 if env ["PLATFORM" ]== "darwin" :
22292235 glEnv .Append (
@@ -2688,7 +2694,7 @@ if doConfigure :
26882694 nukePythonSources = sorted ( glob .glob ( "src/IECoreNuke/bindings/*.cpp" ) )
26892695 nukePythonScripts = glob .glob ( "python/IECoreNuke/*.py" )
26902696 nukePluginSources = sorted ( glob .glob ( "src/IECoreNuke/plugin/*.cpp" ) )
2691- nukeNodeNames = [ "ieObject" , "ieOp" , "ieDrawable" , "ieDisplay" ]
2697+ nukeNodeNames = [ "ieObject" , "ieOp" , "ieDrawable" , "ieDisplay" , "ieLiveScene" , "sccWriter" ]
26922698
26932699 # nuke library
26942700 nukeLibrary = nukeEnv .SharedLibrary ( "lib/" + os .path .basename ( nukeEnv .subst ( "$INSTALL_NUKELIB_NAME" ) ), nukeSources )
@@ -2748,7 +2754,12 @@ if doConfigure :
27482754 for nodeName in nukeNodeNames :
27492755
27502756 nukeStubEnv = nukePluginEnv .Clone ( IECORE_NAME = nodeName )
2751- nukeStubName = "plugins/nuke/" + os .path .basename ( nukeStubEnv .subst ( "$INSTALL_NUKEPLUGIN_NAME" ) ) + ".tcl"
2757+ # In order to have our custom file format (scc) displayed in the file_type knob of the WriteGeo node, we need to install
2758+ # a dummy library with "[fileExtension]Writer"
2759+ if nodeName == "sccWriter" :
2760+ nukeStubName = "plugins/nuke/" + os .path .basename ( nukeStubEnv .subst ( "$INSTALL_NUKEPLUGIN_NAME$SHLIBSUFFIX" ) )
2761+ else :
2762+ nukeStubName = "plugins/nuke/" + os .path .basename ( nukeStubEnv .subst ( "$INSTALL_NUKEPLUGIN_NAME" ) ) + ".tcl"
27522763 nukeStub = nukePluginEnv .Command ( nukeStubName , nukePlugin , "echo 'load ieCore' > $TARGET" )
27532764 nukeStubInstall = nukeStubEnv .Install ( os .path .dirname ( nukeStubEnv .subst ( "$INSTALL_NUKEPLUGIN_NAME" ) ), nukeStub )
27542765 nukeStubEnv .Alias ( "install" , nukeStubInstall )
@@ -3127,7 +3138,7 @@ if doConfigure :
31273138 "!IECOREUSD_RELATIVE_LIB_FOLDER!" : os .path .relpath (
31283139 usdLibraryInstall [0 ].get_path (),
31293140 os .path .dirname ( usdEnv .subst ( "$INSTALL_USD_RESOURCE_DIR/IECoreUSD/plugInfo.json" ) )
3130- ).format ( "\\ " , "\\ \\ " ),
3141+ ).replace ( "\\ " , "\\ \\ " ),
31313142 }
31323143 )
31333144 usdEnv .AddPostAction ( "$INSTALL_USD_RESOURCE_DIR/IECoreUSD" , lambda target , source , env : makeSymLinks ( usdEnv , usdEnv ["INSTALL_USD_RESOURCE_DIR" ] ) )
0 commit comments