source: waflib/Tools/xlcxx.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
5from waflib.Tools import ccroot,ar
6from waflib.Configure import conf
7@conf
8def find_xlcxx(conf):
9        cxx=conf.find_program(['xlc++_r','xlc++'],var='CXX')
10        cxx=conf.cmd_to_list(cxx)
11        conf.get_xlc_version(cxx)
12        conf.env.CXX_NAME='xlc++'
13        conf.env.CXX=cxx
14@conf
15def xlcxx_common_flags(conf):
16        v=conf.env
17        v['CXX_SRC_F']=[]
18        v['CXX_TGT_F']=['-c','-o']
19        if not v['LINK_CXX']:v['LINK_CXX']=v['CXX']
20        v['CXXLNK_SRC_F']=[]
21        v['CXXLNK_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_cxxprogram']=['-Wl,-brtl']
33        v['cxxprogram_PATTERN']='%s'
34        v['CXXFLAGS_cxxshlib']=['-fPIC']
35        v['LINKFLAGS_cxxshlib']=['-G','-Wl,-brtl,-bexpfull']
36        v['cxxshlib_PATTERN']='lib%s.so'
37        v['LINKFLAGS_cxxstlib']=[]
38        v['cxxstlib_PATTERN']='lib%s.a'
39def configure(conf):
40        conf.find_xlcxx()
41        conf.find_ar()
42        conf.xlcxx_common_flags()
43        conf.cxx_load_tools()
44        conf.cxx_add_flags()
45        conf.link_add_flags()
Note: See TracBrowser for help on using the repository browser.