本文整理汇总了Python中Setup.idSetup方法的典型用法代码示例。如果您正苦于以下问题:Python Setup.idSetup方法的具体用法?Python Setup.idSetup怎么用?Python Setup.idSetup使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Setup
的用法示例。
在下文中一共展示了Setup.idSetup方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Python代码示例。
示例1: SetupUtils
# 需要导入模块: import Setup [as 别名]
# 或者: from Setup import idSetup [as 别名]
def SetupUtils( env ):
env.SharedLibrarySafe = SharedLibrarySafe
if ( os.path.exists( 'sys/scons/SDK.py' ) ):
import SDK
sdk = SDK.idSDK()
env.PreBuildSDK = sdk.PreBuildSDK
env.BuildSDK = sdk.BuildSDK
else:
env.PreBuildSDK = NotImplementedStub
env.BuildSDK = NotImplementedStub
if ( os.path.exists( 'sys/scons/Setup.py' ) ):
import Setup
setup = Setup.idSetup()
env.Prepare = setup.Prepare
env.BuildSetup = setup.BuildSetup
env.BuildGamePak = setup.BuildGamePak
else:
env.Prepare = NotImplementedStub
env.BuildSetup = NotImplementedStub
env.BuildGamePak = NotImplementedStub
if ( os.path.exists( 'sys/scons/OSX.py' ) ):
import OSX
OSX = OSX.idOSX()
env.BuildBundle = OSX.BuildBundle
else:
env.BuildBundle = NotImplementedStub
示例2: SetupUtils
# 需要导入模块: import Setup [as 别名]
# 或者: from Setup import idSetup [as 别名]
def SetupUtils( env ):
env.SharedLibrarySafe = SharedLibrarySafe
try:
import SDK
env.BuildSDK = SDK.BuildSDK
except:
env.BuildSDK = NotImplementedStub
try:
import Setup
setup = Setup.idSetup()
env.BuildSetup = setup.BuildSetup
except:
env.BuildSetup = NotImplementedStub
示例3: SetupUtils
# 需要导入模块: import Setup [as 别名]
# 或者: from Setup import idSetup [as 别名]
def SetupUtils( env ):
gamepaks = idGamePaks()
env.BuildGamePak = gamepaks.BuildGamePak
env.SharedLibrarySafe = SharedLibrarySafe
try:
import SDK
sdk = SDK.idSDK()
env.PreBuildSDK = sdk.PreBuildSDK
env.BuildSDK = sdk.BuildSDK
except:
print 'SDK.py hookup failed'
env.PreBuildSDK = NotImplementedStub
env.BuildSDK = NotImplementedStub
try:
import Setup
setup = Setup.idSetup()
env.BuildSetup = setup.BuildSetup
except:
print 'Setup.py hookup failed'
env.BuildSetup = NotImplementedStub