Changeset 1a31baf for waflib/Tools/c_config.py
- 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
- File:
-
- 1 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]
Note: See TracChangeset
for help on using the changeset viewer.