@@ -391,44 +391,6 @@ o.Add(
391391 "" ,
392392)
393393
394- # Maya options
395-
396- o .Add (
397- "MAYA_ROOT" ,
398- "The path to the root of the maya installation." ,
399- "" ,
400- )
401-
402- o .Add (
403- "MAYA_LICENSE_FILE" ,
404- "The path to FlexLM license file to use for Maya." ,
405- "" ,
406- )
407-
408- o .Add (
409- "MAYA_ADLM_ENV_FILE" ,
410- "The path to ADLM env xml file to use as of Maya 2010." ,
411- "" ,
412- )
413-
414- try :
415- o .Add (
416- BoolVariable (
417- "WITH_MAYA_PLUGIN_LOADER" ,
418- "Set this to install the Maya plugin with a stub loader." ,
419- False
420- ),
421- )
422- except NameError :
423- # fallback for old scons versions
424- o .Add (
425- BoolOption (
426- "WITH_MAYA_PLUGIN_LOADER" ,
427- "Set this to install the Maya plugin with a stub loader." ,
428- False
429- ),
430- )
431-
432394# USD options
433395
434396o .Add (
@@ -592,14 +554,6 @@ o.Add(
592554 "$INSTALL_PREFIX/lib/$IECORE_NAME" ,
593555)
594556
595- o .Add (
596- "INSTALL_MAYALIB_NAME" ,
597- "The name under which to install the maya libraries. This "
598- "can be used to build and install the library for multiple "
599- "Maya versions." ,
600- "$INSTALL_PREFIX/lib/$IECORE_NAME" ,
601- )
602-
603557o .Add (
604558 "INSTALL_NUKELIB_NAME" ,
605559 "The name under which to install the nuke libraries. This "
@@ -648,30 +602,12 @@ o.Add(
648602 "$INSTALL_PREFIX/glsl" ,
649603)
650604
651- o .Add (
652- "INSTALL_MEL_DIR" ,
653- "The directory in which to install mel scripts." ,
654- "$INSTALL_PREFIX/maya/mel/$IECORE_NAME" ,
655- )
656-
657- o .Add (
658- "INSTALL_MAYAICON_DIR" ,
659- "The directory under which to install maya icons." ,
660- "$INSTALL_PREFIX/maya/icons" ,
661- )
662-
663605o .Add (
664606 "INSTALL_NUKEICON_DIR" ,
665607 "The directory under which to install nuke icons." ,
666608 "$INSTALL_PREFIX/nuke/icons" ,
667609)
668610
669- o .Add (
670- "INSTALL_MAYAPLUGIN_NAME" ,
671- "The name under which to install maya plugins." ,
672- "$INSTALL_PREFIX/maya/plugins/$IECORE_NAME" ,
673- )
674-
675611o .Add (
676612 "INSTALL_NUKEPLUGIN_NAME" ,
677613 "The name under which to install nuke plugins." ,
@@ -764,14 +700,6 @@ o.Add(
764700 ""
765701)
766702
767- o .Add (
768- "INSTALL_COREMAYA_POST_COMMAND" ,
769- "A command which is run following a successful installation of "
770- "the CoreMaya library. This could be used to customise installation "
771- "further for a particular site." ,
772- ""
773- )
774-
775703o .Add (
776704 "INSTALL_CORENUKE_POST_COMMAND" ,
777705 "A command which is run following a successful installation of "
@@ -819,14 +747,6 @@ o.Add(
819747 "test/IECoreGL/All.py"
820748)
821749
822- o .Add (
823- "TEST_MAYA_SCRIPT" ,
824- "The python script to run for the maya tests. The default will run all the tests, "
825- "but it can be useful to override this to run just the test for the functionality "
826- "you're working on." ,
827- "test/IECoreMaya/All.py"
828- )
829-
830750o .Add (
831751 "TEST_NUKE_SCRIPT" ,
832752 "The python script to run for the nuke tests. The default will run all the tests, "
@@ -2204,230 +2124,6 @@ if env["WITH_GL"] and doConfigure :
22042124 glTestEnv .Depends ( glTest , glob .glob ( "test/IECoreGL/*.py" ) )
22052125 glTestEnv .Alias ( "testGL" , glTest )
22062126
2207- ###########################################################################################
2208- # Build, install and test the coreMaya library and bindings
2209- ###########################################################################################
2210-
2211- mayaEnvSets = {
2212- "IECORE_NAME" : "IECoreMaya" ,
2213- }
2214-
2215- mayaEnv = env .Clone ( ** mayaEnvSets )
2216-
2217- mayaEnvAppends = {
2218- "CXXFLAGS" : [
2219- "-DIECoreMaya_EXPORTS" ,
2220- ## \todo: remove once we've dropped all VP1 code
2221- "-Wno-deprecated-declarations" ,
2222- systemIncludeArgument , "$GLEW_INCLUDE_PATH" ,
2223- systemIncludeArgument , "$MAYA_ROOT/include" ,
2224- ],
2225- "LIBS" : [
2226- "OpenMaya" ,
2227- "OpenMayaUI" ,
2228- "OpenMayaAnim" ,
2229- "OpenMayaFX" ,
2230- "boost_python" + boostPythonLibSuffix ,
2231- ],
2232- "CPPFLAGS" : [
2233- "-D_BOOL" ,
2234- "-DREQUIRE_IOSTREAM" ,
2235- pythonEnv ["PYTHON_INCLUDE_FLAGS" ],
2236- ],
2237- }
2238-
2239- if env ["PLATFORM" ]== "posix" :
2240- mayaEnvAppends ["CPPFLAGS" ] += ["-DLINUX" ]
2241- mayaEnvAppends ["LIBPATH" ] = ["$MAYA_ROOT/lib" ]
2242- if os .path .exists ( mayaEnv .subst ( "$MAYA_ROOT/lib/libOpenMayalib.a" ) ) :
2243- mayaEnvAppends ["LIBS" ] += ["OpenMayalib" ]
2244-
2245- elif env ["PLATFORM" ]== "darwin" :
2246- mayaEnvAppends ["CPPFLAGS" ] += ["-DOSMac_" ,"-DOSMac_MachO_" ]
2247- mayaEnvAppends ["LIBPATH" ] = ["$MAYA_ROOT/MacOS" ]
2248- mayaEnvAppends ["CPPPATH" ] = ["$MAYA_ROOT/../../devkit/include" ]
2249- mayaEnvAppends ["LIBS" ] += ["Foundation" , "OpenMayaRender" ]
2250- mayaEnvAppends ["FRAMEWORKS" ] = ["AGL" , "OpenGL" ]
2251-
2252- mayaEnv .Append ( ** mayaEnvAppends )
2253-
2254- mayaEnv .Append ( SHLINKFLAGS = pythonEnv ["PYTHON_LINK_FLAGS" ].split () )
2255-
2256- mayaPythonModuleEnv = pythonModuleEnv .Clone ( ** mayaEnvSets )
2257- mayaPythonModuleEnv .Append ( ** mayaEnvAppends )
2258-
2259- mayaPluginEnv = mayaEnv .Clone ( IECORE_NAME = "ieCore" )
2260-
2261- haveMaya = False
2262-
2263- if doConfigure :
2264-
2265- c = configureSharedLibrary ( mayaEnv )
2266-
2267- if not c .CheckCXXHeader ( "maya/MVectorArray.h" ) :
2268-
2269- sys .stderr .write ( "WARNING : no maya devkit found, not building IECoreMaya - check MAYA_ROOT.\n " )
2270- c .Finish ()
2271-
2272- else :
2273-
2274- c .Finish ()
2275-
2276- haveMaya = True
2277-
2278- mayaSources = sorted ( glob .glob ( "src/IECoreMaya/*.cpp" ) )
2279- mayaHeaders = glob .glob ( "include/IECoreMaya/bindings/*.h" ) + glob .glob ( "include/IECoreMaya/*.h" ) + glob .glob ( "include/IECoreMaya/*.inl" )
2280- mayaBindingHeaders = glob .glob ( "include/IECoreMaya/bindings/*.h" ) + glob .glob ( "include/IECoreMaya/bindings/*.inl" )
2281- mayaPythonSources = sorted ( glob .glob ( "src/IECoreMaya/bindings/*.cpp" ) )
2282- mayaPythonScripts = glob .glob ( "python/IECoreMaya/*.py" )
2283- mayaMel = glob .glob ( "mel/IECoreMaya/*.mel" )
2284- mayaPluginSources = [ "src/IECoreMaya/plugin/Plugin.cpp" ]
2285-
2286- # we can't append this before configuring, as then it gets built as
2287- # part of the configure process
2288- mayaEnv .Append ( LIBS = os .path .basename ( coreEnv .subst ( "$INSTALL_LIB_NAME" ) ) )
2289- mayaEnv .Append ( LIBS = os .path .basename ( imageEnv .subst ( "$INSTALL_LIB_NAME" ) ) )
2290- mayaEnv .Append ( LIBS = os .path .basename ( glEnv .subst ( "$INSTALL_LIB_NAME" ) ) )
2291- mayaEnv .Append ( LIBS = os .path .basename ( sceneEnv .subst ( "$INSTALL_LIB_NAME" ) ) )
2292- mayaEnv .Append ( LIBS = os .path .basename ( corePythonEnv .subst ( "$INSTALL_PYTHONLIB_NAME" ) ) )
2293-
2294- # maya library
2295- mayaLibrary = mayaEnv .SharedLibrary ( "lib/" + os .path .basename ( mayaEnv .subst ( "$INSTALL_MAYALIB_NAME" ) ), mayaSources )
2296- mayaLibraryInstall = mayaEnv .Install ( os .path .dirname ( mayaEnv .subst ( "$INSTALL_MAYALIB_NAME" ) ), mayaLibrary )
2297- mayaEnv .NoCache ( mayaLibraryInstall )
2298- if env [ "INSTALL_CREATE_SYMLINKS" ] :
2299- mayaEnv .AddPostAction ( mayaLibraryInstall , lambda target , source , env : makeLibSymLinks ( mayaEnv , "INSTALL_MAYALIB_NAME" ) )
2300- mayaEnv .Alias ( "install" , mayaLibraryInstall )
2301- mayaEnv .Alias ( "installMaya" , mayaLibraryInstall )
2302- mayaEnv .Alias ( "installLib" , [ mayaLibraryInstall ] )
2303-
2304- # maya headers
2305- mayaHeaderInstall = mayaEnv .Install ( "$INSTALL_HEADER_DIR/IECoreMaya" , mayaHeaders )
2306- mayaHeaderInstall += mayaEnv .Install ( "$INSTALL_HEADER_DIR/IECoreMaya/bindings" , mayaBindingHeaders )
2307- if env [ "INSTALL_CREATE_SYMLINKS" ] :
2308- mayaEnv .AddPostAction ( "$INSTALL_HEADER_DIR/IECoreMaya" , lambda target , source , env : makeSymLinks ( mayaEnv , mayaEnv ["INSTALL_HEADER_DIR" ] ) )
2309- mayaEnv .Alias ( "install" , mayaHeaderInstall )
2310- mayaEnv .Alias ( "installMaya" , mayaHeaderInstall )
2311-
2312- # maya mel
2313- mayaMelInstall = mayaEnv .Install ( "$INSTALL_MEL_DIR" , mayaMel )
2314- if env [ "INSTALL_CREATE_SYMLINKS" ] :
2315- mayaEnv .AddPostAction ( "$INSTALL_MEL_DIR" , lambda target , source , env : makeSymLinks ( mayaEnv , mayaEnv ["INSTALL_MEL_DIR" ] ) )
2316- mayaEnv .Alias ( "install" , mayaMelInstall )
2317- mayaEnv .Alias ( "installMaya" , mayaMelInstall )
2318-
2319- # maya icons
2320- mayaIcons = glob .glob ( "icons/IECoreMaya/*.xpm" ) + glob .glob ( "icons/IECoreMaya/*.png" )
2321- mayaIconInstall = mayaEnv .Install ( "$INSTALL_MAYAICON_DIR" , source = mayaIcons )
2322- mayaEnv .Alias ( "install" , mayaIconInstall )
2323- mayaEnv .Alias ( "installMaya" , mayaIconInstall )
2324-
2325- # maya plugin
2326- mayaPluginEnv .Append (
2327- LIBS = [
2328- os .path .basename ( coreEnv .subst ( "$INSTALL_MAYALIB_NAME" ) ),
2329- os .path .basename ( mayaEnv .subst ( "$INSTALL_MAYALIB_NAME" ) ),
2330- ]
2331- )
2332- if env ["PLATFORM" ]== "darwin" :
2333- mayaPluginEnv ['SHLINKFLAGS' ] = '$LINKFLAGS -bundle'
2334- mayaPluginEnv ['SHLIBSUFFIX' ] = '.bundle'
2335-
2336- mayaPluginTarget = "plugins/maya/" + os .path .basename ( mayaPluginEnv .subst ( "$INSTALL_MAYAPLUGIN_NAME" ) )
2337-
2338- if env ["WITH_MAYA_PLUGIN_LOADER" ] :
2339-
2340- mayaPluginLoaderSources = [ 'src/IECoreMaya/plugin/Loader.cpp' ]
2341-
2342- mayaPluginLoaderEnv = mayaPluginEnv .Clone ()
2343- mayaPluginLoaderEnv .Append (
2344- LIBS = [
2345- "dl"
2346- ]
2347- )
2348-
2349- mayaPluginLoader = mayaPluginLoaderEnv .SharedLibrary ( mayaPluginTarget , mayaPluginLoaderSources , SHLIBPREFIX = "" )
2350- mayaPluginLoaderInstall = mayaPluginLoaderEnv .InstallAs ( mayaPluginLoaderEnv .subst ( "$INSTALL_MAYAPLUGIN_NAME$SHLIBSUFFIX" ), mayaPluginLoader )
2351- if env [ "INSTALL_CREATE_SYMLINKS" ] :
2352- mayaPluginLoaderEnv .AddPostAction ( mayaPluginLoaderInstall , lambda target , source , env : makeSymLinks ( mayaPluginLoaderEnv , mayaPluginLoaderEnv ["INSTALL_MAYAPLUGIN_NAME" ] ) )
2353- mayaPluginLoaderEnv .Alias ( "install" , mayaPluginLoaderInstall )
2354- mayaPluginLoaderEnv .Alias ( "installMaya" , mayaPluginLoaderInstall )
2355-
2356- Default ( mayaPluginLoader )
2357-
2358- mayaPluginEnv ["INSTALL_MAYAPLUGIN_NAME" ] = os .path .join ( os .path .dirname ( mayaPluginEnv ["INSTALL_MAYAPLUGIN_NAME" ] ), 'impl' , os .path .basename ( mayaPluginEnv ["INSTALL_MAYAPLUGIN_NAME" ] ) )
2359- mayaPluginTarget = "plugins/maya/impl/" + os .path .basename ( mayaPluginEnv .subst ( "$INSTALL_MAYAPLUGIN_NAME" ) )
2360-
2361- mayaPlugin = mayaPluginEnv .SharedLibrary ( mayaPluginTarget , mayaPluginSources , SHLIBPREFIX = "" )
2362- mayaPluginInstall = mayaPluginEnv .Install ( os .path .dirname ( mayaPluginEnv .subst ( "$INSTALL_MAYAPLUGIN_NAME" ) ), mayaPlugin )
2363- mayaPluginEnv .Depends ( mayaPlugin , corePythonModule )
2364-
2365- if env [ "INSTALL_CREATE_SYMLINKS" ] :
2366- mayaPluginEnv .AddPostAction ( mayaPluginInstall , lambda target , source , env : makeSymLinks ( mayaPluginEnv , mayaPluginEnv ["INSTALL_MAYAPLUGIN_NAME" ] ) )
2367- mayaPluginEnv .Alias ( "install" , mayaPluginInstall )
2368- mayaPluginEnv .Alias ( "installMaya" , mayaPluginInstall )
2369-
2370- # maya python
2371- mayaPythonModuleEnv .Append (
2372- LIBS = [
2373- os .path .basename ( coreEnv .subst ( "$INSTALL_LIB_NAME" ) ),
2374- os .path .basename ( mayaEnv .subst ( "$INSTALL_LIB_NAME" ) ),
2375- os .path .basename ( corePythonEnv .subst ( "$INSTALL_PYTHONLIB_NAME" ) ),
2376- ]
2377- )
2378- mayaPythonModule = mayaPythonModuleEnv .SharedLibrary ( "python/IECoreMaya/_IECoreMaya" , mayaPythonSources )
2379- mayaPythonModuleEnv .Depends ( mayaPythonModule , mayaLibrary )
2380-
2381- mayaPythonModuleInstall = mayaPythonModuleEnv .Install ( "$INSTALL_PYTHON_DIR/IECoreMaya" , mayaPythonScripts + mayaPythonModule )
2382- if env [ "INSTALL_CREATE_SYMLINKS" ] :
2383- mayaPythonModuleEnv .AddPostAction ( "$INSTALL_PYTHON_DIR/IECoreMaya" , lambda target , source , env : makeSymLinks ( mayaPythonModuleEnv , mayaPythonModuleEnv ["INSTALL_PYTHON_DIR" ] ) )
2384- mayaPythonModuleEnv .Alias ( "install" , mayaPythonModuleInstall )
2385- mayaPythonModuleEnv .Alias ( "installMaya" , mayaPythonModuleInstall )
2386-
2387- if coreEnv ["INSTALL_COREMAYA_POST_COMMAND" ]!= "" :
2388- # this is the only way we could find to get a post action to run for an alias
2389- mayaPythonModuleEnv .Alias ( "install" , mayaPythonModuleInstall , "$INSTALL_COREMAYA_POST_COMMAND" )
2390- mayaPythonModuleEnv .Alias ( "installMaya" , mayaPythonModuleInstall , "$INSTALL_COREMAYA_POST_COMMAND" )
2391-
2392- Default ( [ mayaLibrary , mayaPlugin , mayaPythonModule ] )
2393-
2394- mayaTestEnv = testEnv .Clone ()
2395-
2396- mayaTestLibPaths = mayaEnv .subst ( os .pathsep .join ( mayaPythonModuleEnv ["LIBPATH" ] ) )
2397- mayaTestEnv ["ENV" ][mayaTestEnv ["TEST_LIBRARY_PATH_ENV_VAR" ]] += os .pathsep + mayaTestLibPaths
2398- mayaTestEnv ["ENV" ][libraryPathEnvVar ] += os .pathsep + mayaTestLibPaths
2399-
2400- mayaTestEnv ["ENV" ]["PATH" ] = mayaEnv .subst ( "$MAYA_ROOT/bin:" ) + mayaEnv ["ENV" ]["PATH" ]
2401- mayaTestEnv ["ENV" ]["MAYA_PLUG_IN_PATH" ] = "./plugins/maya:./test/IECoreMaya/plugins"
2402- mayaTestEnv ["ENV" ]["MAYA_SCRIPT_PATH" ] = "./mel"
2403- mayaTestEnv ["ENV" ]["PYTHONHOME" ] = mayaTestEnv .subst ( "$MAYA_ROOT" )
2404- mayaTestEnv ["ENV" ]["MAYA_LOCATION" ] = mayaTestEnv .subst ( "$MAYA_ROOT" )
2405- mayaTestEnv ["ENV" ]["LM_LICENSE_FILE" ] = env ["MAYA_LICENSE_FILE" ]
2406- mayaTestEnv ["ENV" ]["AUTODESK_ADLM_THINCLIENT_ENV" ] = env ["MAYA_ADLM_ENV_FILE" ]
2407-
2408- mayaPythonTestEnv = mayaTestEnv .Clone ()
2409-
2410- mayaTestEnv .Append ( ** mayaEnvAppends )
2411- mayaTestEnv .Append (
2412- LIBS = [
2413- os .path .basename ( coreEnv .subst ( "$INSTALL_LIB_NAME" ) ),
2414- os .path .basename ( mayaEnv .subst ( "$INSTALL_LIB_NAME" ) ),
2415- "OpenMayalib"
2416- ]
2417- )
2418-
2419- mayaPythonTest = mayaPythonTestEnv .Command ( "test/IECoreMaya/resultsPython.txt" , mayaPythonModule , "mayapy $TEST_MAYA_SCRIPT" )
2420- NoCache ( mayaPythonTest )
2421- mayaPythonTestEnv .Depends ( mayaPythonTest , [ mayaPlugin , mayaPythonModule , mayaLibrary ] )
2422- mayaPythonTestEnv .Depends ( mayaPythonTest , glob .glob ( "test/IECoreMaya/*.py" ) )
2423- mayaPythonTestEnv .Depends ( mayaPythonTest , glob .glob ( "python/IECoreMaya/*.py" ) )
2424- if env ["WITH_MAYA_PLUGIN_LOADER" ] :
2425- mayaPythonTestEnv .Depends ( mayaPythonTest , mayaPluginLoader )
2426- if env ["WITH_GL" ] :
2427- mayaPythonTestEnv .Depends ( mayaPythonTest , [ glLibrary , glPythonModule ] )
2428- mayaPythonTestEnv .Alias ( "testMaya" , mayaPythonTest )
2429- mayaPythonTestEnv .Alias ( "testMayaPython" , mayaPythonTest )
2430-
24312127###########################################################################################
24322128# Build and install the coreNuke library, plugin, python module and headers
24332129###########################################################################################
@@ -2998,7 +2694,7 @@ if doConfigure :
29982694 docs = docEnv .Command ( "doc/html/index.html" , "doc/config/Doxyfile" , "$DOXYGEN $SOURCE" )
29992695 docEnv .NoCache ( docs )
30002696
3001- for modulePath in ( "python/IECore" , "python/IECoreGL" , "python/IECoreNuke" , "python/IECoreMaya" ) :
2697+ for modulePath in ( "python/IECore" , "python/IECoreGL" , "python/IECoreNuke" ) :
30022698
30032699 module = os .path .basename ( modulePath )
30042700 mungedModule = docEnv .Command ( "doc/python/" + module , modulePath + "/__init__.py" , createDoxygenPython )
0 commit comments