@@ -56,8 +56,8 @@ SConsignFile()
56
56
57
57
ieCoreMilestoneVersion = 10 # for announcing major milestones - may contain all of the below
58
58
ieCoreMajorVersion = 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
61
61
ieCoreVersionSuffix = "" # used for alpha/beta releases. Example: "a1", "b2", etc.
62
62
63
63
###########################################################################################
@@ -260,6 +260,10 @@ o.Add(
260
260
"" ,
261
261
)
262
262
263
+ o .Add (
264
+ BoolVariable ( "WITH_OIIO_UTIL" , "Build with OpenImageIO_Util" , True ),
265
+ )
266
+
263
267
# Blosc options
264
268
265
269
o .Add (
@@ -1861,13 +1865,14 @@ imageEnvPrepends = {
1861
1865
],
1862
1866
"LIBS" : [
1863
1867
"OpenImageIO$OIIO_LIB_SUFFIX" ,
1864
- "OpenImageIO_Util$OIIO_LIB_SUFFIX" ,
1865
1868
],
1866
1869
"CXXFLAGS" : [
1867
1870
"-DIECoreImage_EXPORTS" ,
1868
1871
systemIncludeArgument , "$OIIO_INCLUDE_PATH"
1869
1872
]
1870
1873
}
1874
+ if imageEnv .get ( "WITH_OIIO_UTIL" , True ):
1875
+ imageEnvPrepends ["LIBS" ].append ( "OpenImageIO_Util$OIIO_LIB_SUFFIX" )
1871
1876
1872
1877
imageEnv .Prepend ( ** imageEnvPrepends )
1873
1878
# 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 :
2219
2224
os .path .basename ( imageEnv .subst ( "$INSTALL_LIB_NAME" ) ),
2220
2225
os .path .basename ( sceneEnv .subst ( "$INSTALL_LIB_NAME" ) ),
2221
2226
"OpenImageIO$OIIO_LIB_SUFFIX" ,
2222
- "OpenImageIO_Util$OIIO_LIB_SUFFIX" ,
2223
2227
"GLEW$GLEW_LIB_SUFFIX" ,
2224
2228
"boost_wave$BOOST_LIB_SUFFIX" ,
2225
2229
]
2226
2230
)
2231
+ if glEnv .get ( "WITH_OIIO_UTIL" , True ):
2232
+ glEnv .Append ( LIBS = [ "OpenImageIO_Util$OIIO_LIB_SUFFIX" , ] )
2227
2233
2228
2234
if env ["PLATFORM" ]== "darwin" :
2229
2235
glEnv .Append (
@@ -2688,7 +2694,7 @@ if doConfigure :
2688
2694
nukePythonSources = sorted ( glob .glob ( "src/IECoreNuke/bindings/*.cpp" ) )
2689
2695
nukePythonScripts = glob .glob ( "python/IECoreNuke/*.py" )
2690
2696
nukePluginSources = sorted ( glob .glob ( "src/IECoreNuke/plugin/*.cpp" ) )
2691
- nukeNodeNames = [ "ieObject" , "ieOp" , "ieDrawable" , "ieDisplay" ]
2697
+ nukeNodeNames = [ "ieObject" , "ieOp" , "ieDrawable" , "ieDisplay" , "ieLiveScene" , "sccWriter" ]
2692
2698
2693
2699
# nuke library
2694
2700
nukeLibrary = nukeEnv .SharedLibrary ( "lib/" + os .path .basename ( nukeEnv .subst ( "$INSTALL_NUKELIB_NAME" ) ), nukeSources )
@@ -2748,7 +2754,12 @@ if doConfigure :
2748
2754
for nodeName in nukeNodeNames :
2749
2755
2750
2756
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"
2752
2763
nukeStub = nukePluginEnv .Command ( nukeStubName , nukePlugin , "echo 'load ieCore' > $TARGET" )
2753
2764
nukeStubInstall = nukeStubEnv .Install ( os .path .dirname ( nukeStubEnv .subst ( "$INSTALL_NUKEPLUGIN_NAME" ) ), nukeStub )
2754
2765
nukeStubEnv .Alias ( "install" , nukeStubInstall )
@@ -3127,7 +3138,7 @@ if doConfigure :
3127
3138
"!IECOREUSD_RELATIVE_LIB_FOLDER!" : os .path .relpath (
3128
3139
usdLibraryInstall [0 ].get_path (),
3129
3140
os .path .dirname ( usdEnv .subst ( "$INSTALL_USD_RESOURCE_DIR/IECoreUSD/plugInfo.json" ) )
3130
- ).format ( "\\ " , "\\ \\ " ),
3141
+ ).replace ( "\\ " , "\\ \\ " ),
3131
3142
}
3132
3143
)
3133
3144
usdEnv .AddPostAction ( "$INSTALL_USD_RESOURCE_DIR/IECoreUSD" , lambda target , source , env : makeSymLinks ( usdEnv , usdEnv ["INSTALL_USD_RESOURCE_DIR" ] ) )
0 commit comments