本文整理匯總了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