source: waflib/Tools/xlc.py @ c82a034

feature/autosinkfeature/cnnfeature/cnn_orgfeature/constantqfeature/crepefeature/crepe_orgfeature/pitchshiftfeature/pydocstringsfeature/timestretchfix/ffmpeg5pitchshiftsamplertimestretchyinfft+
Last change on this file since c82a034 was 904702d, checked in by Paul Brossier <piem@piem.org>, 10 years ago

waf, waflib: update to 1.8.7

  • Property mode set to 100644
File size: 1.1 KB
RevLine 
[0fa325b]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
5from waflib.Tools import ccroot,ar
6from waflib.Configure import conf
7@conf
8def find_xlc(conf):
9        cc=conf.find_program(['xlc_r','xlc'],var='CC')
10        conf.get_xlc_version(cc)
11        conf.env.CC_NAME='xlc'
12@conf
13def xlc_common_flags(conf):
14        v=conf.env
15        v['CC_SRC_F']=[]
16        v['CC_TGT_F']=['-c','-o']
17        if not v['LINK_CC']:v['LINK_CC']=v['CC']
18        v['CCLNK_SRC_F']=[]
19        v['CCLNK_TGT_F']=['-o']
20        v['CPPPATH_ST']='-I%s'
21        v['DEFINES_ST']='-D%s'
22        v['LIB_ST']='-l%s'
23        v['LIBPATH_ST']='-L%s'
24        v['STLIB_ST']='-l%s'
25        v['STLIBPATH_ST']='-L%s'
26        v['RPATH_ST']='-Wl,-rpath,%s'
27        v['SONAME_ST']=[]
28        v['SHLIB_MARKER']=[]
29        v['STLIB_MARKER']=[]
30        v['LINKFLAGS_cprogram']=['-Wl,-brtl']
31        v['cprogram_PATTERN']='%s'
32        v['CFLAGS_cshlib']=['-fPIC']
33        v['LINKFLAGS_cshlib']=['-G','-Wl,-brtl,-bexpfull']
34        v['cshlib_PATTERN']='lib%s.so'
35        v['LINKFLAGS_cstlib']=[]
36        v['cstlib_PATTERN']='lib%s.a'
37def configure(conf):
38        conf.find_xlc()
39        conf.find_ar()
40        conf.xlc_common_flags()
41        conf.cc_load_tools()
42        conf.cc_add_flags()
43        conf.link_add_flags()
Note: See TracBrowser for help on using the repository browser.