コード例 #1
0
ファイル: houdini.py プロジェクト: tpoveda/excons
def SetupMscver():
    if sys.platform == "win32":
        excons.InitGlobals()
        mscver = excons.GetArgument("mscver", None)
        if mscver is None:
            houver = Version(full=False)
            if houver is not None:
                mscver = _hou_mscver.get(houver, None)
                if mscver is not None:
                    print("Using msvc %s" % mscver)
                    excons.SetArgument("mscver", mscver)
コード例 #2
0
def SetupMscver():
    if sys.platform == "win32":
        excons.InitGlobals()
        mscver = excons.GetArgument("mscver", None)
        if mscver is None:
            mayaver = Version(nice=True)
            if mayaver is not None:
                mscver = _maya_mscver.get(mayaver, None)
                if mscver is not None:
                    print("Using msvc %s" % mscver)
                    excons.SetArgument("mscver", mscver)
コード例 #3
0
ファイル: houdini.py プロジェクト: mgear-dev/excons
def SetupGccver():
  if sys.platform.startswith("linux"):
    excons.InitGlobals()
    # bypass the arguments cache by using ARGUMENTS rather than
    #   calling excons.GetArgument
    gccver = SCons.Script.ARGUMENTS.get("devtoolset", None)
    if gccver is None:
      mayaver = Version(full=False)
      if mayaver is not None:
        gccver = _hou_gccver.get(mayaver, "")
        if gccver is not None:
          print("Using gcc %s" % excons.devtoolset.GetGCCFullVer(gccver))
          excons.SetArgument("devtoolset", gccver)
コード例 #4
0
ファイル: maya.py プロジェクト: marza-animation-planet/excons
def SetupMscver():
    if sys.platform == "win32":
        excons.InitGlobals()
        # bypass the arguments cache by using ARGUMENTS rather than
        #   calling excons.GetArgument
        mscver = SCons.Script.ARGUMENTS.get("mscver", None)
        if mscver is None:
            mayaver = Version(nice=True)
            if mayaver is not None:
                mscver = _maya_mscver.get(mayaver, None)
                if mscver is not None:
                    print("Using msvc %s" % mscver)
                    excons.SetArgument("mscver", mscver)