@@ -557,20 +557,6 @@ o.Add(
557557 "" ,
558558)
559559
560- # appleseed options
561-
562- o .Add (
563- "APPLESEED_INCLUDE_PATH" ,
564- "The path to the appleseed include directory." ,
565- "" ,
566- )
567-
568- o .Add (
569- "APPLESEED_LIB_PATH" ,
570- "The path to the appleseed lib directory." ,
571- "" ,
572- )
573-
574560# Build options
575561
576562o .Add (
@@ -671,14 +657,6 @@ o.Add(
671657 "$INSTALL_PREFIX/lib/$IECORE_NAME" ,
672658)
673659
674- o .Add (
675- "INSTALL_APPLESEEDLIB_NAME" ,
676- "The name under which to install the appleseed libraries. This "
677- "can be used to build and install the library for multiple "
678- "appleseed versions." ,
679- "$INSTALL_PREFIX/lib/$IECORE_NAME" ,
680- )
681-
682660o .Add (
683661 "INSTALL_PYTHON_DIR" ,
684662 "The directory in which to install python modules." ,
@@ -757,12 +735,6 @@ o.Add(
757735 "$INSTALL_PREFIX/nuke/plugins/$IECORE_NAME" ,
758736)
759737
760- o .Add (
761- "INSTALL_APPLESEEDOUTPUTDRIVER_NAME" ,
762- "The name under which to install the appleseed output driver." ,
763- "$INSTALL_PREFIX/appleseedDisplays/$IECORE_NAME" ,
764- )
765-
766738o .Add (
767739 "INSTALL_DOC_DIR" ,
768740 "The directory in which to install the documentation." ,
@@ -955,14 +927,6 @@ o.Add(
955927 "contrib/IECoreUSD/test/IECoreUSD/All.py"
956928)
957929
958- o .Add (
959- "TEST_APPLESEED_SCRIPT" ,
960- "The python script to run for the appleseed tests. The default will run all the tests, "
961- "but it can be useful to override this to run just the test for the functionality "
962- "you're working on." ,
963- "contrib/IECoreAppleseed/test/IECoreAppleseed/All.py"
964- )
965-
966930o .Add (
967931 "TEST_LIBPATH" ,
968932 "Additional colon separated (semi-colon on Windows) paths to be prepended to the "
@@ -3267,156 +3231,6 @@ if doConfigure :
32673231 NoCache ( alembicTest )
32683232 alembicTestEnv .Alias ( "testAlembic" , alembicTest )
32693233
3270- ###########################################################################################
3271- # Build, install and test the IECoreAppleseed library and bindings
3272- ###########################################################################################
3273-
3274- appleseedEnvSets = {
3275- "IECORE_NAME" : "IECoreAppleseed"
3276- }
3277-
3278- appleseedEnv = env .Clone ( ** appleseedEnvSets )
3279-
3280- appleseedEnvAppends = {
3281- "CXXFLAGS" : [
3282- "-DIECoreAppleseed_EXPORTS" ,
3283- systemIncludeArgument , "$APPLESEED_INCLUDE_PATH" ,
3284- systemIncludeArgument , "$OSL_INCLUDE_PATH" ,
3285- systemIncludeArgument , "$OIIO_INCLUDE_PATH" ,
3286- ],
3287- "CPPPATH" : [
3288- "contrib/IECoreAppleseed/include" ,
3289- ],
3290- "CPPFLAGS" : [
3291- "-DAPPLESEED_ENABLE_IMATH_INTEROP" ,
3292- ],
3293- "LIBPATH" : [
3294- "$APPLESEED_LIB_PATH" ,
3295- "$OSL_LIB_PATH" ,
3296- "$OIIO_LIB_PATH"
3297- ],
3298- }
3299-
3300- if platform .machine () != "arm64" :
3301- appleseedEnvAppends ["CPPFLAGS" ].append ( "-DAPPLESEED_USE_SSE" )
3302-
3303- appleseedEnv .Append ( ** appleseedEnvAppends )
3304-
3305- appleseedPythonModuleEnv = pythonModuleEnv .Clone ( ** appleseedEnvSets )
3306- appleseedPythonModuleEnv .Append ( ** appleseedEnvAppends )
3307- appleseedPythonModuleEnv .Append (
3308- CPPPATH = [
3309- "contrib/IECoreAppleseed/include/bindings" ,
3310- ],
3311- )
3312-
3313- appleseedDriverEnv = appleseedEnv .Clone ( IECORE_NAME = "ieDisplay" )
3314- appleseedDriverEnv ["SHLIBPREFIX" ] = ""
3315- appleseedDriverEnv ["SHLIBSUFFIX" ] = ".so" if env ["PLATFORM" ] != "win32" else ".dll"
3316-
3317- haveAppleseed = False
3318-
3319- if doConfigure :
3320-
3321- c = configureSharedLibrary ( appleseedEnv )
3322-
3323- if not c .CheckLibWithHeader ( "appleseed" , "renderer/api/rendering.h" , "CXX" ) :
3324-
3325- sys .stderr .write ( "WARNING : no appleseed library found, not building IECoreAppleseed - check APPLESEED_INCLUDE_PATH and APPLESEED_LIB_PATH.\n " )
3326- c .Finish ()
3327-
3328- else :
3329-
3330- haveAppleseed = True
3331-
3332- appleseedSources = sorted ( glob .glob ( "contrib/IECoreAppleseed/src/IECoreAppleseed/*.cpp" ) )
3333- appleseedHeaders = glob .glob ( "contrib/IECoreAppleseed/include/IECoreAppleseed/*.h" ) + glob .glob ( "contrib/IECoreAppleseed/include/IECoreAppleseed/*.inl" )
3334- appleseedPythonSources = sorted ( glob .glob ( "contrib/IECoreAppleseed/src/IECoreAppleseed/bindings/*.cpp" ) )
3335- appleseedPythonScripts = glob .glob ( "contrib/IECoreAppleseed/python/IECoreAppleseed/*.py" )
3336-
3337- c .Finish ()
3338-
3339- appleseedEnv .Append (
3340- LIBS = [
3341- "appleseed" ,
3342- # We can't append this before configuring, as then it gets built as
3343- # part of the configure process
3344- os .path .basename ( coreEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3345- os .path .basename ( sceneEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3346- ]
3347- )
3348-
3349- appleseedPythonModuleEnv .Append (
3350- LIBS = [
3351- os .path .basename ( corePythonEnv .subst ( "$INSTALL_PYTHONLIB_NAME" ) ),
3352- os .path .basename ( sceneEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3353- ]
3354- )
3355-
3356- appleseedDriverEnv .Append (
3357- LIBS = [
3358- "appleseed" ,
3359- os .path .basename ( coreEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3360- os .path .basename ( imageEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3361- os .path .basename ( appleseedEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3362- ]
3363- )
3364-
3365- # library
3366- appleseedLibrary = appleseedEnv .SharedLibrary ( "lib/" + os .path .basename ( appleseedEnv .subst ( "$INSTALL_APPLESEEDLIB_NAME" ) ), appleseedSources )
3367- appleseedLibraryInstall = appleseedEnv .Install ( os .path .dirname ( appleseedEnv .subst ( "$INSTALL_APPLESEEDLIB_NAME" ) ), appleseedLibrary )
3368- appleseedEnv .NoCache ( appleseedLibraryInstall )
3369- appleseedEnv .AddPostAction ( appleseedLibraryInstall , lambda target , source , env : makeLibSymLinks ( appleseedEnv ) )
3370- appleseedEnv .Alias ( "install" , appleseedLibraryInstall )
3371- appleseedEnv .Alias ( "installAppleseed" , appleseedLibraryInstall )
3372- appleseedEnv .Alias ( "installLib" , [ appleseedLibraryInstall ] )
3373-
3374- # headers
3375- appleseedHeaderInstall = appleseedEnv .Install ( "$INSTALL_HEADER_DIR/IECoreAppleseed" , appleseedHeaders )
3376- appleseedEnv .AddPostAction ( "$INSTALL_HEADER_DIR/IECoreAppleseed" , lambda target , source , env : makeSymLinks ( appleseedEnv , appleseedEnv ["INSTALL_HEADER_DIR" ] ) )
3377- appleseedEnv .Alias ( "install" , appleseedHeaderInstall )
3378- appleseedEnv .Alias ( "installAppleseed" , appleseedHeaderInstall )
3379-
3380- # python module
3381- appleseedPythonModuleEnv .Append (
3382- LIBS = [
3383- os .path .basename ( coreEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3384- os .path .basename ( appleseedEnv .subst ( "$INSTALL_LIB_NAME" ) ),
3385- "appleseed" ,
3386- ]
3387- )
3388- appleseedPythonModule = appleseedPythonModuleEnv .SharedLibrary ( "contrib/IECoreAppleseed/python/IECoreAppleseed/_IECoreAppleseed" , appleseedPythonSources )
3389- appleseedPythonModuleEnv .Depends ( appleseedPythonModule , appleseedLibrary )
3390-
3391- appleseedPythonModuleInstall = appleseedPythonModuleEnv .Install ( "$INSTALL_PYTHON_DIR/IECoreAppleseed" , appleseedPythonScripts + appleseedPythonModule )
3392- appleseedPythonModuleEnv .AddPostAction ( "$INSTALL_PYTHON_DIR/IECoreAppleseed" , lambda target , source , env : makeSymLinks ( appleseedPythonModuleEnv , appleseedPythonModuleEnv ["INSTALL_PYTHON_DIR" ] ) )
3393- appleseedPythonModuleEnv .Alias ( "install" , appleseedPythonModuleInstall )
3394- appleseedPythonModuleEnv .Alias ( "installAppleseed" , appleseedPythonModuleInstall )
3395-
3396-
3397- # output driver
3398- appleseedDriver = appleseedDriverEnv .SharedLibrary ( "contrib/IECoreAppleseed/src/IECoreAppleseed/outputDriver/" + os .path .basename ( appleseedDriverEnv .subst ( "$INSTALL_APPLESEEDOUTPUTDRIVER_NAME" ) ), "contrib/IECoreAppleseed/src/IECoreAppleseed/outputDriver/DisplayTileCallback.cpp" )
3399- appleseedDriverInstall = appleseedDriverEnv .Install ( os .path .dirname ( appleseedDriverEnv .subst ( "$INSTALL_APPLESEEDOUTPUTDRIVER_NAME" ) ), appleseedDriver )
3400- appleseedDriverEnv .NoCache ( appleseedDriverInstall )
3401- appleseedDriverEnv .AddPostAction ( appleseedDriverInstall , lambda target , source , env : makeLibSymLinks ( appleseedDriverEnv , libNameVar = "INSTALL_APPLESEEDOUTPUTDRIVER_NAME" ) )
3402- appleseedDriverEnv .Alias ( "install" , appleseedDriverInstall )
3403- appleseedDriverEnv .Alias ( "installAppleseed" , appleseedDriverInstall )
3404- appleseedDriverForTest = appleseedDriverEnv .Install ( "contrib/IECoreAppleseed/test/IECoreAppleseed/plugins" , appleseedDriver )
3405-
3406- Default ( [ appleseedLibrary , appleseedPythonModule , appleseedDriver , appleseedDriverForTest ] )
3407-
3408- # tests
3409- appleseedTestEnv = testEnv .Clone ()
3410- appleseedTestEnv ["ENV" ]["PYTHONPATH" ] += ":./contrib/IECoreAppleseed/python" + os .pathsep + appleseedEnv .subst ( "$APPLESEED_LIB_PATH/python" + pythonEnv ["PYTHON_VERSION" ] )
3411- appleseedTestEnv ["ENV" ][testEnv ["TEST_LIBRARY_PATH_ENV_VAR" ]] += os .pathsep + appleseedEnv .subst ( os .pathsep .join ( appleseedPythonModuleEnv ["LIBPATH" ] ) )
3412- appleseedTestEnv ["ENV" ]["PATH" ] = appleseedEnv .subst ( "$APPLESEED_ROOT/bin" ) + os .pathsep + appleseedTestEnv ["ENV" ]["PATH" ]
3413- appleseedTestEnv ["ENV" ]["APPLESEED_SEARCHPATH" ] = os .getcwd () + "/contrib/IECoreAppleseed/test/IECoreAppleseed/plugins"
3414- appleseedTest = appleseedTestEnv .Command ( "contrib/IECoreAppleseed/test/IECoreAppleseed/results.txt" , appleseedPythonModule , "$PYTHON $TEST_APPLESEED_SCRIPT --verbose" )
3415- NoCache ( appleseedTest )
3416- appleseedTestEnv .Depends ( appleseedTest , [ corePythonModule , scenePythonModule , appleseedPythonModule , appleseedLibrary , appleseedDriverForTest ] )
3417- appleseedTestEnv .Depends ( appleseedTest , glob .glob ( "contrib/IECoreAppleseed/test/IECoreAppleseed/*.py" ) )
3418- appleseedTestEnv .Alias ( "testAppleseed" , appleseedTest )
3419-
34203234###########################################################################################
34213235# Documentation
34223236###########################################################################################
0 commit comments