本文整理匯總了Python中waflib.TaskGen.extension方法的典型用法代碼示例。如果您正苦於以下問題:Python TaskGen.extension方法的具體用法?Python TaskGen.extension怎麽用?Python TaskGen.extension使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類waflib.TaskGen
的用法示例。
在下文中一共展示了TaskGen.extension方法的3個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Python代碼示例。
示例1: options
# 需要導入模塊: from waflib import TaskGen [as 別名]
# 或者: from waflib.TaskGen import extension [as 別名]
def options(opt):
opt.add_option('--want-rpath',action='store_true',default=False,dest='want_rpath',help='enable the rpath for qt libraries')
opt.add_option('--header-ext',type='string',default='',help='header extension for moc files',dest='qt_header_ext')
for i in'qtdir qtbin qtlibs'.split():
opt.add_option('--'+i,type='string',default='',dest=i)
opt.add_option('--translate',action="store_true",help="collect translation strings",dest="trans_qt5",default=False)
示例2: options
# 需要導入模塊: from waflib import TaskGen [as 別名]
# 或者: from waflib.TaskGen import extension [as 別名]
def options(opt):
pyopt=opt.add_option_group("Python Options")
pyopt.add_option('--nopyc',dest='pyc',action='store_false',default=1,help='Do not install bytecode compiled .pyc files (configuration) [Default:install]')
pyopt.add_option('--nopyo',dest='pyo',action='store_false',default=1,help='Do not install optimised compiled .pyo files (configuration) [Default:install]')
pyopt.add_option('--python',dest="python",help='python binary to be used [Default: %s]'%sys.executable)
pyopt.add_option('--pythondir',dest='pythondir',help='Installation path for python modules (py, platform-independent .py and .pyc files)')
pyopt.add_option('--pythonarchdir',dest='pythonarchdir',help='Installation path for python extension (pyext, platform-dependent .so or .dylib files)')
示例3: options
# 需要導入模塊: from waflib import TaskGen [as 別名]
# 或者: from waflib.TaskGen import extension [as 別名]
def options(opt):
opt.add_option('--want-rpath',action='store_true',default=False,dest='want_rpath',help='enable the rpath for qt libraries')
opt.add_option('--header-ext',type='string',default='',help='header extension for moc files',dest='qt_header_ext')
for i in'qtdir qtbin qtlibs'.split():
opt.add_option('--'+i,type='string',default='',dest=i)
opt.add_option('--translate',action="store_true",help="collect translation strings",dest="trans_qt4",default=False)