Changeset 1a31baf for waflib/Tools
- Timestamp:
- Mar 12, 2014, 2:02:47 AM (11 years ago)
- Branches:
- feature/autosink, feature/cnn, feature/cnn_org, feature/constantq, feature/crepe, feature/crepe_org, feature/pitchshift, feature/pydocstrings, feature/timestretch, fix/ffmpeg5, master, pitchshift, sampler, timestretch, yinfft+
- Children:
- 46b00690
- Parents:
- db21ca4
- Location:
- waflib/Tools
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
waflib/Tools/c_config.py
rdb21ca4 r1a31baf 163 163 for key,val in defi.items(): 164 164 lst.append('--define-variable=%s=%s'%(key,val)) 165 static=False 166 if'args'in kw: 167 args=Utils.to_list(kw['args']) 168 if'--static'in args or'--static-libs'in args: 169 static=True 170 lst+=args 171 lst.extend(Utils.to_list(kw['package'])) 165 172 if'variables'in kw: 166 173 env=kw.get('env',self.env) … … 174 181 kw['okmsg']='yes' 175 182 return 176 static=False177 if'args'in kw:178 args=Utils.to_list(kw['args'])179 if'--static'in args or'--static-libs'in args:180 static=True181 lst+=args182 lst.extend(Utils.to_list(kw['package']))183 183 ret=self.cmd_and_log(lst) 184 184 if not'okmsg'in kw: … … 328 328 if'define_name'in kw: 329 329 self.undefine(kw['define_name']) 330 assert'msg'in kw,'invalid parameters, read http://freehackers.org/~tnagy/wafbook/single.html#config_helpers_c' 330 if not'msg'in kw: 331 self.fatal('missing "msg" in conf.check(...)') 331 332 @conf 332 333 def post_check(self,*k,**kw): … … 359 360 for k in _vars: 360 361 lk=k.lower() 361 if k=='INCLUDES':lk='includes'362 if k=='DEFINES':lk='defines'363 362 if lk in kw: 364 363 val=kw[lk] 365 364 if isinstance(val,str): 366 365 val=val.rstrip(os.path.sep) 367 self.env.append_unique(k+'_'+kw['uselib_store'], val)366 self.env.append_unique(k+'_'+kw['uselib_store'],Utils.to_list(val)) 368 367 return is_success 369 368 @conf … … 672 671 try: 673 672 out,err=conf.cmd_and_log(cmd,output=0) 674 except Errors.WafError: 675 conf.fatal('Could not find suncc %r'%cmd) 673 except Errors.WafError ,e: 674 if not(hasattr(e,'returncode')and hasattr(e,'stdout')and hasattr(e,'stderr')): 675 conf.fatal('Could not find suncc %r'%cmd) 676 out=e.stdout 677 err=e.stderr 676 678 version=(out or err) 677 679 version=version.split('\n')[0] -
waflib/Tools/c_preproc.py
rdb21ca4 r1a31baf 247 247 break 248 248 elif v2==',': 249 if not one_param:raise PreprocError("empty param in funcall %s"% p)249 if not one_param:raise PreprocError("empty param in funcall %s"%v) 250 250 args.append(one_param) 251 251 one_param=[] … … 363 363 else: 364 364 (p,v)=t[0] 365 return(v,[[],t[1:]]) 365 if len(t)>1: 366 return(v,[[],t[1:]]) 367 else: 368 return(v,[[],[('T','')]]) 366 369 re_include=re.compile('^\s*(<(?P<a>.*)>|"(?P<b>.*)")') 367 370 def extract_include(txt,defs): -
waflib/Tools/fc_scan.py
rdb21ca4 r1a31baf 7 7 from waflib.TaskGen import feature,before_method,after_method,extension 8 8 from waflib.Configure import conf 9 INC_REGEX="""(?:^|['">]\s*;)\s* INCLUDE\s+(?:\w+_)?[<"'](.+?)(?=["'>])"""9 INC_REGEX="""(?:^|['">]\s*;)\s*(?:|#\s*)INCLUDE\s+(?:\w+_)?[<"'](.+?)(?=["'>])""" 10 10 USE_REGEX="""(?:^|;)\s*USE(?:\s+|(?:(?:\s*,\s*(?:NON_)?INTRINSIC)?\s*::))\s*(\w+)""" 11 11 MOD_REGEX="""(?:^|;)\s*MODULE(?!\s*PROCEDURE)(?:\s+|(?:(?:\s*,\s*(?:NON_)?INTRINSIC)?\s*::))\s*(\w+)""" -
waflib/Tools/nasm.py
rdb21ca4 r1a31baf 3 3 # WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file 4 4 5 import os 5 6 import waflib.Tools.asm 6 7 from waflib.TaskGen import feature … … 13 14 conf.env.ASLNK_TGT_F=['-o'] 14 15 conf.load('asm') 16 conf.env.ASMPATH_ST='-I%s'+os.sep
Note: See TracChangeset
for help on using the changeset viewer.