diff --git a/SConstruct b/SConstruct deleted file mode 100644 index 67d53e8f..00000000 --- a/SConstruct +++ /dev/null @@ -1,134 +0,0 @@ -import os -import sys -import excons -import excons.config -import excons.tools.maya as maya -import excons.tools.gl as gl - -maya.SetupMscver() -env = excons.MakeBaseEnv() - -version = (4, 1, 0) -versionstr = "%d.%d.%d" % version -platname = {"win32": "windows", "darwin": "osx"}.get(sys.platform, "linux") -outprefix = "platforms/%s/%s/%s/plug-ins" % ( - maya.Version(nice=True), - platname, - excons.arch_dir, -) - -outdir = excons.OutputBaseDirectory() - -gen = excons.config.AddGenerator( - env, - "mgear", - { - "MGEAR_VERSION": "[%d, %d, %d]" % version, - "MGEAR_MAJMIN_VERSION": "%d.%d" % (version[0], version[1]), - "MGEAR_VERSION_MAJOR": "%d" % version[0], - "MGEAR_VERSION_MINOR": "%d" % version[1], - "MGEAR_VERSION_PATCH": "%d" % version[2], - }, -) - -# mgearmod = gen("mGear.mod", "mGear.mod.in") -mgearpy = filter( - lambda x: not os.path.basename(x).startswith("__init__.py"), - excons.glob("scripts/mgear/*"), -) -qtpy = ["vendor/Qtdotpy/Qt.py"] -qjason = ["vendor/QJsonModel/qjsonmodel.py"] -# NoClean(mgearmod) - -defines = [] -if sys.platform == "win32": - defines.append("NOMINMAX") - - -def maya_math_nodes_setup(env): - env.Append(CPPDEFINES=[("NODE_NAME_PREFIX", '"\\"math_\\""')]) - env.Append(CCFLAGS=["-Os"]) - env.Append(CPPFLAGS=' -DPROJECT_VERSION="\\"1.4.0\\""') - - -def CVWrapSetup(env): - if sys.platform == "win32": - env.Append(CCFLAGS=["/arch:AVX"]) - else: - env.Append(CCFLAGS=["-mavx"]) - - -targets = [ - { - "name": "mgear_core", - "type": "install", - "desc": "mgear core python modules", - "install": {"scripts/mgear/vendor": qjason + qtpy}, - }, - { - "name": "mgear_solvers", - "type": "dynamicmodule", - "desc": "mgear solvers plugin", - "prefix": outprefix, - "bldprefix": maya.Version(), - "ext": maya.PluginExt(), - "defs": defines, - "incdirs": ["plugins/mgear_solvers/src"], - "srcs": excons.glob("src/*.cpp"), - "custom": [maya.Require], - }, - { - "name": "weightDriver", - "type": "dynamicmodule", - "desc": "weightDriver node", - "prefix": outprefix, - "bldprefix": maya.Version(), - "ext": maya.PluginExt(), - "defs": defines, - "incdirs": ["vendor/weightDriver"], - "srcs": excons.glob("vendor/weightDriver/source/*.cpp"), - "custom": [maya.Require, gl.Require], - "install": { - "scripts": excons.glob( - "vendor/weightDriver/modules/weightDriver/scripts/*" - ) - }, - }, -] - -excons.AddHelpTargets( - mgear="mgear maya framework" - " (mgear_core, mgear_solvers, weightDriver)" -) - -td = excons.DeclareTargets(env, targets) - -env.Alias( - "mgear", - [ - td["mgear_core"], - td["mgear_solvers"], - td["weightDriver"], - ], -) - -td["python"] = filter( - lambda x: os.path.splitext(str(x))[1] != ".mel", Glob(outdir + "scripts/*") -) -td["scripts"] = Glob(outdir + "scripts/*.mel") - -pluginsdir = "/plug-ins/%s/%s" % ( - maya.Version(nice=True), - excons.EcosystemPlatform(), -) - -ecodirs = { - "mgear_solvers": pluginsdir, - "weightDriver": pluginsdir, - "python": "/python", - "scripts": "/scripts", -} - -excons.EcosystemDist(env, "mgear.env", ecodirs, version=versionstr, targets=td) - -Default(["mgear"]) diff --git a/mGear.mod.in b/mGear.mod.in deleted file mode 100644 index ceedfc02..00000000 --- a/mGear.mod.in +++ /dev/null @@ -1,35 +0,0 @@ -+ MAYAVERSION:2018 PLATFORM:win64 mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2018/windows/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2018 PLATFORM:linux mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2018/linux/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2018 PLATFORM:mac mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2018/osx/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2019 PLATFORM:win64 mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2019/windows/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2019 PLATFORM:linux mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2019/linux/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2019 PLATFORM:mac mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2019/osx/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2020 PLATFORM:win64 mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2020/windows/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2020 PLATFORM:linux mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2020/linux/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2020 PLATFORM:mac mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2020/osx/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2022 PLATFORM:win64 mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2022/windows/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2022 PLATFORM:linux mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2022/linux/x64 -scripts: ../../../../scripts - -+ MAYAVERSION:2022 PLATFORM:mac mGear @MGEAR_MAJMIN_VERSION@ ./platforms/2022/osx/x64 -scripts: ../../../../scripts