source: waflib/Tools/irixcc.py @ 2e50800

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since 2e50800 was 0fa325b, checked in by Paul Brossier <piem@piem.org>, 11 years ago

waf: unpack

  • Property mode set to 100644
File size: 1.2 KB
Line 
1#! /usr/bin/env python
2# encoding: utf-8
3# WARNING! Do not edit! http://waf.googlecode.com/git/docs/wafbook/single.html#_obtaining_the_waf_file
4
5import os
6from waflib import Utils
7from waflib.Tools import ccroot,ar
8from waflib.Configure import conf
9@conf
10def find_irixcc(conf):
11        v=conf.env
12        cc=None
13        if v['CC']:cc=v['CC']
14        elif'CC'in conf.environ:cc=conf.environ['CC']
15        if not cc:cc=conf.find_program('cc',var='CC')
16        if not cc:conf.fatal('irixcc was not found')
17        cc=conf.cmd_to_list(cc)
18        try:
19                conf.cmd_and_log(cc+['-version'])
20        except Exception:
21                conf.fatal('%r -version could not be executed'%cc)
22        v['CC']=cc
23        v['CC_NAME']='irix'
24@conf
25def irixcc_common_flags(conf):
26        v=conf.env
27        v['CC_SRC_F']=''
28        v['CC_TGT_F']=['-c','-o']
29        v['CPPPATH_ST']='-I%s'
30        v['DEFINES_ST']='-D%s'
31        if not v['LINK_CC']:v['LINK_CC']=v['CC']
32        v['CCLNK_SRC_F']=''
33        v['CCLNK_TGT_F']=['-o']
34        v['LIB_ST']='-l%s'
35        v['LIBPATH_ST']='-L%s'
36        v['STLIB_ST']='-l%s'
37        v['STLIBPATH_ST']='-L%s'
38        v['cprogram_PATTERN']='%s'
39        v['cshlib_PATTERN']='lib%s.so'
40        v['cstlib_PATTERN']='lib%s.a'
41def configure(conf):
42        conf.find_irixcc()
43        conf.find_cpp()
44        conf.find_ar()
45        conf.irixcc_common_flags()
46        conf.cc_load_tools()
47        conf.cc_add_flags()
48        conf.link_add_flags()
Note: See TracBrowser for help on using the repository browser.