source: waflib/Tools/xlc.py @ 926f0f6

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

waf: unpack

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